Re: [Qemu-devel] virtio block device and sysfs

2010-09-14 Thread Marc Haber
On Mon, Sep 13, 2010 at 09:34:24AM -0500, Ryan Harper wrote: > It'll only be available to guests launched with newer qemu (0.13) as > virtio-blk serial support is a new feature. Thanks for the information, I'll wait for the next release (or the time to locally build 0.13-rc for testing, whatever h

[Qemu-devel] Förbered dig inför lönesamtale t

2010-09-14 Thread DokuMera Nyhetsbrev
Om du har problem med att läsa detta e-postmeddelande, klicka här (http://www.anp.se/newsletterweb/886643/444059437941455D4B7142445C43) för en webb-version. Vårt nyhetsbrev skickas automatiskt till våra kunder och intressenter. Vill du inte ha detta nyhetsbrev framöver, klicka här för att avpre

Re: [Qemu-devel] Re: [PATCH 3/3] disk: don't read from disk until the guest starts

2010-09-14 Thread Kevin Wolf
Am 13.09.2010 22:09, schrieb Anthony Liguori: > On 09/13/2010 03:03 PM, Kevin Wolf wrote: >> Am 13.09.2010 21:29, schrieb Stefan Hajnoczi: >> >>> On Mon, Sep 13, 2010 at 3:13 PM, Kevin Wolf wrote: >>> Am 13.09.2010 15:42, schrieb Anthony Liguori: > On 09/13/2010 08:

Re: [Qemu-devel] [PATCH] Introduce DPRINTF() macro and convert serial printf() calls to DPRINTF()'s

2010-09-14 Thread Michal Novotny
On 09/14/2010 12:34 AM, Andreas Färber wrote: Am 13.09.2010 um 14:37 schrieb Michal Novotny: I'm having git 1.7.0.1 and it's saying that send-email it doesn't know send-email [1] [1] This is what I'm having: $ git send-email 0001-dprintf-implementation.patch --to minov...@redhat.com git: '

Re: [Qemu-devel] Stable patch tracking

2010-09-14 Thread Avi Kivity
On 09/13/2010 10:39 PM, Miguel Di Ciurcio Filho wrote: > > I did another edit (to my user page) and it didn't this time. Maybe it only > happens on the first edit? > IIRC, If there is any new link in your edit then the captcha appears. That makes some sense, actually. It's annoying but n

Re: [Qemu-devel] Re: [PATCH 3/3] disk: don't read from disk until the guest starts

2010-09-14 Thread Avi Kivity
On 09/13/2010 04:34 PM, Anthony Liguori wrote: On 09/13/2010 09:13 AM, Kevin Wolf wrote: I think the only real advantage is that we fix NFS migration, right? That's the one that we know about, yes. The rest is not a specific scenario, but a strong feeling that having an image opened twice at

[Qemu-devel] [PATCH 1/1] Fix loop logic in vhost_net_start()'s error path

2010-09-14 Thread Jes . Sorensen
From: Jes Sorensen file.index is unsigned, hence 'while (--file.index >= 0)' will loop forever. Change it to do {} while (file.index-- > 0) Signed-off-by: Jes Sorensen --- hw/vhost_net.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/vhost_net.c b/hw/vhost_net.c

[Qemu-devel] Re: [PATCH v2 2/9] pcie: helper functions for pcie extended capability.

2010-09-14 Thread Isaku Yamahata
On Wed, Sep 08, 2010 at 01:31:22PM +0300, Michael S. Tsirkin wrote: > > +/* > > + * RW1C: Write-1-to-clear > > + * regiger written valresult > > + * 00 => 0 > > + * 10 => 1 > > + * 01 => 0 > > + * 1

Re: [Qemu-devel] [PATCH 0/3] qcow2: Avoid bounce buffers

2010-09-14 Thread Stefan Hajnoczi
On Mon, Sep 13, 2010 at 9:06 PM, Kevin Wolf wrote: > Kevin Wolf (3): >  cutils: qemu_iovec_copy and qemu_iovec_memset >  qcow2: Avoid bounce buffers for AIO read requests >  qcow2: Avoid bounce buffers for AIO write requests > >  block/qcow2-cluster.c |    8 +++- >  block/qcow2.c         |  115 >

Re: [Qemu-devel] [PATCH] Copy snapshots out of QCOW2 disk

2010-09-14 Thread Kevin Wolf
Am 10.09.2010 02:08, schrieb disheng...@gmail.com: > From: edison > > In order to backup snapshots, created from QCOW2 iamge, we want to copy > snapshots out of QCOW2 disk to a seperate storage. > The following patch adds a new option in "qemu-img": qemu-img convert -f > qcow2 -O qcow2 -s snaps

Re: [Qemu-devel] [RFC] qed: Add QEMU Enhanced Disk format

2010-09-14 Thread Stefan Hajnoczi
On Fri, Sep 10, 2010 at 10:22 PM, Jamie Lokier wrote: > Stefan Hajnoczi wrote: >> Since there is no ordering imposed between the data write and metadata >> update, the following scenarios may occur on crash: >> 1. Neither data write nor metadata update reach the disk.  This is >> fine, qed metadat

Re: [Qemu-devel] [RFC] qed: Add QEMU Enhanced Disk format

2010-09-14 Thread Stefan Hajnoczi
On Tue, Sep 14, 2010 at 11:46 AM, Stefan Hajnoczi wrote: > Time to peek at md and dm to see how they safeguard metadata. Seems to me that dm-snap does not take measures to guard against snapshot metadata (exceptions) partial updates/corruption. I was hoping to find useful approaches there rather

[Qemu-devel] Re: [PATCH 1/1] Fix loop logic in vhost_net_start()'s error path

2010-09-14 Thread Michael S. Tsirkin
On Tue, Sep 14, 2010 at 12:06:12PM +0200, jes.soren...@redhat.com wrote: > From: Jes Sorensen > > file.index is unsigned, hence 'while (--file.index >= 0)' will loop > forever. Change it to do {} while (file.index-- > 0) > > Signed-off-by: Jes Sorensen > --- > hw/vhost_net.c |4 ++-- > 1 f

[Qemu-devel] QEMU emulate different ISA multi-core architecture.

2010-09-14 Thread Shiao-Hui Chiu
hello, all I am trying to configure a overlapping-ISA multi-core architecture which with different ISA but some instructions are overlapping, and I just configure the cpu_model with two different types, one is core2duo, the other one is pentium3. ( some instruction set is not supporting in pentium

[Qemu-devel] Re: [PATCH v2 2/9] pcie: helper functions for pcie extended capability.

2010-09-14 Thread Michael S. Tsirkin
On Tue, Sep 14, 2010 at 07:29:15PM +0900, Isaku Yamahata wrote: > On Wed, Sep 08, 2010 at 01:31:22PM +0300, Michael S. Tsirkin wrote: > > > +/* > > > + * RW1C: Write-1-to-clear > > > + * regiger written valresult > > > + * 00 => 0 > > > + * 10

Re: [Qemu-devel] Re: [PATCH 3/3] disk: don't read from disk until the guest starts

2010-09-14 Thread Anthony Liguori
On 09/14/2010 04:47 AM, Avi Kivity wrote: On 09/13/2010 04:34 PM, Anthony Liguori wrote: On 09/13/2010 09:13 AM, Kevin Wolf wrote: I think the only real advantage is that we fix NFS migration, right? That's the one that we know about, yes. The rest is not a specific scenario, but a strong fe

Re: [Qemu-devel] [RFC] qed: Add QEMU Enhanced Disk format

2010-09-14 Thread Anthony Liguori
On 09/14/2010 05:46 AM, Stefan Hajnoczi wrote: On Fri, Sep 10, 2010 at 10:22 PM, Jamie Lokier wrote: Stefan Hajnoczi wrote: Since there is no ordering imposed between the data write and metadata update, the following scenarios may occur on crash: 1. Neither data write nor metadata up

[Qemu-devel] qcow2 performance plan

2010-09-14 Thread Avi Kivity
Here's a draft of a plan that should improve qcow2 performance. It's written in wiki syntax for eventual upload to wiki.qemu.org; lines starting with # are numbered lists, not comments. = Basics = At the minimum level, no operation should block the main thread. This could be done in two way

[Qemu-devel] [Bug 588731] Re: PXE boot not working

2010-09-14 Thread Arsen.Shnurkov
The same to me, but rarely it does start only from third attempt -- PXE boot not working https://bugs.launchpad.net/bugs/588731 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: Incomplete Bug description: /root/qemu-test

Re: [Qemu-devel] Re: [PATCH 3/3] disk: don't read from disk until the guest starts

2010-09-14 Thread Avi Kivity
On 09/14/2010 02:51 PM, Anthony Liguori wrote: On 09/14/2010 04:47 AM, Avi Kivity wrote: On 09/13/2010 04:34 PM, Anthony Liguori wrote: On 09/13/2010 09:13 AM, Kevin Wolf wrote: I think the only real advantage is that we fix NFS migration, right? That's the one that we know about, yes. The

[Qemu-devel] [PATCH] Support T/t for guest memory sizes

2010-09-14 Thread Jes . Sorensen
From: Jes Sorensen Signed-off-by: Jes Sorensen --- vl.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/vl.c b/vl.c index 3f45aa9..0663f2f 100644 --- a/vl.c +++ b/vl.c @@ -2176,6 +2176,9 @@ int main(int argc, char **argv, char **envp) case 'G': case '

Re: [Qemu-devel] qcow2 performance plan

2010-09-14 Thread Anthony Liguori
Hi Avi, On 09/14/2010 08:07 AM, Avi Kivity wrote: Here's a draft of a plan that should improve qcow2 performance. It's written in wiki syntax for eventual upload to wiki.qemu.org; lines starting with # are numbered lists, not comments. Thanks for putting this together. I think it's really

[Qemu-devel] Re: KVM call agenda for Sept 14

2010-09-14 Thread Anthony Liguori
On 09/13/2010 10:59 AM, Chris Wright wrote: Please send in any agenda items you are interested in covering. - QED and qcow2 Obviously, there have been lots of discussions on the ML. It would be good to use the call to step back and try to discuss a higher level plan for moving forward.

[Qemu-devel] Re: [PATCH] Support T/t for guest memory sizes

2010-09-14 Thread Anthony Liguori
On 09/14/2010 08:37 AM, jes.soren...@redhat.com wrote: From: Jes Sorensen Signed-off-by: Jes Sorensen anth...@titi:~/git/qemu$ grep "case 'G': case 'g':" *.c monitor.c:case 'G': case 'g': vl.c:case 'G': case 'g': vl.c:case 'G': case 'g': So

[Qemu-devel] Re: qcow2 performance plan

2010-09-14 Thread Kevin Wolf
Am 14.09.2010 15:07, schrieb Avi Kivity: > Here's a draft of a plan that should improve qcow2 performance. It's > written in wiki syntax for eventual upload to wiki.qemu.org; lines > starting with # are numbered lists, not comments. > > = Basics = > > At the minimum level, no operation shoul

Re: [Qemu-devel] [PATCH] Disable virtio-balloon memory stats interface

2010-09-14 Thread Eduardo Habkost
On Wed, Sep 08, 2010 at 09:21:16AM -0500, Adam Litke wrote: > The addition of memory stats reporting to the virtio balloon causes > the 'info balloon' command to become asynchronous. This is a regression > because in some cases it can hang the user monitor. > > Disable this feature until a better

Re: [Qemu-devel] [PATCH] Disable virtio-balloon memory stats interface

2010-09-14 Thread Adam Litke
On Tue, 2010-09-14 at 11:09 -0300, Eduardo Habkost wrote: > On Wed, Sep 08, 2010 at 09:21:16AM -0500, Adam Litke wrote: > > The addition of memory stats reporting to the virtio balloon causes > > the 'info balloon' command to become asynchronous. This is a regression > > because in some cases it c

[Qemu-devel] Re: [PATCH] Support T/t for guest memory sizes

2010-09-14 Thread Jes Sorensen
On 09/14/10 16:00, Anthony Liguori wrote: > On 09/14/2010 08:37 AM, jes.soren...@redhat.com wrote: >> From: Jes Sorensen >> >> Signed-off-by: Jes Sorensen >> > > anth...@titi:~/git/qemu$ grep "case 'G': case 'g':" *.c > monitor.c:case 'G': case 'g': > vl.c:case

Re: [Qemu-devel] [PATCH] Disable virtio-balloon memory stats interface

2010-09-14 Thread Eduardo Habkost
On Tue, Sep 14, 2010 at 09:24:11AM -0500, Adam Litke wrote: > On Tue, 2010-09-14 at 11:09 -0300, Eduardo Habkost wrote: > > On Wed, Sep 08, 2010 at 09:21:16AM -0500, Adam Litke wrote: [...] > > > static uint32_t virtio_balloon_get_features(VirtIODevice *vdev, uint32_t > > > f) > > > { > > > -

[Qemu-devel] KVM call minutes for Sept 14

2010-09-14 Thread Chris Wright
0.13 - if all goes well...tomorrow stable tree - please look at -stable to see what is missing (bugfixes) - esp. regressions from 0.12 - looking for dedicated stable maintainer/release manager - pick this discussion up next week qed/qcow2 - increase concurrency, performance - threading vs sta

Re: [Qemu-devel] qcow2 performance plan

2010-09-14 Thread Kevin Wolf
Am 14.09.2010 15:43, schrieb Anthony Liguori: > Hi Avi, > > On 09/14/2010 08:07 AM, Avi Kivity wrote: >> Here's a draft of a plan that should improve qcow2 performance. It's >> written in wiki syntax for eventual upload to wiki.qemu.org; lines >> starting with # are numbered lists, not comment

[Qemu-devel] Re: KVM call minutes for Sept 14

2010-09-14 Thread Anthony Liguori
On 09/14/2010 09:47 AM, Chris Wright wrote: 0.13 - if all goes well...tomorrow To tag, it may be thursday for announcement. I need to run a regression run tonight. qed/qcow2 - increase concurrency, performance To achieve performance, a block driver must: 1) support concurrent re

Re: [Qemu-devel] Re: qcow2 performance plan

2010-09-14 Thread Stefan Hajnoczi
On Tue, Sep 14, 2010 at 3:01 PM, Kevin Wolf wrote: > Am 14.09.2010 15:07, schrieb Avi Kivity: >>   Here's a draft of a plan that should improve qcow2 performance.  It's >> written in wiki syntax for eventual upload to wiki.qemu.org; lines >> starting with # are numbered lists, not comments. >> >>

[Qemu-devel] [PATCH] apic: Don't iterate past last used apic

2010-09-14 Thread Alex Williamson
local_apics are allocated sequentially and never removed, so we can stop any iterations that go to MAX_APICS as soon as we hit the first NULL. Looking at a small guest running a virtio-net workload with oprofile, this drops apic_get_delivery_bitmask() from #3 in the profile to down in the noise.

Re: [Qemu-devel] [PATCH] Remove wrong semicolon in macro definition

2010-09-14 Thread Edgar E. Iglesias
On Mon, Sep 13, 2010 at 09:21:57PM +0200, Stefan Weil wrote: > Macros normally should not end with a semicolon, > otherwise their usage results in two statements > where only one statement was expected. Applied > > Signed-off-by: Stefan Weil > --- > hw/serial.c |4 ++-- > tes

Re: [Qemu-devel] qcow2 performance plan

2010-09-14 Thread Anthony Liguori
On 09/14/2010 10:11 AM, Kevin Wolf wrote: Am 14.09.2010 15:43, schrieb Anthony Liguori: Hi Avi, On 09/14/2010 08:07 AM, Avi Kivity wrote: Here's a draft of a plan that should improve qcow2 performance. It's written in wiki syntax for eventual upload to wiki.qemu.org; lines startin

Re: [Qemu-devel] qcow2 performance plan

2010-09-14 Thread Anthony Liguori
On 09/14/2010 08:07 AM, Avi Kivity wrote: Here's a draft of a plan that should improve qcow2 performance. It's written in wiki syntax for eventual upload to wiki.qemu.org; lines starting with # are numbered lists, not comments. = Basics = At the minimum level, no operation should block the

Re: [Qemu-devel] [PATCH] Disable virtio-balloon memory stats interface

2010-09-14 Thread Eduardo Habkost
On Tue, Sep 14, 2010 at 11:41:55AM -0300, Eduardo Habkost wrote: > On Tue, Sep 14, 2010 at 09:24:11AM -0500, Adam Litke wrote: > > On Tue, 2010-09-14 at 11:09 -0300, Eduardo Habkost wrote: > > > On Wed, Sep 08, 2010 at 09:21:16AM -0500, Adam Litke wrote: > [...] > > > > static uint32_t virtio_ball

Re: [Qemu-devel] [PATCH] Disable virtio-balloon memory stats interface

2010-09-14 Thread Luiz Capitulino
On Tue, 14 Sep 2010 12:42:00 -0300 Eduardo Habkost wrote: > I keep my suggestion: if all we need is to change the way "info balloon" > behaves, then we can simply change the "info balloon" behavior, intead > of changing the guest-visible machine model. Adam, what problems do you see with this so

Re: [Qemu-devel] qcow2 performance plan

2010-09-14 Thread Kevin Wolf
Am 14.09.2010 17:20, schrieb Anthony Liguori: > On 09/14/2010 10:11 AM, Kevin Wolf wrote: >> Am 14.09.2010 15:43, schrieb Anthony Liguori: >> >>> Hi Avi, >>> >>> On 09/14/2010 08:07 AM, Avi Kivity wrote: >>> Here's a draft of a plan that should improve qcow2 performance. It's

Re: [Qemu-devel] [PATCH] [slirp] Accept packets with TTL=1

2010-09-14 Thread Edgar E. Iglesias
On Mon, Sep 13, 2010 at 11:01:30PM +0200, Hervé Poussineau wrote: > Packets with TTL=1 may be directed to local network (DHCP/DNS servers for > example), so don't discard them > This is required by old versions of NetBSD which send DHCP DISCOVER packets > with TTL=1 Acked-by: Edgar E. Iglesias

[Qemu-devel] [PATCH 1/3] Make kvm64 the default cpu model when kvm_enabled()

2010-09-14 Thread Joerg Roedel
As requested by Alex this patch makes kvm64 the default CPU model when qemu is started with -enable-kvm. Signed-off-by: Joerg Roedel --- hw/pc.c | 19 ++- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 69b13bf..f531d0d 100644 --- a/hw/pc

[Qemu-devel] [PATCH] new parameter boot=on|off for "-net nic" and "-device" NIC devices

2010-09-14 Thread Bernhard Kohl
This patch was motivated by the following use case: In our system the VMs usually have 4 NICs, any combination of virtio-net-pci and pci-assign NIC devices. The VMs boot via gPXE preferably over the pci-assign devices. There is no way to make this working with a combination of the current options

[Qemu-devel] [PATCH 2/3] Set cpuid definition to 0 before initializing it

2010-09-14 Thread Joerg Roedel
This patch cleans the (stack-allocated) cpuid definition to 0 before actually initializing it. Signed-off-by: Joerg Roedel --- target-i386/cpuid.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c index 04ba8d5..3fcf78f 100644 ---

[Qemu-devel] [PATCH 0/3] SVM feature support for qemu

2010-09-14 Thread Joerg Roedel
Hi, here is the next round of the svm feature support patches for qemu. Key change in this version is that it now makes kvm{64|32} the default cpu definition for qemu when kvm is enabled (as requested by Alex). Otherwise I removed the NRIP_SAVE feature from the phenom definition and set svm_featur

[Qemu-devel] [PATCH 3/3] Add svm cpuid features

2010-09-14 Thread Joerg Roedel
This patch adds the svm cpuid feature flags to the qemu intialization path. It also adds the svm features available on phenom to its cpu-definition and extends the host cpu type to support all svm features KVM can provide. Signed-off-by: Joerg Roedel --- target-i386/cpu.h | 12 targ

[Qemu-devel] Re: [PATCH 1/3] Make kvm64 the default cpu model when kvm_enabled()

2010-09-14 Thread Alexander Graf
Joerg Roedel wrote: > As requested by Alex this patch makes kvm64 the default CPU > model when qemu is started with -enable-kvm. > > Signed-off-by: Joerg Roedel > --- > hw/pc.c | 19 ++- > 1 files changed, 14 insertions(+), 5 deletions(-) > > diff --git a/hw/pc.c b/hw/pc.c > ind

Re: [Qemu-devel] [PATCH] Disable virtio-balloon memory stats interface

2010-09-14 Thread Adam Litke
On Tue, 2010-09-14 at 12:46 -0300, Luiz Capitulino wrote: > On Tue, 14 Sep 2010 12:42:00 -0300 > Eduardo Habkost wrote: > > > I keep my suggestion: if all we need is to change the way "info balloon" > > behaves, then we can simply change the "info balloon" behavior, intead > > of changing the gue

Re: [Qemu-devel] qcow2 performance plan

2010-09-14 Thread Stefan Hajnoczi
On Tue, Sep 14, 2010 at 4:47 PM, Kevin Wolf wrote: > Am 14.09.2010 17:20, schrieb Anthony Liguori: >> On 09/14/2010 10:11 AM, Kevin Wolf wrote: >>> Am 14.09.2010 15:43, schrieb Anthony Liguori: >>> Hi Avi, On 09/14/2010 08:07 AM, Avi Kivity wrote: >   Here's a draft of a pl

Re: [Qemu-devel] PowerPC code generation and the program counter

2010-09-14 Thread Blue Swirl
On Mon, Sep 13, 2010 at 4:51 AM, Stu Grossman wrote: > I've been using qemu-12.4 to trace accesses to non-existent addresses, but > I've > found that the PC is incorrect when cpu_abort() is called from within the > unassigned memory helper routines (unassigned_mem_read[bwl] and > unassigned_mem_w

Re: [Qemu-devel] [PATCH] Disable virtio-balloon memory stats interface

2010-09-14 Thread Adam Litke
Ok, I can see how this will work better for the migration case. Acked-by: Adam Litke On Tue, 2010-09-14 at 11:09 -0300, Eduardo Habkost wrote: > This field is guest-visible, won't this cause problems on migration? > > Isn't it better to disable it on the "info balloon" side, so the guest > know

Re: [Qemu-devel] [PATCH 1/5] use qemu_blockalign consistently

2010-09-14 Thread Christoph Hellwig
On Mon, Sep 13, 2010 at 08:02:28PM +0100, Stefan Hajnoczi wrote: > On Sun, Sep 12, 2010 at 10:42 PM, Christoph Hellwig wrote: > > Use qemu_blockalign for all allocations in the block layer. ?This allows > > increasing the required alignment, which is need to support O_DIRECT on > > devices with la

Re: [Qemu-devel] qcow2 performance plan

2010-09-14 Thread Avi Kivity
On 09/14/2010 05:25 PM, Anthony Liguori wrote: The incremental version of this is hard for me to understand. bdrv_read() may be implemented in terms of bdrv_aio_read() + qemu_io_wait() which dispatches bottom halves. This is done through a shared resource so if you allow bdrv_read() to be

Re: [Qemu-devel] qcow2 performance plan

2010-09-14 Thread Anthony Liguori
On 09/14/2010 11:03 AM, Stefan Hajnoczi wrote: On Tue, Sep 14, 2010 at 4:47 PM, Kevin Wolf wrote: Am 14.09.2010 17:20, schrieb Anthony Liguori: On 09/14/2010 10:11 AM, Kevin Wolf wrote: Am 14.09.2010 15:43, schrieb Anthony Liguori: Hi Avi, On 09/14/2010 08:07 AM

[Qemu-devel] Re: [PATCH 1/3] Make kvm64 the default cpu model when kvm_enabled()

2010-09-14 Thread Roedel, Joerg
On Tue, Sep 14, 2010 at 11:58:03AM -0400, Alexander Graf wrote: > > +if (kvm_enabled()) > > +cpu_model = DEFAULT_KVM_CPU_MODEL; > > +else > > +cpu_model = DEFAULT_QEMU_CPU_MODEL; > > > > Braces :(. Okay, here is the new patch: >From f49e78edbd4143d0512

Re: [Qemu-devel] [PATCH] Disable virtio-balloon memory stats interface

2010-09-14 Thread Luiz Capitulino
On Tue, 14 Sep 2010 10:59:56 -0500 Adam Litke wrote: > On Tue, 2010-09-14 at 12:46 -0300, Luiz Capitulino wrote: > > On Tue, 14 Sep 2010 12:42:00 -0300 > > Eduardo Habkost wrote: > > > > > I keep my suggestion: if all we need is to change the way "info balloon" > > > behaves, then we can simply

Re: [Qemu-devel] qcow2 performance plan

2010-09-14 Thread Avi Kivity
On 09/14/2010 06:16 PM, Anthony Liguori wrote: Right, it should only freeze if the L2 table needs to be allocated, not if it only needs to be updated. IOW, diff --git a/block/qed.c b/block/qed.c index 4c4e7a2..0357c03 100644 --- a/block/qed.c +++ b/block/qed.c @@ -948,7 +948,7 @@ static voi

[Qemu-devel] Re: [RFC v4] Introduce qemu_madvise()

2010-09-14 Thread Alexander Graf
Am 14.09.2010 um 18:31 schrieb Blue Swirl : > On Mon, Sep 13, 2010 at 9:26 PM, Andreas Färber > wrote: >> From: Andreas Färber >> >> vl.c has a Sun-specific hack to supply a prototype for madvise(), >> but the call site has apparently moved to arch_init.c. >> >> Haiku doesn't implement madvi

[Qemu-devel] Re: [RFC v4] Introduce qemu_madvise()

2010-09-14 Thread Blue Swirl
On Mon, Sep 13, 2010 at 9:26 PM, Andreas Färber wrote: > From: Andreas Färber > > vl.c has a Sun-specific hack to supply a prototype for madvise(), > but the call site has apparently moved to arch_init.c. > > Haiku doesn't implement madvise() in favor of posix_madvise(). > OpenBSD and Solaris 10

[Qemu-devel] [PATCH] [for 0.13] disable guest-provided stats on "info balloon" command

2010-09-14 Thread Eduardo Habkost
The addition of memory stats reporting to the virtio balloon causes the 'info balloon' command to become asynchronous. This is a regression because in some cases it can hang the user monitor. This is an alternative to Adam Litke's patch. Adam's patch disabled the corresponding (guest-visible) vir

Re: [Qemu-devel] [Bug 636315] [NEW] configure and build errors on Solaris 10 due to /bin/sh usage

2010-09-14 Thread blueswirl
On Sun, Sep 12, 2010 at 10:02 PM, Andreas Färber wrote: > Am 12.09.2010 um 23:05 schrieb Blue Swirl: > >> On Sun, Sep 12, 2010 at 5:58 PM, Andreas Färber >> wrote: >>> >>> Am 12.09.2010 um 19:47 schrieb Blue Swirl:       nfields=$((nfields + 1)) >>> >>> ./tracetool: syntax error at line

Re: [Qemu-devel] [Bug 636315] [NEW] configure and build errors on Solaris 10 due to /bin/sh usage

2010-09-14 Thread Blue Swirl
On Mon, Sep 13, 2010 at 8:49 AM, Michael Tokarev wrote: > 13.09.2010 01:05, Blue Swirl wrote: >> On Sun, Sep 12, 2010 at 5:58 PM, Andreas Färber >> wrote: >>> Am 12.09.2010 um 19:47 schrieb Blue Swirl: >>> On Sun, Sep 12, 2010 at 5:35 PM, Andreas Färber wrote: > > Am 12.09.201

[Qemu-devel] [PATCH] disable guest-provided stats on "info balloon" command

2010-09-14 Thread Eduardo Habkost
The addition of memory stats reporting to the virtio balloon causes the 'info balloon' command to become asynchronous. This is a regression because in some cases it can hang the user monitor. This is an alternative to Adam Litke's patch. Adam's patch disabled the corresponding (guest-visible) vir

Re: [Qemu-devel] PowerPC code generation and the program counter

2010-09-14 Thread Edgar E. Iglesias
On Tue, Sep 14, 2010 at 04:10:27PM +, Blue Swirl wrote: > On Mon, Sep 13, 2010 at 4:51 AM, Stu Grossman wrote: > > I've been using qemu-12.4 to trace accesses to non-existent addresses, but > > I've > > found that the PC is incorrect when cpu_abort() is called from within the > > unassigned m

Re: [Qemu-devel] qcow2 performance plan

2010-09-14 Thread Anthony Liguori
On 09/14/2010 11:28 AM, Avi Kivity wrote: On 09/14/2010 06:16 PM, Anthony Liguori wrote: Right, it should only freeze if the L2 table needs to be allocated, not if it only needs to be updated. IOW, diff --git a/block/qed.c b/block/qed.c index 4c4e7a2..0357c03 100644 --- a/block/qed.c +++ b

[Qemu-devel] Re: [RFC v4] Introduce qemu_madvise()

2010-09-14 Thread Blue Swirl
On Tue, Sep 14, 2010 at 4:34 PM, Alexander Graf wrote: > > Am 14.09.2010 um 18:31 schrieb Blue Swirl : > >> On Mon, Sep 13, 2010 at 9:26 PM, Andreas Färber >> wrote: >>> From: Andreas Färber >>> >>> vl.c has a Sun-specific hack to supply a prototype for madvise(), >>> but the call site has appa

Re: [Qemu-devel] qcow2 performance plan

2010-09-14 Thread Avi Kivity
On 09/14/2010 07:08 PM, Anthony Liguori wrote: Yes, I hit this too. So without this patch, it does serialize all allocating writes? Yes, but my patch is not enough as it turns out. When dealing with O_DIRECT, we have to handle RMW on our own which means we need to serialize access to the s

[Qemu-devel] problem running Windows XP on kvm

2010-09-14 Thread Michal Suchanek
Hello I was trying to update some windows XP (SP3) images on kvm. It worked fine several times but last time I added mass storage drivers to sysprep and now on the second boot after reseal (the first is mini-setup) I get a BSOD with message DRIVER_IRQL_NOT_LESS_OR_EQUAL. I can post the screenshot

Re: [Qemu-devel] PowerPC code generation and the program counter

2010-09-14 Thread Blue Swirl
On Tue, Sep 14, 2010 at 5:05 PM, Edgar E. Iglesias wrote: > On Tue, Sep 14, 2010 at 04:10:27PM +, Blue Swirl wrote: >> On Mon, Sep 13, 2010 at 4:51 AM, Stu Grossman wrote: >> > I've been using qemu-12.4 to trace accesses to non-existent addresses, but >> > I've >> > found that the PC is inco

Re: [Qemu-devel] [Bug 636315] [NEW] configure and build errors on Solaris 10 due to /bin/sh usage

2010-09-14 Thread Michael Tokarev
14.09.2010 20:41, blueswirl wrote: > On Mon, Sep 13, 2010 at 8:49 AM, Michael Tokarev wrote: [] > diff --git a/tracetool b/tracetool > index 534cc70..c7582bf 100755 > --- a/tracetool > +++ b/tracetool > @@ -48,7 +48,8 @@ get_argnames() > { >local nfields field name

[Qemu-devel] [Bug 544527] Re: usbfs is bugged with >2.6.32.9 and <=2.6.33 (breaks VMWare, Qemu, sane scanners, ...)

2010-09-14 Thread Aleksandr Koltsoff
Currently this stops Altera Quartus II Web Edition from working on Lucid and also the scanner driver for Canon P-150 (proprietary sane-backend with open source .so-shim). Lucky me I have and try to use both. Also, a lot of packages have "Fix committed" in them in this report, but I can't see the f

Re: [Qemu-devel] qcow2 performance plan

2010-09-14 Thread Anthony Liguori
On 09/14/2010 12:23 PM, Avi Kivity wrote: On 09/14/2010 07:08 PM, Anthony Liguori wrote: Yes, I hit this too. So without this patch, it does serialize all allocating writes? Yes, but my patch is not enough as it turns out. When dealing with O_DIRECT, we have to handle RMW on our own which

Re: [Qemu-devel] PowerPC code generation and the program counter

2010-09-14 Thread Edgar E. Iglesias
On Tue, Sep 14, 2010 at 05:48:30PM +, Blue Swirl wrote: > On Tue, Sep 14, 2010 at 5:05 PM, Edgar E. Iglesias > wrote: > > On Tue, Sep 14, 2010 at 04:10:27PM +, Blue Swirl wrote: > >> On Mon, Sep 13, 2010 at 4:51 AM, Stu Grossman > >> wrote: > >> > I've been using qemu-12.4 to trace acces

Re: [Qemu-devel] [PATCH] disable guest-provided stats on "info balloon" command

2010-09-14 Thread Luiz Capitulino
On Tue, 14 Sep 2010 13:43:39 -0300 Eduardo Habkost wrote: > The addition of memory stats reporting to the virtio balloon causes > the 'info balloon' command to become asynchronous. This is a regression > because in some cases it can hang the user monitor. > > This is an alternative to Adam Litk

[Qemu-devel] qemu: qemu_mutex_lock: Invalid argument

2010-09-14 Thread Rick Vernam
I don't have nearly enough info to file a proper bug report. I am running qemu-kvm-0.13.0 rc1 starting qemu like so: /root/qemu/bin/qemu-system-x86_64 -cpu host -enable-kvm -drive file=/root/qemu/w2k3_server.raw,if=virtio,aio=native -net nic,model=virtio,macaddr=52:54:00:12:34:56 -net tap,ifname

[Qemu-devel] [PATCH, RFT] mingw32: use ASLR, no-SEH and DEP if available

2010-09-14 Thread Blue Swirl
If the linker supports the flags --dynamicbase, --no-seh, or --nxcompat, use them. Signed-off-by: Blue Swirl -- This may create compatibility problems with XP. Testers wanted. No change seen with Wine. --- configure |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a

Re: [Qemu-devel] [PATCH 0/3] SVM feature support for qemu

2010-09-14 Thread Alexander Graf
On 14.09.2010, at 17:52, Joerg Roedel wrote: > Hi, > > here is the next round of the svm feature support patches for qemu. Key > change in this version is that it now makes kvm{64|32} the default cpu > definition for qemu when kvm is enabled (as requested by Alex). > Otherwise I removed the NRIP

[Qemu-devel] [PATCH v5] Introduce qemu_madvise()

2010-09-14 Thread Andreas Färber
From: Andreas Färber vl.c has a Sun-specific hack to supply a prototype for madvise(), but the call site has apparently moved to arch_init.c. Haiku doesn't implement madvise() in favor of posix_madvise(). OpenBSD and Solaris 10 don't implement posix_madvise() but madvise(). Check for madvise()

[Qemu-devel] Re: [PATCH v5] Introduce qemu_madvise()

2010-09-14 Thread Blue Swirl
On Tue, Sep 14, 2010 at 8:28 PM, Andreas Färber wrote: > From: Andreas Färber > > vl.c has a Sun-specific hack to supply a prototype for madvise(), > but the call site has apparently moved to arch_init.c. > > Haiku doesn't implement madvise() in favor of posix_madvise(). > OpenBSD and Solaris 10

Re: [Qemu-devel] [Bug 636315] [NEW] configure and build errors on Solaris 10 due to /bin/sh usage

2010-09-14 Thread Andreas Färber
Am 14.09.2010 um 18:34 schrieb Blue Swirl: On Sun, Sep 12, 2010 at 10:02 PM, Andreas Färber > wrote: Am 12.09.2010 um 23:05 schrieb Blue Swirl: On Sun, Sep 12, 2010 at 5:58 PM, Andreas Färber > wrote: Am 12.09.2010 um 19:47 schrieb Blue Swirl: nfields=$((nfields + 1)) ./tracetool:

[Qemu-devel] Re: [PATCH v5] Introduce qemu_madvise()

2010-09-14 Thread Andreas Färber
Am 14.09.2010 um 22:36 schrieb Blue Swirl: On Tue, Sep 14, 2010 at 8:28 PM, Andreas Färber > wrote: diff --git a/osdep.h b/osdep.h index 1cdc7e2..6fb4ff3 100644 --- a/osdep.h +++ b/osdep.h @@ -90,6 +90,41 @@ void *qemu_memalign(size_t alignment, size_t size); void *qemu_vmalloc(size_t size);

Re: [Qemu-devel] [Bug 636315] [NEW] configure and build errors on Solaris 10 due to /bin/sh usage

2010-09-14 Thread Blue Swirl
On Tue, Sep 14, 2010 at 8:37 PM, Andreas Färber wrote: > Am 14.09.2010 um 18:34 schrieb Blue Swirl: > >> On Sun, Sep 12, 2010 at 10:02 PM, Andreas Färber >> wrote: >>> >>> Am 12.09.2010 um 23:05 schrieb Blue Swirl: >>> On Sun, Sep 12, 2010 at 5:58 PM, Andreas Färber wrote: > >

Re: [Qemu-devel] [PATCH] [slirp] Make ARP replies at least 64 bytes long

2010-09-14 Thread Edgar E. Iglesias
On Mon, Sep 13, 2010 at 11:02:42PM +0200, Hervé Poussineau wrote: > IEEE 802.3 standard requires Ethernet frames to be at least 64 bytes long. > If it is not the case, they will be considered as runt frames, and may be > ignored by netcard and/or OS > > Signed-off-by: Hervé Poussineau > --- > s

[Qemu-devel] As-Salamu alaikum

2010-09-14 Thread madame Chiwe Conte
Bonjour Je suis madame Chiwe Conte réfugie ivoirienne exilée depuis 2006 en Grande Bretagne. C’est après mainte recherche sur d’éventuels partenaires dans un pays Stable politiquement, que je vous envoie ce message. Très cher je suis très intéressée par la réalisation de certains Proj

[Qemu-devel] Din prenumeration är avslutad

2010-09-14 Thread DokuMera Nyhetsbrev
Du har valt att avprenumerera p� DokuMera Nyhetsbrev till adressen qemu-devel@nongnu.org

Re: [Qemu-devel] [PATCH 4/4] cpu model corrections/updates: add verbose config file handling

2010-09-14 Thread john cooper
Blue Swirl wrote: > On Thu, Sep 9, 2010 at 3:48 AM, john cooper wrote: >> >>> I think '?' is not very good name. >> I agree, a shell meta char wasn't my first choice. However >> it follows the precedent of '?' used in similar query operations >> and was chosen only for CLI consistency. > > But '?

[Qemu-devel] [PATCH 4/4] v2, cpu model corrections/updates: add verbose config file handling

2010-09-14 Thread john cooper
Failure by qemu to open a default config file isn't cause to error exit -- it just quietly continues on. After puzzling issues with otherwise opaque config file locations and startup handling numerous times, some help from qemu seemed justified. The prior version of this patch overloaded "-readc

Re: [Qemu-devel] qemu: qemu_mutex_lock: Invalid argument

2010-09-14 Thread Corentin Chary
On Tue, Sep 14, 2010 at 10:00 PM, Rick Vernam wrote: > I don't have nearly enough info to file a proper bug report. > > I am running qemu-kvm-0.13.0 rc1 > starting qemu like so: > /root/qemu/bin/qemu-system-x86_64 -cpu host -enable-kvm -drive > file=/root/qemu/w2k3_server.raw,if=virtio,aio=native

[Qemu-devel] [PATCH v3 03/13] pci: introduce helper function pci_shift_word/long which returns shifted value.

2010-09-14 Thread Isaku Yamahata
introduce helper function pci_shift_{word, long}() which returns returns shifted word/long of given position and range. They will be used later. Signed-off-by: Isaku Yamahata --- hw/pci.h | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/hw/pci.h b/hw/pc

[Qemu-devel] [PATCH v3 10/13] pcie downstream port: pci express switch downstream port.

2010-09-14 Thread Isaku Yamahata
pcie switch downstream port. Signed-off-by: Isaku Yamahata --- Changes v2 -> v3: - compilation adjustment. --- Makefile.objs|1 + hw/pcie_downstream.c | 218 ++ hw/pcie_downstream.h | 33 3 files changed, 252 insertions(+),

[Qemu-devel] [PATCH v3 12/13] pcie/aer: glue aer error injection into qemu monitor.

2010-09-14 Thread Isaku Yamahata
glue aer error injection into qemu monitor. Signed-off-by: Isaku Yamahata --- Changes v2 -> v3: - compilation adjustment. --- hw/pcie_aer.c | 85 +++ qemu-monitor.hx | 22 ++ sysemu.h|5 +++ 3 files changed, 112 in

[Qemu-devel] [PATCH v3 07/13] pcie port: define struct PCIEPort/PCIESlot and helper functions

2010-09-14 Thread Isaku Yamahata
define struct PCIEPort which represents common part of pci express port.(root, upstream and downstream.) add a helper function for pcie port which can be used commonly by root/upstream/downstream port. define struct PCIESlot which represents common part of pcie slot.(root and downstream.) and helpe

[Qemu-devel] [PATCH v3 04/13] pcie: add pcie constants to pcie_regs.h

2010-09-14 Thread Isaku Yamahata
add pcie constants to pcie_regs.h. Those constants should go to Linux pci_regs.h and then the file should go away eventually. Signed-off-by: Isaku Yamahata --- Changes v2 -> v3: - moved out pcie constants from pcie.c to pcie_regs.h. - removed unused macros --- hw/pcie_regs.h | 170 +

[Qemu-devel] [PATCH v3 09/13] pcie upstream port: pci express switch upstream port.

2010-09-14 Thread Isaku Yamahata
pci express switch upstream port. Signed-off-by: Isaku Yamahata --- Changes v2 -> v3: - compilation adjustment. --- Makefile.objs |2 +- hw/pcie_upstream.c | 200 hw/pcie_upstream.h | 32 3 files changed, 233 insertions(+)

[Qemu-devel] [PATCH v3 11/13] pcie/hotplug: glue pushing attention button command. pcie_abp

2010-09-14 Thread Isaku Yamahata
glue to pcie_abp monitor command. Signed-off-by: Isaku Yamahata --- hw/pcie_port.c | 82 +++ qemu-monitor.hx | 14 + sysemu.h|4 +++ 3 files changed, 100 insertions(+), 0 deletions(-) diff --git a/hw/pcie_port.c b/hw/p

[Qemu-devel] [PATCH v3 02/13] pci: implement RW1C register framework.

2010-09-14 Thread Isaku Yamahata
Implement RW1C register framework. With this patch, it would be easy to implement W1C(Write 1 to Clear) register by just setting w1cmask. Later RW1C register will be used by pcie. Signed-off-by: Isaku Yamahata --- hw/pci.c |5 + hw/pci.h |3 +++ 2 files changed, 8 insertions(+), 0 de

[Qemu-devel] [PATCH v3 13/13] msix: clear not only INTA, but all INTx when MSI-X is enabled.

2010-09-14 Thread Isaku Yamahata
clear not only INTA, but all INTx when MSI-X is enabled. Signed-off-by: Isaku Yamahata --- hw/msix.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/hw/msix.c b/hw/msix.c index 7ce63eb..b202ff7 100644 --- a/hw/msix.c +++ b/hw/msix.c @@ -158,6 +158,7 @@ void msix_writ

[Qemu-devel] [PATCH v3 08/13] pcie root port: implement pcie root port.

2010-09-14 Thread Isaku Yamahata
pcie root port. Signed-off-by: Isaku Yamahata --- Changes v2 -> v3: - compilation adjustment. --- Makefile.objs |2 +- hw/pcie_root.c | 240 hw/pcie_root.h | 32 3 files changed, 273 insertions(+), 1 deletions(-) create m

[Qemu-devel] [PATCH v3 01/13] msi: implemented msi.

2010-09-14 Thread Isaku Yamahata
implemented msi support functions. Signed-off-by: Isaku Yamahata --- Changes v2 -> v3: - improved comment wording. - simplified shift/ffs dance. Changes v1 -> v2: - opencode some oneline helper function/macros for readability - use ffs where appropriate - rename some functions/variables as sugg

[Qemu-devel] [PATCH v3 00/13] pcie port switch emulators

2010-09-14 Thread Isaku Yamahata
Here is v3 of the patch series. I didn't address the pcie_init() issue yet with v3 because there are already many changes. So I'd like to get feed back before going too far. The issue would be addressed with the next spin if necessary. new patches: 2, 3, 4, 5, 6 Other patches are (almost) same as

  1   2   >