Re: [Qemu-devel] virtio-blk performance regression and qemu-kvm

2012-03-07 Thread Stefan Hajnoczi
On Tue, Mar 6, 2012 at 10:07 PM, Reeted wrote: > On 03/06/12 13:59, Stefan Hajnoczi wrote: >> >> On Mon, Mar 5, 2012 at 4:44 PM, Martin Mailand >>  wrote: >>> >>> Am 05.03.2012 17:35, schrieb Stefan Hajnoczi: >>> > 1. Test on i7 Laptop with Cpu governor "ondemand". >> >>  v0.14.1 >

Re: [Qemu-devel] [1/6 V2 PATCH] rtl8139: limit transmission buffer size in c+ mode

2012-03-07 Thread Stefan Hajnoczi
On Wed, Mar 07, 2012 at 11:17:48AM +0800, Jason Wang wrote: > The tx buffer would be re-allocated for tx descriptor with big size > and without LS bit set, this would make guest driver could easily let > qemu to allocate unlimited. > > In linux host, a glib failure were easy to be triggered: > >

Re: [Qemu-devel] How can I make serial console works

2012-03-07 Thread Zhi-zhou Zhang
Sorry for resend this mail, for I can't see it untill now, I thought I had failed send to the mailist. On Wed, Mar 7, 2012 at 3:35 PM, Andreas Färber wrote: > > How do you know? :) > I added a function in op_helper.c, then every insn will dump all the registers when it runs. I traced the log and

[Qemu-devel] [PATCH 1/2] add qemu_unregister_suspend_notifier

2012-03-07 Thread Gerd Hoffmann
Allow to unregister suspend notifiers. Needed when hot-unplugging devices. No in-tree user (yet), but qemu-kvm needs it for pci device assignment. Signed-off-by: Gerd Hoffmann --- sysemu.h |1 + vl.c |5 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/sysemu.h

[Qemu-devel] [PATCH 2/2] add qemu_unregister_wakeup_notifier

2012-03-07 Thread Gerd Hoffmann
While being at it complement qemu_register_wakeup_notifier with qemu_unregister_wakeup_notifier too. Signed-off-by: Gerd Hoffmann --- sysemu.h |1 + vl.c |5 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/sysemu.h b/sysemu.h index ef604aa..031df88 100644 --- a/s

Re: [Qemu-devel] [PATCH 2/2] add qemu_unregister_wakeup_notifier

2012-03-07 Thread Paolo Bonzini
Il 07/03/2012 09:52, Gerd Hoffmann ha scritto: > While being at it complement qemu_register_wakeup_notifier with > qemu_unregister_wakeup_notifier too. > > Signed-off-by: Gerd Hoffmann > --- > sysemu.h |1 + > vl.c |5 + > 2 files changed, 6 insertions(+), 0 deletions(-) > > dif

Re: [Qemu-devel] [PATCH 3/6] pci: Add notifier for device probing

2012-03-07 Thread Paolo Bonzini
Il 07/03/2012 01:14, Alex Williamson ha scritto: > +void pci_host_remove_dev_probe_notifier(Notifier *notify) > +{ > +notifier_list_remove(&pci_host_dev_probe_notifiers, notify); > +} > + Looks like qemu-kvm needs a merge. :) Upstream has notifier_remove, not notifier_list_remove. Paolo

[Qemu-devel] Live migration qed

2012-03-07 Thread PANKAJ RAWAT
Hi all can anyone tell how i can migrate a VM (qed disk format)? what is the process by which can we migrate the image from one KVM to another ? -- *Pankaj Rawat*

[Qemu-devel] [PATCH 1/4] block: add image fragmentation statistics to qemu-img

2012-03-07 Thread Dong Xu Wang
From: Dong Xu Wang Discussion can be found at: http://patchwork.ozlabs.org/patch/128730/ This patch add image fragmentation statistics while using qemu-img info. Signed-off-by: Dong Xu Wang --- block.c | 13 + block.h |7 +++ block_int.h |1 + qemu-img.c |

[Qemu-devel] [PATCH 2/4] block: image fragmentation statistics for qed

2012-03-07 Thread Dong Xu Wang
From: Dong Xu Wang Add fragmentation statistics for qed file format. Signed-off-by: Dong Xu Wang --- block/qed.c | 41 + 1 files changed, 41 insertions(+), 0 deletions(-) diff --git a/block/qed.c b/block/qed.c index a041d31..eb4dd90 100644 --- a/block

[Qemu-devel] [PATCH 3/4 v2 RESEND] block: add dirty flag status to qemu-img

2012-03-07 Thread Dong Xu Wang
From: Dong Xu Wang Some block drivers can verify their image files are clean or not. So we can show it while using "qemu-img info. Signed-off-by: Dong Xu Wang --- block.c | 14 ++ block.h |2 ++ block_int.h |1 + qemu-img.c |3 +++ 4 files changed, 20 inserti

[Qemu-devel] [PATCH 4/4 v2 RESEND] block: track dirty flag status in qed

2012-03-07 Thread Dong Xu Wang
From: Dong Xu Wang qed driver use QED_F_NEED_CHECK to mark if the image is clean. Signed-off-by: Dong Xu Wang --- block/qed.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/block/qed.c b/block/qed.c index eb4dd90..d45d5c5 100644 --- a/block/qed.c +++ b/block/qed

[Qemu-devel] New assertion failed for USB

2012-03-07 Thread Erik Rull
Hi Gerd, there are new assertion failed when plugging in a USB security dongle at guest runtime. They occur on the current GIT master + your async patch. /home/erik/qemu/hw/usb.c:352 usb_packet_complete: Assertion '((&ep->queue)->tqh_first) == p' failed. I got this only once and I'm currently n

Re: [Qemu-devel] buildbot failure in qemu on block_openbsd_4.9

2012-03-07 Thread Kevin Wolf
Am 07.03.2012 03:57, schrieb q...@buildbot.b1-systems.de: > The Buildbot has detected a new failure on builder block_openbsd_4.9 while > building qemu. > Full details are available at: > http://buildbot.b1-systems.de/qemu/builders/block_openbsd_4.9/builds/148 > > Buildbot URL: http://buildbot.b1

Re: [Qemu-devel] [PATCH v2] deal with guest paniced event

2012-03-07 Thread Jan Kiszka
On 2012-03-07 02:58, Wen Congyang wrote: > When the host knows the guest is paniced, it will set > exit_reason to KVM_EXIT_GUEST_PANICED. So if qemu receive > this exit_reason, we can send a event to tell management > application that the guest is paniced and set the guest > status to RUN_STATE_PAN

Re: [Qemu-devel] [PATCH v2] deal with guest paniced event

2012-03-07 Thread Wen Congyang
At 03/07/2012 05:53 PM, Jan Kiszka Wrote: > On 2012-03-07 02:58, Wen Congyang wrote: >> When the host knows the guest is paniced, it will set >> exit_reason to KVM_EXIT_GUEST_PANICED. So if qemu receive >> this exit_reason, we can send a event to tell management >> application that the guest is pan

Re: [Qemu-devel] [PATCH v2] qom: Introduce object_class_get_list()

2012-03-07 Thread Andreas Färber
Am 25.02.2012 23:07, schrieb Andreas Färber: > This function allows to obtain a singly-linked list of classes, which > can be sorted by the caller. > > Signed-off-by: Andreas Färber > Cc: Anthony Liguori Ping? You requested me to do it via GSList instead of GTree, and the qom-cpu branch has bee

Re: [Qemu-devel] [PATCH v3 0/4] uq/master: Introduce KVM PIT support

2012-03-07 Thread Avi Kivity
On 03/02/2012 09:28 PM, Jan Kiszka wrote: > This adds another piece of qemu-kvm to upstream: The accelerated > in-kernel model of the i8254. It does this in the same fashion as the > interrupt controllers were already introduced. And it even has one bug > less than qemu-kvm: PC speaker output still

Re: [Qemu-devel] [PATCH] configure: ignore spice libraries on 32 bit.

2012-03-07 Thread Peter Maydell
On 8 February 2012 15:22, Gerd Hoffmann wrote: > On 02/08/12 01:17, Rusty Russell wrote: >> As featured on: >>         https://bugs.launchpad.net/qemu-linaro/+bug/928432 >> >> Since we compile with -Werror, the presence of spice headers breaks >> compile.  Yet except for x86-64, it doesn't compile

Re: [Qemu-devel] [PATCH] kvm: fill in padding to help valgrind

2012-03-07 Thread Avi Kivity
On 02/29/2012 05:54 PM, Michael S. Tsirkin wrote: > valgrind warns about padding fields which are passed > to vcpu ioctls uninitialized. > This is not an error in practice because kvm ignored padding. > Since the ioctls in question are off data path and > the cost is zero anyway, initialize padding

Re: [Qemu-devel] virtio-blk performance regression and qemu-kvm

2012-03-07 Thread Martin Mailand
Am 06.03.2012 13:59, schrieb Stefan Hajnoczi: Yes, the reason why that would be interesting is because it allows us to put the performance gain with master+"performance" into perspective. We could see how much of a change we get. Does the CPU governor also affect the result when you benchmark w

[Qemu-devel] Reminder about your invitation from Carter Cheng

2012-03-07 Thread Carter Cheng (LinkedIn Invitations)
LinkedIn This invitation is awaiting your response: From Carter Cheng -- (c) 2012, LinkedIn Corporation

Re: [Qemu-devel] virtio-blk performance regression and qemu-kvm

2012-03-07 Thread Paolo Bonzini
Il 07/03/2012 11:39, Martin Mailand ha scritto: > The host disk can at max. 13K iops, in qemu I get at max 6,5K iops, > that's around about 50% overhead. All the test were with 4k reads, so I > think we are mostly latency bound. For latency tests, running without ioeventfd could give slightly bett

Re: [Qemu-devel] buildbot failure in qemu on block_openbsd_4.9

2012-03-07 Thread Alexander Graf
On 03/07/2012 10:51 AM, Kevin Wolf wrote: Am 07.03.2012 03:57, schrieb q...@buildbot.b1-systems.de: The Buildbot has detected a new failure on builder block_openbsd_4.9 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/block_openbsd_4.9/builds/148

Re: [Qemu-devel] New assertion failed for USB

2012-03-07 Thread Gerd Hoffmann
On 03/07/12 10:46, Erik Rull wrote: > Hi Gerd, > > there are new assertion failed when plugging in a USB security dongle at > guest runtime. > They occur on the current GIT master + your async patch. > > /home/erik/qemu/hw/usb.c:352 usb_packet_complete: Assertion > '((&ep->queue)->tqh_first) ==

Re: [Qemu-devel] [PATCH] configure: ignore spice libraries on 32 bit.

2012-03-07 Thread Gerd Hoffmann
On 03/07/12 11:30, Peter Maydell wrote: > On 8 February 2012 15:22, Gerd Hoffmann wrote: >> On 02/08/12 01:17, Rusty Russell wrote: >>> As featured on: >>> https://bugs.launchpad.net/qemu-linaro/+bug/928432 >>> >>> Since we compile with -Werror, the presence of spice headers breaks >>> com

Re: [Qemu-devel] [PATCH] configure: ignore spice libraries on 32 bit.

2012-03-07 Thread Peter Maydell
On 7 March 2012 11:38, Gerd Hoffmann wrote: > On 03/07/12 11:30, Peter Maydell wrote: >> Ping -- there seem to have been a couple of spice patch queue >> pulls since but did this warning fix patch get lost? > > commit f4a8a424fceb0f79bbd9f7ae4285c8a58eb5598e Yeah, I just spotted this, not sure wh

Re: [Qemu-devel] New assertion failed for USB

2012-03-07 Thread Erik Rull
On March 7, 2012 at 12:30 PM Gerd Hoffmann wrote: > On 03/07/12 10:46, Erik Rull wrote: > > Hi Gerd, > > > > there are new assertion failed when plugging in a USB security dongle at > > guest runtime. > > They occur on the current GIT master + your async patch. > > > > /home/erik/qemu/hw/usb.c

[Qemu-devel] [PATCH] configure: Quote the configure args printed in config.log

2012-03-07 Thread Peter Maydell
Use the same mechanism we use for printing the configure command line to config-host.mak to print it to config.log. This fixes a bug where the config.log version didn't quote arguments with spaces. Signed-off-by: Peter Maydell --- If I'd noticed when I was adding the banner to config.log that we

Re: [Qemu-devel] [PATCH] configure: ignore spice libraries on 32 bit.

2012-03-07 Thread Peter Maydell
On 7 March 2012 11:38, Gerd Hoffmann wrote: > But it still doesn't build indeed. > Looks like new warnings sneaked in ... Actually I get an outright compile error: CCui/spice-display.o ui/spice-display.c: In function ‘qemu_spice_add_memslot’: ui/spice-display.c:79:42: error: ‘QXL_IO_MEMSLO

Re: [Qemu-devel] [PATCH] configure: Quote the configure args printed in config.log

2012-03-07 Thread Stefan Hajnoczi
On Wed, Mar 7, 2012 at 12:16 PM, Peter Maydell wrote: > Use the same mechanism we use for printing the configure command > line to config-host.mak to print it to config.log. This fixes a > bug where the config.log version didn't quote arguments with spaces. > > Signed-off-by: Peter Maydell > ---

Re: [Qemu-devel] [PATCH 0/6] PCI hotplug improvements

2012-03-07 Thread Gleb Natapov
On Tue, Mar 06, 2012 at 05:13:36PM -0700, Alex Williamson wrote: > Here's a re-work of the patch that added _STA for the purpose of > using it as an ack from the guest. Instead of that, add a notifier > for device access. Once the guest reads from device config space, > it owns it. Until that po

Re: [Qemu-devel] [PATCH] configure: ignore spice libraries on 32 bit.

2012-03-07 Thread Gerd Hoffmann
Hi, > git bisect blames commit 2e1a98c9c "qxl: introduce QXLCookie". > Do we need a preprocessor guard so we don't try to use these > if the host's spice headers don't support them? > (My host is Ubuntu Oneiric with libspice-server-dev 0.8.2-2 > and spice-protocol-dev 0.8.0-0ubuntu1.) Hmm, spi

[Qemu-devel] [PATCH 03/13] qom: Fix spelling in documentation

2012-03-07 Thread Stefan Hajnoczi
From: Stefan Weil This fixes a new spelling issue which was detected by codespell. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- include/qemu/object.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/qemu/object.h b/include/qemu/object.h index

[Qemu-devel] [PATCH 09/13] vnc: Add break statement

2012-03-07 Thread Stefan Hajnoczi
From: Stefan Weil This was not a bug, but it is not common practice to omit the break statement from the last case statement before an empty default case. Any change of the default case would introduce a bug. This was reported as a warning by splint. Signed-off-by: Stefan Weil Signed-off-by:

[Qemu-devel] [PATCH 13/13] configure: Quote the configure args printed in config.log

2012-03-07 Thread Stefan Hajnoczi
From: Peter Maydell Use the same mechanism we use for printing the configure command line to config-host.mak to print it to config.log. This fixes a bug where the config.log version didn't quote arguments with spaces. Signed-off-by: Peter Maydell Signed-off-by: Stefan Hajnoczi --- configure |

[Qemu-devel] [PATCH 07/13] vnc: Fix packed boolean struct members

2012-03-07 Thread Stefan Hajnoczi
From: Stefan Weil This patch fixes warnings reported by splint: For variables which are packed in a single bit, a signed data type like 'int' does not make much sense. There is no obvious reason why the two values should be packed, so I removed the packing and changed the data type to bool beca

Re: [Qemu-devel] [PATCH] configure: ignore spice libraries on 32 bit.

2012-03-07 Thread Alon Levy
On Wed, Mar 07, 2012 at 01:43:36PM +0100, Gerd Hoffmann wrote: > Hi, > > > git bisect blames commit 2e1a98c9c "qxl: introduce QXLCookie". > > Do we need a preprocessor guard so we don't try to use these > > if the host's spice headers don't support them? > > > (My host is Ubuntu Oneiric with li

[Qemu-devel] [PATCH 03/20] usb-ehci: split our qh queue into async and periodic queues

2012-03-07 Thread Gerd Hoffmann
From: Hans de Goede qhs can be part of both the async and the periodic schedule, as is shown in later patches in this series it is useful to keep track of the qhs on a per schedule basis. Signed-off-by: Hans de Goede Signed-off-by: Gerd Hoffmann --- hw/usb-ehci.c | 62 ++

[Qemu-devel] [PATCH 02/20] usb-ehci: Never follow table entries with the T-bit set

2012-03-07 Thread Gerd Hoffmann
From: Hans de Goede Before this patch the T-bit was not checked in 2 places, while it should be. Once we properly check the T-bit everywhere we no longer need the weird entry < 0x1000 and entry > 0x1000 checks, so this patch removes them. Signed-off-by: Hans de Goede Signed-off-by: Gerd Hoffma

[Qemu-devel] [PATCH 01/20] usb-redir: Set ep type and interface

2012-03-07 Thread Gerd Hoffmann
From: Hans de Goede Since we don't use usb_desc.c we need to do this ourselves. This fixes iso transfers no longer working for USB 2 devices due to the ep->type check in ehci.c Signed-off-by: Hans de Goede Signed-off-by: Gerd Hoffmann --- usb-redir.c |8 1 files changed, 8 insert

[Qemu-devel] [PATCH 18/20] usb: add shortcut for control transfers

2012-03-07 Thread Gerd Hoffmann
Add a more direct code path to submit control transfers. Instead of feeding three usb packets (setup, data, ack) to usb_handle_packet and have the do_token_* functions in usb.c poke the control transfer parameters out of it just submit a single packet carrying the actual data with the control xfer

[Qemu-devel] [PATCH 15/20] usb: queue can have async packets

2012-03-07 Thread Gerd Hoffmann
This can happen today in case the ->complete() callback queues up the next packet. Also we'll support pipelining soon, which allows to have multiple packets per queue in flight (aka ASYNC) state. Signed-off-by: Gerd Hoffmann --- hw/usb.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions

[Qemu-devel] [PATCH 05/13] block/vmdk: Fix warning from splint (comparision of unsigned value)

2012-03-07 Thread Stefan Hajnoczi
From: Stefan Weil l1_entry_sectors will never be less than 0. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- block/vmdk.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index 5623ac1..45c003a 100644 --- a/block/vmdk.c +++ b

[Qemu-devel] [PATCH 08/13] libcacard: Use format specifier %u instead of %d for unsigned values

2012-03-07 Thread Stefan Hajnoczi
From: Stefan Weil splint reported warnings for those code statements. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- libcacard/vscclient.c | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libcacard/vscclient.c b/libcacard/vscclient.c

Re: [Qemu-devel] [PATCH 2/2] block: add-cow support snapshot_blkdev

2012-03-07 Thread Stefan Hajnoczi
On Thu, Mar 1, 2012 at 2:49 AM, Dong Xu Wang wrote: > From: Dong Xu Wang > > We can not use raw to support snapshot_file, but add-cow can do this. > > CC: Marcelo Tosatti > CC: Kevin Wolf > CC: Stefan Hajnoczi > Signed-off-by: Dong Xu Wang > --- >  blockdev.c              |   53 +

[Qemu-devel] [PATCH 17/20] usb-host: enable pipelineing for bulk endpoints.

2012-03-07 Thread Gerd Hoffmann
We really don't want to wait for packets finish before submitting the next, we want keep the data flow running. Signed-off-by: Gerd Hoffmann --- usb-linux.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index 050ea7a..90919c2 100644 --- a/us

[Qemu-devel] [PATCH 04/13] qmp: Fix spelling fourty -> forty

2012-03-07 Thread Stefan Hajnoczi
From: Stefan Weil This was found by codespell. Signed-off-by: Stefan Weil Acked-by: Luiz Capitulino Signed-off-by: Stefan Hajnoczi --- test-qmp-output-visitor.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test-qmp-output-visitor.c b/test-qmp-output-visitor.c i

[Qemu-devel] [PATCH 09/20] usb-ehci: Remove dead nakcnt code

2012-03-07 Thread Gerd Hoffmann
From: Hans de Goede This patch removes 2 bits of dead nakcnt code: 1) usb_ehci_execute calls ehci_qh_do_overlay which does: nakcnt = reload; and then has a block of code which is conditional on: if (reload && !nakcnt) { which ofcourse is never true now as nakcnt == reload. 2) ehci_state_fetchqh

[Qemu-devel] [PATCH 11/20] usb-ehci: Cleanup itd error handling

2012-03-07 Thread Gerd Hoffmann
From: Hans de Goede All error statuses except for NAK are handled in a switch case, move the handling of NAK into the same switch case. Signed-off-by: Hans de Goede Signed-off-by: Gerd Hoffmann --- hw/usb-ehci.c | 28 ++-- 1 files changed, 14 insertions(+), 14 deleti

[Qemu-devel] [PATCH 11/13] libcacard: Spelling and grammar fixes in documentation

2012-03-07 Thread Stefan Hajnoczi
From: Stefan Weil * it's -> its * it's -> it is (that's no fix, but makes future checks easier) * this functions -> this function * replacable -> replaceable * reader's -> readers * logins into -> logs into v2: Also replace 'aid' by 'AID' (thanks to Peter Maydell for this hint). v3: Fix se

[Qemu-devel] [PATCH] ui/spice-display.c: Fix compilation warnings on 32 bit hosts

2012-03-07 Thread Peter Maydell
Fix compilation failures ("cast from pointer to integer of different size [-Werror=pointer-to-int-cast]") by using uintptr_t instead. Signed-off-by: Peter Maydell --- NB: compile tested only but should be safe :-) ui/spice-display.c | 12 ++-- 1 files changed, 6 insertions(+), 6 delet

[Qemu-devel] [PATCH 07/20] usb-ehci: Any packet completion except for NAK should set the interrupt

2012-03-07 Thread Gerd Hoffmann
From: Hans de Goede As clearly stated in the 2.3.2 of the EHCI spec, any time USBERRINT get sets then if the td has its IOC bit set USBINT should be set as well. This means that for any status except for USB_RET_NAK we should set USBINT if the IOC bit is set. Signed-off-by: Hans de Goede Signe

Re: [Qemu-devel] Regression: more 0.12 regression (SeaBIOS related?)

2012-03-07 Thread Kevin O'Connor
On Tue, Mar 06, 2012 at 09:00:55AM -0800, Alain Ribière wrote: > Hello, > > I'm reacting a bit later but I have a trouble with an old DOS OS from Digital > Research called Concurrent DOS. > It worked fine till Qemu v0.11.1. > I tried it with a lot of versions from 0.12.0 to 1.0.1 and it boot corr

Re: [Qemu-devel] [PATCH] ui/spice-display.c: Fix compilation warnings on 32 bit hosts

2012-03-07 Thread Alon Levy
On Wed, Mar 07, 2012 at 01:36:48PM +, Peter Maydell wrote: > Fix compilation failures ("cast from pointer to integer of > different size [-Werror=pointer-to-int-cast]") by using > uintptr_t instead. > Looks good, Thanks. > Signed-off-by: Peter Maydell > --- > NB: compile tested only but sho

[Qemu-devel] [PULL 00/20] usb patch queue

2012-03-07 Thread Gerd Hoffmann
Hi, Here comes the next usb update. It carries a bunch of ehci fixes and adds pipelining for usb packets. please pull, Gerd Gerd Hoffmann (7): uhci_fill_queue: zap debug printf usb: queue can have async packets usb: add pipelining option to usb endpoints usb-host: enable pipelineing

[Qemu-devel] [PATCH 20/20] xhci: fix port status

2012-03-07 Thread Gerd Hoffmann
Don't signal port status change if the usb device isn't in attached state. Happens with usb-host devices with the pass-through device being plugged out at the host. Signed-off-by: Gerd Hoffmann --- hw/usb-xhci.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/usb-xh

[Qemu-devel] [PATCH 06/20] usb-ehci: Rip the queues when the async or period schedule is halted

2012-03-07 Thread Gerd Hoffmann
From: Hans de Goede Signed-off-by: Hans de Goede Signed-off-by: Gerd Hoffmann --- hw/usb-ehci.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c index b349003..d386b84 100644 --- a/hw/usb-ehci.c +++ b/hw/usb-ehci.c @@ -1076,7 +1076,8 @@

[Qemu-devel] Is qemu (version 1.0) support to emulate the CPU feture "x2APIC"?

2012-03-07 Thread developer wang
Hi, I want to use qemu (version 1.0) to emulate guest systems with x2APIC enabled. But when I use qemu to emulate CPU's feture "x2APIC", I didn't find it in /proc/cpuinfo. And I saw the source code of qemu. I only find a single define (#define CPUID_EXE_X2APIC (1<<21) ) but no othe

Re: [Qemu-devel] [PATCH] configure: ignore spice libraries on 32 bit.

2012-03-07 Thread Peter Maydell
On 7 March 2012 13:01, Alon Levy wrote: > > diff --git a/configure b/configure > index a5eb832..ecdfe9a 100755 > --- a/configure > +++ b/configure > @@ -2544,6 +2544,7 @@ EOF >   spice_cflags=$($pkg_config --cflags spice-protocol spice-server 2>/dev/null) >   spice_libs=$($pkg_config --libs spice-

[Qemu-devel] [PATCH 12/13] osdep: Remove local definition of macro offsetof

2012-03-07 Thread Stefan Hajnoczi
From: Stefan Weil The macro offsetof is defined in stddef.h. It is conforming to the standards C89, C99 and POSIX.1-2001 (see man page), so it is a sufficiently old standard. Therefore chances are very high that QEMU never needs a local definition of this macro. osdep.h already includes stddef.

[Qemu-devel] PC BIOS Flash emulation

2012-03-07 Thread Dmitry Zamaruev
Hi, I'm trying to emulate BIOS Flash chip (something Intel FWH compatible) on PC target (i386-softmmu) and to verify possibility of such emulation I first tried to use pflash_cfi02 example from PPC platform. Trying to use if following way: in hw/pc.c in pc_memory_init() after bios.bin is loaded a

[Qemu-devel] [PULL 00/13] Trivial patches for 25 February to 7 March 2012

2012-03-07 Thread Stefan Hajnoczi
The following changes since commit e32605062cd62c2a958ad28a6ad7de4eeab12027: xilinx_zynq: machine model initial version (2012-03-07 02:20:19 +0100) are available in the git repository at: git://github.com/stefanha/qemu.git trivial-patches for you to fetch changes up to 3b0e25e61d8e7a9f1557d

Re: [Qemu-devel] Is qemu (version 1.0) support to emulate the CPU feture "x2APIC"?

2012-03-07 Thread Gleb Natapov
On Wed, Mar 07, 2012 at 09:54:28PM +0800, developer wang wrote: > Hi, > > I want to use qemu (version 1.0) to emulate guest systems with x2APIC > enabled. > > But when I use qemu to emulate CPU's feture "x2APIC", I didn't find > it in /proc/cpuinfo. > x2apic is supported only if kvm is used

[Qemu-devel] [PATCH 04/20] usb-ehci: always call ehci_queues_rip_unused for period queues

2012-03-07 Thread Gerd Hoffmann
From: Hans de Goede Before this patch USB 2 devices with interrupt endpoints were not working properly. The problem is that to avoid loops we stop processing as soon as we encounter a queue-head (qh) we've already seen since qhs can be linked in a circular fashion, this is tracked by the seen fla

[Qemu-devel] [PATCH 05/20] usb-ehci: Drop cached qhs when the doorbell gets rung

2012-03-07 Thread Gerd Hoffmann
From: Hans de Goede The purpose of the IAAD bit / the doorbell is to make the ehci controller forget about cached qhs, this is mainly used when cancelling transactions, the qh is unlinked from the async schedule and then the doorbell gets rung, once the doorbell is acked by the controller the hcd

Re: [Qemu-devel] [PATCH v4 3/3] qom: Add QOM support to user emulators

2012-03-07 Thread Luiz Capitulino
On Sun, 4 Mar 2012 21:32:36 +0100 Andreas Färber wrote: > Link the Object base class and the module infrastructure for class > registration. Introduce $(universal-obj-y) for objects that are more > common than $(common-obj-y), so that those only get built once. > > Call QOM module init for type

[Qemu-devel] [PATCH 01/13] ppc: Add missing 'static' to spin_rw_ops

2012-03-07 Thread Stefan Hajnoczi
From: Stefan Weil spin_rw_ops is only used in hw/ppce500_spin.c. Cc: Alexander Graf Signed-off-by: Stefan Weil Acked-by: Andreas Färber Signed-off-by: Stefan Hajnoczi --- hw/ppce500_spin.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/ppce500_spin.c b/hw/ppce5

[Qemu-devel] [PATCH 10/20] usb-ehci: Fix and simplify nakcnt handling

2012-03-07 Thread Gerd Hoffmann
From: Hans de Goede The nakcnt code in ehci_execute_complete() marked transactions as finished when a packet completed with a result of USB_RET_NAK, but USB_RET_NAK means that the device cannot receive / send data at that time and that the transaction should be retried later, which is also what t

Re: [Qemu-devel] [libvirt] Qemu, libvirt, and CPU models

2012-03-07 Thread Daniel P. Berrange
On Tue, Mar 06, 2012 at 03:27:53PM -0300, Eduardo Habkost wrote: > Hi, > > Sorry for the long message, but I didn't find a way to summarize the > questions and issues and make it shorter. > > For people who don't know me: I have started to work recently on the > Qemu CPU model code. I have been l

[Qemu-devel] [PATCH] spice: require spice-protocol >= 0.8.1

2012-03-07 Thread Alon Levy
Requiring spice-server >= 0.8.2 is not enough since spice-server.pc doesn't require spice-protocol (any version). Until that is fixed upstream an explicit requirement in qemu fixes compilation broken since commit 2e1a98c9c1b90ca093278c6b43244dc46604d7b7 Author: Alon Levy Date: Fri Feb 24 23:19:

[Qemu-devel] [PATCH 12/20] usb: return BABBLE rather then NAK when we receive too much data

2012-03-07 Thread Gerd Hoffmann
From: Hans de Goede Signed-off-by: Hans de Goede Signed-off-by: Gerd Hoffmann --- usb-linux.c |8 +++- usb-redir.c |4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index 47994f3..38df9e6 100644 --- a/usb-linux.c +++ b/usb-linux.c @@

Re: [Qemu-devel] virtio-blk performance regression and qemu-kvm

2012-03-07 Thread Reeted
On 03/07/12 09:04, Stefan Hajnoczi wrote: On Tue, Mar 6, 2012 at 10:07 PM, Reeted wrote: On 03/06/12 13:59, Stefan Hajnoczi wrote: BTW, I'll take the opportunity to say that 15.8 or 20.3 k IOPS are very low figures compared to what I'd instinctively expect from a paravirtualized block driver.

Re: [Qemu-devel] Configuring QEMU to translate x86 instructions to native ARM instructions

2012-03-07 Thread Roger
Thank you both. The --CPU option worked like a charm. Roger On Mar 6, 2012, at 11:14 AM, Peter Maydell wrote: > On 6 March 2012 16:09, Roger wrote: >> I will try the --cross-prefix option. I have a feeling this >> will do it. I know that the prologue is being initialized with >> the i386

[Qemu-devel] [PATCH 10/13] Spelling fixes in comments (it's -> its)

2012-03-07 Thread Stefan Hajnoczi
From: Stefan Weil * it's -> its (fixed for all files) * dont -> don't (only fixed in a line which was touched by the previous fix) * distrub -> disturb (fixed in the same line) Reviewed-by: Andreas Färber Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- configure |

[Qemu-devel] Re : Regression: more 0.12 regression (SeaBIOS related?)

2012-03-07 Thread Alain Ribière
I ran qemu 1.0.1 and the latest SeaBIOS (from the git) with the following options : qemu-system-i386 -L git/bios -fda disk.img -no-fd-bootchk -boot a -m 16 Here is the log : https://docs.google.com/open?id=0B7mz0vq6Rpb7UE1ibjJDcEhTRWlNV050QnMyMWwtZw Here is the floppy disk image I used : https

Re: [Qemu-devel] virtio-blk performance regression and qemu-kvm

2012-03-07 Thread Stefan Hajnoczi
On Wed, Mar 7, 2012 at 2:21 PM, Reeted wrote: > On 03/07/12 09:04, Stefan Hajnoczi wrote: >> >> On Tue, Mar 6, 2012 at 10:07 PM, Reeted  wrote: >>> >>> On 03/06/12 13:59, Stefan Hajnoczi wrote: BTW, I'll take the opportunity to say that 15.8 or 20.3 k IOPS are very low figures

[Qemu-devel] [PATCH 19/20] xhci: fix control xfers

2012-03-07 Thread Gerd Hoffmann
Use the new, direct control transfer submission method instead of bypassing the usb core by calling usb_device_handle_control directly. The later fails for async control transfers. This patch gets xhci + usb-host combo going. --- hw/usb-xhci.c | 13 + 1 files changed, 5 insertions(+

[Qemu-devel] [PATCH 06/13] Fix sign of sscanf format specifiers

2012-03-07 Thread Stefan Hajnoczi
From: Stefan Weil All values read by sscanf are unsigned, so replace %d by %u. This signed / unsigned mismatch was detected by splint. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- cursor.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/cursor.c b/

[Qemu-devel] [PATCH 14/20] uhci_fill_queue: zap debug printf

2012-03-07 Thread Gerd Hoffmann
--- hw/usb-uhci.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c index 2c6ed38..304b84b 100644 --- a/hw/usb-uhci.c +++ b/hw/usb-uhci.c @@ -951,7 +951,6 @@ static void uhci_fill_queue(UHCIState *s, UHCI_TD *td) UHCI_TD ptd; int ret;

[Qemu-devel] [PATCH 16/20] usb: add pipelining option to usb endpoints

2012-03-07 Thread Gerd Hoffmann
With this patch applied USB drivers can enable pipelining per endpoint. With pipelining enabled the usb core will continue submitting packets even when there are still async transfers in flight instead of passing them on one by one. Signed-off-by: Gerd Hoffmann --- hw/usb.c | 11 ++- h

[Qemu-devel] [PATCH 08/20] usb-ehci: Fix cerr tracking

2012-03-07 Thread Gerd Hoffmann
From: Hans de Goede cerr should only be decremented on errors which cause XactErr to be set, and when that happens the failing transaction should be retried until cerr reaches 0 and only then should USBSTS_ERRINT be set (and inactive cleared and USBSTS_INT set if requested). Since we don't have

[Qemu-devel] [PATCH 02/13] sh7750: Remove redundant 'struct' from MemoryRegionOps

2012-03-07 Thread Stefan Hajnoczi
From: Stefan Weil The 'struct' is not needed, and all other MemoryRegionOps don't use it. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- hw/sh7750.c |2 +- hw/sh_intc.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/sh7750.c b/hw/sh7750.c inde

[Qemu-devel] [PATCH 13/20] usb: add USB_RET_IOERROR

2012-03-07 Thread Gerd Hoffmann
From: Hans de Goede We already have USB_RET_NAK, but that means that a device does not want to send/receive right now. But with host / network redirection we can actually have a transaction fail due to some io error, rather then ie the device just not having any data atm. This patch adds a new e

Re: [Qemu-devel] XP install cores with SCSI LSI 53C895A disks

2012-03-07 Thread Brian Jackson
On Wed, 07 Mar 2012 00:41:39 -0600, Gerhard Wiesinger wrote: Ping. Any comments? Thnx. Ciao, Gerhard -- http://www.wiesinger.com/ On Sun, 4 Mar 2012, Gerhard Wiesinger wrote: Hello, Clean XP install cores with SCSI LSI 53C89A disk when copying files. Reproduceable. Driver used is s

Re: [Qemu-devel] [RFC][PATCH 05/16 v8] Add API to get memory mapping

2012-03-07 Thread HATAYAMA Daisuke
From: Wen Congyang Subject: [RFC][PATCH 05/16 v8] Add API to get memory mapping Date: Fri, 02 Mar 2012 18:18:23 +0800 > Add API to get all virtual address and physical address mapping. > If there is no virtual address for some physical address, the virtual > address is 0. > > Signed-off-by: Wen

[Qemu-devel] [PATCH] Remove type field in ModuleEntry as it's not used.

2012-03-07 Thread Chen Yufei
Signed-off-by: Chen Yufei --- module.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/module.c b/module.c index 106a969..c3a6da7 100644 --- a/module.c +++ b/module.c @@ -19,7 +19,6 @@ typedef struct ModuleEntry { -module_init_type type; void (*init)(void);

Re: [Qemu-devel] [PATCH] PPC: Add PIR register to POWER7 CPU

2012-03-07 Thread Alexander Graf
On 03/03/2012 07:06 PM, Andreas Färber wrote: Am 03.03.2012 17:36, schrieb Nathan Whitehorn: The POWER7 emulation is missing the Processor Identification Register, mandatory in recent POWER CPUs, that is required for SMP on at least some operating systems (e.g. FreeBSD) to function properly. Thi

Re: [Qemu-devel] [PATCH] PPC: Fix large page support in TCG

2012-03-07 Thread Alexander Graf
On 03/03/2012 07:07 PM, Andreas Färber wrote: Am 03.03.2012 17:39, schrieb Nathan Whitehorn: Fix large page support in TCG. The old code would overwrite the large page table entry with the fake 4 KB one generated here whenever the ref/change bits were updated, causing it to point to the wrong ar

[Qemu-devel] [PATCH v3] VMXNET3 paravirtual NIC device implementation

2012-03-07 Thread Dmitry Fleytman
Changes in V3: Fixed crash when net device that is used as network fronted has no virtio HDR support. Task offloads emulation for cases when net device that is used as network fronted has no virtio HDR support. Changes in V2: License text changed accoring to community suggestions

Re: [Qemu-devel] PC BIOS Flash emulation

2012-03-07 Thread Dmitry Zamaruev
On Wed, Mar 7, 2012 at 6:32 PM, Avi Kivity wrote: > On 03/07/2012 03:59 PM, Dmitry Zamaruev wrote: >> Hi, >> >> I'm trying to emulate BIOS Flash chip (something Intel FWH compatible) >> on PC target (i386-softmmu) and to verify possibility of such >> emulation I first tried to use pflash_cfi02 exa

Re: [Qemu-devel] [PATCH] Remove type field in ModuleEntry as it's not used.

2012-03-07 Thread Andreas Färber
Am 07.03.2012 16:36, schrieb Chen Yufei: > Signed-off-by: Chen Yufei There's separate init_type_list[]s per type and the type field is not even initialized, so: Acked-by: Andreas Färber Thanks, Andreas > --- > module.c |1 - > 1 files changed, 0 insertions(+), 1 deletions(-) > > diff --

Re: [Qemu-devel] VirtIO 9p mount_tag (bogus?) limit of 32 bytes

2012-03-07 Thread M. Mohan Kumar
Hi Anthony, When I tried with ldconfig version 2.14.90, ldconfig successfully completed QEMU version: 1.0.50 Kernel version: 3.3.0-rc6+ Could you please try with recent ldconfig? On 02/22/2012 09:28 AM, C Anthony Risinger wrote: On Sat, Feb 18, 2012 at 11:38 AM, Aneesh Kumar K.V wrote: On

[Qemu-devel] QEMU RX offload issues with net device frontend that does not support virtio extensions

2012-03-07 Thread Dmitry Fleytman
Hello, It looks like there is a problem in QEMU related to usage of frontends without virtio extensions. Normally on RX path QEMU receives packet metadata with offloads information in virtio header. In particular there is an information about checksumming state. For example, when packet is being

Re: [Qemu-devel] regarding qcow2metadata

2012-03-07 Thread Mulyadi Santosa
Hi... On Wed, Mar 7, 2012 at 14:11, PANKAJ RAWAT wrote: > [root@t06 p]# ls -lh > total 1.4M > -rw-r--r-- 1 root root 8.1G Mar  7 12:43 guest > > is there is any way to allocate metadata to half size or predefined size ? > i.e 4GB will be allocated and rest 4GB can be allocated dynamically have y

Re: [Qemu-devel] [PATCH] configure: Quote the configure args printed in config.log

2012-03-07 Thread Eric Blake
On 03/07/2012 05:40 AM, Stefan Hajnoczi wrote: > On Wed, Mar 7, 2012 at 12:16 PM, Peter Maydell > wrote: >> Use the same mechanism we use for printing the configure command >> line to config-host.mak to print it to config.log. This fixes a >> bug where the config.log version didn't quote argument

Re: [Qemu-devel] [PATCH] configure: Quote the configure args printed in config.log

2012-03-07 Thread Peter Maydell
On 7 March 2012 17:06, Eric Blake wrote: >>>  # Print a helpful header at the top of config.log >>>  echo "# QEMU configure log $(date)" >> config.log >>> -echo "# produced by $0 $*" >> config.log > > This left a trailing newline, > >>> +printf "# Configured with:" >> config.log >>> +printf " '%s'

Re: [Qemu-devel] [PATCH] configure: Quote the configure args printed in config.log

2012-03-07 Thread Peter Maydell
On 7 March 2012 12:40, Stefan Hajnoczi wrote: >> +printf "# Configured with:" >> config.log >> +printf " '%s'" "$0" "$@" >> config.log > > You use an interesting feature of printf(1)- it applies the (short) > format string as long as there are arguments.  I checked that this is > in the specificat

[Qemu-devel] QAPI conversion status and async commands support

2012-03-07 Thread Luiz Capitulino
Hi there, In the last few weeks we've had some proposals for new QMP commands that need to be asynchronous. As we lack a standard asynchronous API today, each command ends up adding its own way to execute in the background. This multiplies the API complexity as each command has to be implemented

Re: [Qemu-devel] [PATCH] configure: Quote the configure args printed in config.log

2012-03-07 Thread Avi Kivity
On 03/07/2012 02:16 PM, Peter Maydell wrote: > Use the same mechanism we use for printing the configure command > line to config-host.mak to print it to config.log. This fixes a > bug where the config.log version didn't quote arguments with spaces. > > # Print a helpful header at the top of conf

  1   2   >