Re: [Qemu-devel] BUG: 0.14.0 -device usb-host supports only one device

2011-05-17 Thread Gerd Hoffmann
Hi Gerd, hm, if I add it multiple times and plug in a USB flashdrive, then all slots are filled up with this device (duplicated)... And Windows detects them with the result, that the "not first" devices are marked with a yellow exclamation mark in the device manager. And the next device plugged i

Re: [Qemu-devel] [PATCH 3/3] powerpc-virtio: virtio support introduced (block, network, serial, balloon, 9p-fs), both fullemu and power-kvm

2011-05-17 Thread Alexander Graf
On 17.05.2011, at 08:47, David Gibson wrote: > From: Alexey Kardashevskiy > > The recently added pseries machine does not currently support PCI > emulation. For the (upcoming) kvm case, this is quite difficult to do > because the preferred HV mode for the host kernel does not allow MMIO > emul

Re: [Qemu-devel] [PATCH 12/18] usb-linux: split large xfers

2011-05-17 Thread Gerd Hoffmann
Hi, More specifically: http://www.mail-archive.com/qemu-devel@nongnu.org/msg30337.html Reference added to the commit message. cheers, Gerd

Re: [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci express support

2011-05-17 Thread Jan Kiszka
On 2011-05-16 23:55, Adnan Khaleel wrote: > I finally got this work after I realised that the AHCI driver was not being > loaded in my disk image and that ACHI was not being enabled in the Seabios > .config file. > This is really good work Yamahata, thanks. > > > As far as I can tell, everythin

[Qemu-devel] KVM guest doesn't recongize its network by NAT

2011-05-17 Thread Ryan Wang
Hi all, I created one guest on Ubuntu 10.10: = sudo virt-install --connect qemu:///system -n ubuntu-10.10-guest -r 1024 --vcpus=1 -c /tmp/ubuntu-10.10-desktop-i386.iso --os-type=linux --disk=/var/lib/libvirt/images/ubuntu-10.10-guest.img,size=10 --vnc --accelerate Afte

Re: [Qemu-devel] [PATCH 18/18] usb: add ehci adapter

2011-05-17 Thread Gerd Hoffmann
On 05/16/11 13:56, Gerd Hoffmann wrote: This patch finally merges the EHCI host adapter aka USB 2.0 support. Based on git://git.kiszka.org/qemu.git ehci Changes: - Adapt to recent changes in the usb subsystem. - Don't create device automagically, use -device instead. - Add quickstart t

Re: [Qemu-devel] [PATCH 00/18] usb patch queue: add usb 2.0

2011-05-17 Thread Gerd Hoffmann
Hi, git://git.kraxel.org/qemu usb.11.pull Cool! I'm glad to see someone actively working in this space. Any specific areas where testing would be helpful? All over the place ;) Current state: usb device emulation: - usb-storage should work fine on high speed. - all others do either

Re: [Qemu-devel] [regression] qemu-system-arm: segfault in lsi_do_command

2011-05-17 Thread Kevin Wolf
Am 16.05.2011 18:26, schrieb Paolo Bonzini: > On 05/16/2011 05:58 PM, Kevin Wolf wrote: >> Thanks. Still doesn't make much sense to me, the patch shouldn't change >> anything with respect to a malloc, but I can reproduce a segfault now. I >> think I'll have a closer look tomorrow. > > This fixes i

Re: [Qemu-devel] Why does -device qxl-vga not suppress default vga?

2011-05-17 Thread Markus Armbruster
Jan Kiszka writes: > On 2011-05-16 09:28, Gerd Hoffmann wrote: >> On 05/13/11 16:18, Markus Armbruster wrote: >>> VGA, cirrus-vga and vmware-svga do. Gerd, you added it (commit >>> a19cbfb3), care to explain? >> >> Just forgot to add it to the list when merging. >> I'll go stuff a patch into th

[Qemu-devel] Invitation to connect on LinkedIn

2011-05-17 Thread Paulo Silva via LinkedIn
LinkedIn Paulo Silva requested to add you as a connection on LinkedIn: -- Jiajun, I'd like to add you to my professional network on LinkedIn. - Paulo Accept invitation from Paulo Silva http://www.linkedin.com/e/-kkb1ec-gnsl5q5u-64/qTMmi8QEI_f3

Re: [Qemu-devel] [RFC Patch 1/3]Qemu: Enhance "info block" to display cache setting

2011-05-17 Thread Kevin Wolf
Am 16.05.2011 20:10, schrieb Supriya Kannery: > Enhance "info block" to display cache setting > > Example: > (qemu) info block > ide0-hd0: type=hd removable=0 file=../rhel6-32.qcow2 ro=0 drv=qcow2 > encrypted=0 > > Enhanced to include "cache" setting: > (qemu) info block > ide0-hd0: type=hd remo

Re: [Qemu-devel] [RFC Patch 1/3]Qemu: Enhance "info block" to display cache setting

2011-05-17 Thread supriya kannery
Kevin Wolf wrote: Am 16.05.2011 20:10, schrieb Supriya Kannery: Enhance "info block" to display cache setting Example: (qemu) info block ide0-hd0: type=hd removable=0 file=../rhel6-32.qcow2 ro=0 drv=qcow2 encrypted=0 Enhanced to include "cache" setting: (qemu) info block ide0-hd0: type=hd

Re: [Qemu-devel] [RFC Patch 0/3]Qemu: Enable dynamic cache change through qemu monitor

2011-05-17 Thread supriya kannery
Christoph Hellwig wrote: Why are you even trying this again? Enabling control of cache setting from qemu monitor will help users/admins to accomplish cache value change without depending on the guest. As explained very clearly last time you can't change from a writeback-style to a write-throu

Re: [Qemu-devel] [RFC Patch 0/3]Qemu: Enable dynamic cache change through qemu monitor

2011-05-17 Thread supriya kannery
Anthony Liguori wrote: On 05/16/2011 03:23 PM, Christoph Hellwig wrote: Why are you even trying this again? As explained very clearly last time you can't change from a writeback-style to a write-through style I/O from the monitor without creating massive data integrity problems. To further c

[Qemu-devel] [PATCH] ccid-card-emulated: handle no backend (fixes segfault)

2011-05-17 Thread Alon Levy
During initialization if no "backend=something" attribute is supplied don't try to call strcmp with second argument being NULL. Signed-off-by: Alon Levy --- hw/ccid-card-emulated.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/ccid-card-emulated.c b/hw/ccid-card-e

Re: [Qemu-devel] Should new USB devices such as usb-ccid support legacy -usbdevice?

2011-05-17 Thread Kevin Wolf
Am 16.05.2011 10:33, schrieb Markus Armbruster: > Anthony Liguori writes: > >> On 05/13/2011 11:36 AM, Markus Armbruster wrote: >>> When Gerd qdevified USB, he kept legacy -usbdevice working (commit >>> 0958b4cc...). What about new USB devices? Should they get a legacy >>> syntax, too? >>> >>>

[Qemu-devel] [PATCH v3 00/21] SCSI subsystem improvements

2011-05-17 Thread Paolo Bonzini
This series includes the following improvements to the SCSI subsystem: 1) introduction of SCSIBusOps that generalize the existing command_complete callback; 2) widespread use of the SCSIRequest abstraction, with simpler memory management (refcounting) and with various common idioms converted into

[Qemu-devel] [PATCH v3 02/21] scsi-generic: Remove bogus double complete

2011-05-17 Thread Paolo Bonzini
scsi-generic scsi_read_complete() should not -both- call the client complete callback with SCSI_REASON_DATA -and- call scsi_command_complete(). The former will cause the client to queue a new read or write request, while the later will free the request data structure, thus causing the new read or

[Qemu-devel] [PATCH v3 04/21] scsi: introduce SCSIBusOps

2011-05-17 Thread Paolo Bonzini
There are more operations than a SCSI bus can handle, besides completing commands. One example, which this series will introduce, is cleaning up after a request is cancelled. More long term, a "SCSI bus" can represent the LUNs attached to a target; in this case, while all commands will ultimately

[Qemu-devel] [PATCH v3 01/21] scsi: add tracing of scsi requests

2011-05-17 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/scsi-bus.c |6 ++ trace-events |6 ++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c index ceeb4ec..0fd85fc 100644 --- a/hw/scsi-bus.c +++ b/hw/scsi-bus.c @@ -4,6 +4,7 @@ #include "scsi-defs.h" #

[Qemu-devel] [PATCH v3 09/21] scsi: introduce scsi_req_abort

2011-05-17 Thread Paolo Bonzini
This covers the case of canceling a request's I/O and still completing it. Signed-off-by: Paolo Bonzini --- hw/scsi-bus.c|9 + hw/scsi.h|1 + hw/spapr_vscsi.c |8 ++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/hw/scsi-bus.c b/hw/scsi-bus.

[Qemu-devel] [PATCH v3 12/21] scsi: Update sense code handling

2011-05-17 Thread Paolo Bonzini
From: Hannes Reinecke The SCSI spec has a quite detailed list of sense codes available. It even mandates the use of specific ones for some failure cases. The current implementation just has one type of generic error which is actually a violation of the spec in certain cases. This patch introduces

[Qemu-devel] [PATCH v3 03/21] scsi: introduce scsi_req_data

2011-05-17 Thread Paolo Bonzini
This abstracts calling the command_complete callback, reducing churn in the following patches. Signed-off-by: Paolo Bonzini --- hw/scsi-bus.c |6 ++ hw/scsi-disk.c|8 hw/scsi-generic.c |6 +++--- hw/scsi.h |1 + trace-events |1 + 5 files cha

[Qemu-devel] [PATCH v3 07/21] scsi: Use 'SCSIRequest' directly

2011-05-17 Thread Paolo Bonzini
From: Hannes Reinecke Currently the SCSIRequest structure is abstracted away and cannot accessed directly from the driver. This requires the handler to do a lookup on an abstract 'tag' which identifies the SCSIRequest structure. With this patch the SCSIRequest structure is exposed to the driver.

[Qemu-devel] [PATCH v3 14/21] scsi: introduce scsi_req_new

2011-05-17 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/esp.c |2 +- hw/lsi53c895a.c |3 +-- hw/scsi-bus.c|5 + hw/scsi.h|1 + hw/spapr_vscsi.c |2 +- hw/usb-msd.c |2 +- 6 files changed, 10 insertions(+), 5 deletions(-) diff --git a/hw/esp.c b/hw/esp.c index 3a6

[Qemu-devel] [PATCH v3 13/21] scsi: do not call send_command directly

2011-05-17 Thread Paolo Bonzini
Move the common part of scsi-disk.c and scsi-generic.c to the SCSI layer. At the same time, protect against the request being freed under the feet of the send_command callback. This fixes a use-after-free that happened when scsi-disk's scsi_disk_emulate_command completed an illegal request, and st

[Qemu-devel] [PATCH v3 06/21] lsi: extract lsi_find_by_tag

2011-05-17 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/lsi53c895a.c | 63 +- 1 files changed, 38 insertions(+), 25 deletions(-) diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index ccea6ad..3b67155 100644 --- a/hw/lsi53c895a.c +++ b/hw/lsi53c895a.c @@ -652,38 +

[Qemu-devel] [PATCH v3 11/21] scsi: use scsi_req_complete

2011-05-17 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/scsi-generic.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c index 5bfbb8a..e1f8a8a 100644 --- a/hw/scsi-generic.c +++ b/hw/scsi-generic.c @@ -288,7 +288,6 @@ static int32_t scsi_send_command(

[Qemu-devel] [PATCH v3 08/21] scsi: commonize purging requests

2011-05-17 Thread Paolo Bonzini
The code for canceling requests upon reset is already the same. Clean it up and move it to scsi-bus.c. Signed-off-by: Paolo Bonzini --- hw/scsi-bus.c | 12 hw/scsi-disk.c| 18 ++ hw/scsi-generic.c | 18 ++ hw/scsi.h |1 + 4

[Qemu-devel] [PATCH v3 16/21] scsi: introduce scsi_req_get_buf

2011-05-17 Thread Paolo Bonzini
... and remove some SCSIDevice variables or fields that now become unused. Signed-off-by: Paolo Bonzini --- hw/esp.c |2 +- hw/lsi53c895a.c |2 +- hw/scsi-bus.c|5 + hw/scsi.h|1 + hw/spapr_vscsi.c |8 ++-- hw/usb-msd.c |2 +- 6 files chan

[Qemu-devel] [PATCH v3 05/21] scsi: reference-count requests

2011-05-17 Thread Paolo Bonzini
With the next patch, a device may hold SCSIRequest for an indefinite time. Split a rather big patch, and protect against access errors, by reference counting them. One such access error in fact exists (it is visible by testing the lsi driver with MALLOC_PERTURB_), and this patch provides the infr

[Qemu-devel] [PATCH v3 15/21] scsi: introduce scsi_req_kick

2011-05-17 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/esp.c | 26 ++ hw/lsi53c895a.c | 22 -- hw/scsi-bus.c| 10 ++ hw/scsi.h|1 + hw/spapr_vscsi.c | 26 ++ hw/usb-msd.c | 15 --- trace-ev

[Qemu-devel] [PATCH v3 10/21] scsi: introduce scsi_req_cancel

2011-05-17 Thread Paolo Bonzini
This is for when the request must be dropped in the void, but still memory should be freed. To this end, the devices register a second callback in SCSIBusOps. Signed-off-by: Paolo Bonzini Signed-off-by: Jonathan Nieder --- hw/esp.c | 16 ++-- hw/lsi53c895a.c | 33 +++

[Qemu-devel] [PATCH v3 19/21] scsi: make write_data return void

2011-05-17 Thread Paolo Bonzini
The return value is unused anyway. Signed-off-by: Paolo Bonzini --- hw/scsi-disk.c|6 ++ hw/scsi-generic.c |7 ++- hw/scsi.h |2 +- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index 65744c7..4c7a53e 100644 --- a/

[Qemu-devel] [PATCH v3 17/21] scsi: Implement 'get_sense' callback

2011-05-17 Thread Paolo Bonzini
From: Hannes Reinecke The get_sense callback copies existing sense information into the provided buffer. This is required if sense information should be transferred together with the command response. Signed-off-by: Hannes Reinecke Signed-off-by: Paolo Bonzini --- hw/scsi-bus.c |9 +++

[Qemu-devel] [PATCH v3 21/21] scsi: split command_complete callback in two

2011-05-17 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/esp.c | 60 +--- hw/lsi53c895a.c | 48 +++--- hw/scsi-bus.c|4 +- hw/scsi.h|9 + hw/spapr_vscsi.c | 101 ++ hw/usb-msd.c

[Qemu-devel] [PATCH v3 18/21] scsi-disk: add data direction checking

2011-05-17 Thread Paolo Bonzini
From: Hannes Reinecke scsi_req_parse() already provides for a data direction setting, so we should be using it to check for correct direction. And we should return the sense code 'INVALID FIELD IN CDB' in these cases. Signed-off-by: Hannes Reinecke Signed-off-by: Paolo Bonzini --- hw/scsi-dis

[Qemu-devel] [PATCH v3 20/21] scsi-generic: Handle queue full

2011-05-17 Thread Paolo Bonzini
The sg driver currently has a hardcoded limit of commands it can handle simultaneously. When this limit is reached the driver will return -EDOM. So we need to capture this to enable proper return values here. Signed-off-by: Hannes Reinecke Signed-off-by: Paolo Bonzini --- hw/scsi-generic.c |

Re: [Qemu-devel] [RESEND][PATCH 3/9] microdrive: qdevify

2011-05-17 Thread andrzej zaborowski
On 17 May 2011 07:44, Jan Kiszka wrote: > On 2011-05-17 03:38, andrzej zaborowski wrote: >> On 16 May 2011 15:08, Dmitry Eremin-Solenikov wrote: >>> On 5/16/11, andrzej zaborowski wrote: On 16 May 2011 06:54, Dmitry Eremin-Solenikov wrote: > Socket is required, as we have to know the Q

Re: [Qemu-devel] [PATCH] Fix a number of unused-but-set-variable warnings (new with gcc-4.6)

2011-05-17 Thread Christophe Fergeau
Hi Hans, On Tue, May 03, 2011 at 01:03:40PM +0200, Hans de Goede wrote: > diff --git a/target-i386/kvm.c b/target-i386/kvm.c > index a13599d..e9e8d54 100644 > --- a/target-i386/kvm.c > +++ b/target-i386/kvm.c > @@ -950,7 +950,7 @@ static int kvm_get_xsave(CPUState *env) > @@ -966,7 +966,7 @@ stati

Re: [Qemu-devel] [RESEND][PATCH 3/9] microdrive: qdevify

2011-05-17 Thread Jan Kiszka
On 2011-05-17 13:08, andrzej zaborowski wrote: > On 17 May 2011 07:44, Jan Kiszka wrote: >> On 2011-05-17 03:38, andrzej zaborowski wrote: >>> On 16 May 2011 15:08, Dmitry Eremin-Solenikov wrote: On 5/16/11, andrzej zaborowski wrote: > On 16 May 2011 06:54, Dmitry Eremin-Solenikov >>>

[Qemu-devel] [PATCH] libcacard: add libcacard.la target

2011-05-17 Thread Alon Levy
No flag to configure is required. Instead, added a libcacard.la target that is not built by default, only when requested explicitly via: mkdir build cd build ../configure make libcacard.la make install-libcacard Uses libtool to do actual linking of object files and shared library, and installing.

Re: [Qemu-devel] [PATCH] libcacard: add libcacard.la target

2011-05-17 Thread Alon Levy
On Tue, May 17, 2011 at 03:03:45PM +0300, Alon Levy wrote: Forgot to mention this is the v3, with the following fixes: * no warning, properly use libtool to wrap dtrace (which calls gcc). * tested with all tracing backends but ust (and in the process of testing that) * moved general rule for pr

[Qemu-devel] [PATCH] linux-user: Handle images where lowest vaddr is not page aligned

2011-05-17 Thread Peter Maydell
Fix a bug in the linux-user ELF loader code where it was not correctly handling images where the lowest vaddr to be loaded was not page aligned. The problem was that the code to probe for a suitable guest base address was changing the 'loaddr' variable (by rounding it to a page boundary), which mea

Re: [Qemu-devel] [PATCH 18/18] usb: add ehci adapter

2011-05-17 Thread David Ahern
On 05/17/11 01:20, Gerd Hoffmann wrote: >> On 05/16/11 13:56, Gerd Hoffmann wrote: >>> This patch finally merges the EHCI host adapter aka USB 2.0 support. >>> >>> Based on git://git.kiszka.org/qemu.git ehci >>> >>> Changes: >>>- Adapt to recent changes in the usb subsystem. >>>- Don't cr

Re: [Qemu-devel] [PatchV3] s390x: fix memory detection for guests > 64GB

2011-05-17 Thread Alexander Graf
On 12.05.2011, at 10:50, Christian Borntraeger wrote: >> I'd definitely prefer that over the change on vl.c :) > > the s390 memory detection has a 16bit field that specifies the amount of > increments. This patch adopts the memory size to always fit into that > scheme. This also fixes virtio det

Re: [Qemu-devel] AHCI problems.

2011-05-17 Thread Alexander Graf
On 15.05.2011, at 18:41, Alexey Zaytsev wrote: > Hi again. > > After reverting 667bb59, ahci works fine in Linux, if I boot it with > -kernel, but grub seems to have some problems. > Grub2 gets to the rescue prompt. The disk and its partitions seem to > be detected correctly, but not the filesys

Re: [Qemu-devel] [PATCH 18/18] usb: add ehci adapter

2011-05-17 Thread Gerd Hoffmann
Hi, As someone who spent a significant amount of time working on the EHCI code last year I am absolutely not ok with this. The entire contribution history for EHCI lost - and for no reason. There is a reason. I've tried to keep the history, but it was a big mess with conflicts and build err

Re: [Qemu-devel] [PATCH 18/18] usb: add ehci adapter

2011-05-17 Thread David Ahern
On 05/17/11 06:42, David Ahern wrote: > > > On 05/17/11 01:20, Gerd Hoffmann wrote: >>> On 05/16/11 13:56, Gerd Hoffmann wrote: This patch finally merges the EHCI host adapter aka USB 2.0 support. Based on git://git.kiszka.org/qemu.git ehci Changes: - Adapt to r

Re: [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci express support

2011-05-17 Thread Isaku Yamahata
On Tue, May 17, 2011 at 09:15:39AM +0200, Jan Kiszka wrote: > On 2011-05-16 23:55, Adnan Khaleel wrote: > > I finally got this work after I realised that the AHCI driver was not being > > loaded in my disk image and that ACHI was not being enabled in the Seabios > > .config file. > > This is real

Re: [Qemu-devel] [PatchV3] s390x: fix memory detection for guests > 64GB

2011-05-17 Thread Alexander Graf
On 17.05.2011, at 15:16, Alexander Graf wrote: > > On 12.05.2011, at 10:50, Christian Borntraeger wrote: > >>> I'd definitely prefer that over the change on vl.c :) >> >> the s390 memory detection has a 16bit field that specifies the amount of >> increments. This patch adopts the memory size t

Re: [Qemu-devel] AHCI problems.

2011-05-17 Thread René Rebe
Hi, + On 17.05.2011, at 15:46, Alexander Graf wrote: > > On 15.05.2011, at 18:41, Alexey Zaytsev wrote: > >> Hi again. >> >> After reverting 667bb59, ahci works fine in Linux, if I boot it with >> -kernel, but grub seems to have some problems. >> Grub2 gets to the rescue prompt. The disk and it

Re: [Qemu-devel] AHCI problems.

2011-05-17 Thread Alexander Graf
On 17.05.2011, at 16:07, René Rebe wrote: > Hi, > + > On 17.05.2011, at 15:46, Alexander Graf wrote: > >> >> On 15.05.2011, at 18:41, Alexey Zaytsev wrote: >> >>> Hi again. >>> >>> After reverting 667bb59, ahci works fine in Linux, if I boot it with >>> -kernel, but grub seems to have some pr

Re: [Qemu-devel] [PATCH 18/18] usb: add ehci adapter

2011-05-17 Thread David Ahern
On 05/17/11 07:46, Gerd Hoffmann wrote: > > Hi, > As someone who spent a significant amount of time working on the EHCI code last year I am absolutely not ok with this. The entire contribution history for EHCI lost - and for no reason. >>> >>> There is a reason. I've trie

Re: [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci express support

2011-05-17 Thread Jan Kiszka
On 2011-05-17 15:57, Isaku Yamahata wrote: > On Tue, May 17, 2011 at 09:15:39AM +0200, Jan Kiszka wrote: >> On 2011-05-16 23:55, Adnan Khaleel wrote: >>> I finally got this work after I realised that the AHCI driver was not being >>> loaded in my disk image and that ACHI was not being enabled in t

[Qemu-devel] [PATCH] [qemu-img] CPU consuming optimization

2011-05-17 Thread Dmitry Konishchev
Hi! I was wondering why qemu-img consumes so much CPU when it converts one partially allocated qcow2 image to another qcow2 image and I've written a patch which improves the situation a little. I have an image: > $ qemu-img info ubuntu.10.04.qcow2 > image: ubuntu.10.04.qcow2 > file format: qcow2 >

Re: [Qemu-devel] [PATCH 18/18] usb: add ehci adapter

2011-05-17 Thread Gerd Hoffmann
Hi, Right, you did not even try to work with Jan's tree. There is no reason the EHCI code could not have been brought in to qemu that way. The usual way to review & merge code is to send a patch series against recent master to qemu-devel, optionally with a git tree to pull from. So I tried

Re: [Qemu-devel] [PATCH 01/11] Move user emulator stuff from cpu-exec.c to user-exec.c

2011-05-17 Thread Richard Henderson
On 05/14/2011 12:36 PM, Blue Swirl wrote: > Simplify cpu-exec.c by refactoring. > > Signed-off-by: Blue Swirl Signed-off-by: Richard Henderson This ought to go in no matter what happens with the rest. r~

Re: [Qemu-devel] [PATCH 02/11] Delete unused tb_invalidate_page_range

2011-05-17 Thread Richard Henderson
On 05/14/2011 12:37 PM, Blue Swirl wrote: > tb_invalidate_page_range() was intended to be used to invalidate an area of a > TB > which the guest explicitly flushes from i-cache. However, QEMU detects writes > to code areas where TBs have been generated, so this has never been useful. > > Delete t

Re: [Qemu-devel] [PATCH] linux-user: Handle images where lowest vaddr is not page aligned

2011-05-17 Thread Russ Cox
Thanks for tracking this down!

Re: [Qemu-devel] [PATCH 01/11] Move user emulator stuff from cpu-exec.c to user-exec.c

2011-05-17 Thread Peter Maydell
On 14 May 2011 20:36, Blue Swirl wrote: > +#if defined(__i386__) > +#elif defined(__x86_64__) > +#elif defined(_ARCH_PPC) > +#elif defined(__alpha__) > +#elif defined(__sparc__) > +#elif defined(__arm__) > +#elif defined(__mc68000) > +#elif defined(__ia64) > +#elif defined(__s390__) > +#

Re: [Qemu-devel] [PATCH] linux-user: Handle images where lowest vaddr is not page aligned

2011-05-17 Thread Gustavo Niemeyer
> Thanks for tracking this down! Indeed, thanks a lot for the very fast action on this. -- Gustavo Niemeyer http://niemeyer.net http://niemeyer.net/blog http://niemeyer.net/twitter

Re: [Qemu-devel] [PATCH 04/11] Delegate setup of TCG temporaries to targets

2011-05-17 Thread Richard Henderson
On 05/14/2011 12:37 PM, Blue Swirl wrote: > Delegate TCG temp_buf setup to targets, so that they can use a stack > frame later instead. > > Signed-off-by: Blue Swirl Reviewed-by: Richard Henderson I think this sub-series moving TCG temps to the stack frame should go in. We can tidy up the ot

Re: [Qemu-devel] [PATCH 05/11] TCG: fix negative frame offset calculations

2011-05-17 Thread Richard Henderson
On 05/14/2011 12:38 PM, Blue Swirl wrote: > size_t is unsigned, so the frame offset calculations can be incorrect for > negative offsets. > > Signed-off-by: Blue Swirl Reviewed-by: Richard Henderson r~

Re: [Qemu-devel] [PATCH 06/11] TCG/x86: use stack for TCG temps

2011-05-17 Thread Richard Henderson
On 05/14/2011 12:38 PM, Blue Swirl wrote: > -frame_size = push_size + TCG_STATIC_CALL_ARGS_SIZE; > +frame_size = push_size + TCG_STATIC_CALL_ARGS_SIZE + > +CPU_TEMP_BUF_NLONGS * sizeof(long); > frame_size = (frame_size + TCG_TARGET_STACK_ALIGN - 1) & > ~(TCG_TARGET_STA

Re: [Qemu-devel] [PATCH 18/18] usb: add ehci adapter

2011-05-17 Thread Gerd Hoffmann
Hi, (And by the way, where are the focused patches for each, especially the last one - nuking the 8kHz code? It's squashed in, like everything else. We know that it worked on linux and that printers, scanners and storage devices worked ok (mostly). 8 kHz is insane. I looked closely whil

[Qemu-devel] KVM call of May 17th

2011-05-17 Thread Juan Quintela
Minutes of today KVM call: - import of headers in marcelo hands through kvm tree - libtool integration * autoconf * gnulib -> if we move to glib, we have something similar for free * recursive Makefile Paolo item: propose timeline & plan on wiki, and discuss from there - SCSI integratio

[Qemu-devel] [PATCH 0/2][SPARC] Improve sparc Trap

2011-05-17 Thread Julien Grall
Hi, I' m glad to submit my first patches to the QEMU-devel list. This set of patches improves SPARC handling of trap and the shutdown capability on trap 0. Regards, Fabien Chouteau (1) :    Improve sparc handling of ta Julien Grall (1) :    Fix TA0_SHUTDOWN feature target-sparc/helper.h    |

[Qemu-devel] [PATCH 1/2][SPARC] Improve sparc handling of ta

2011-05-17 Thread Julien Grall
Improve sparc handling of ta Signed-off-by: Julien Grall ---  target-sparc/helper.h    |    1 +  target-sparc/op_helper.c |    6 ++  target-sparc/translate.c |    7 ---  3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/target-sparc/helper.h b/target-sparc/helper.h index 12e

[Qemu-devel] [PATCH 2/2][SPARC] Fix TA0_Shutdown feature

2011-05-17 Thread Julien Grall
Fix TA0_SHUTDOWN feature Signed-off-by: Julien Grall --- target-sparc/op_helper.c | 13 +++-- target-sparc/translate.c |9 + 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c index a6fabad..cb775f5 100644 --

Re: [Qemu-devel] [PATCH] [qemu-img] CPU consuming optimization

2011-05-17 Thread Stefan Hajnoczi
On Tue, May 17, 2011 at 3:33 PM, Dmitry Konishchev wrote: > Hi! I was wondering why qemu-img consumes so much CPU when it converts > one partially allocated qcow2 image to another qcow2 image and I've > written a patch which improves the situation a little. Please see http://wiki.qemu.org/Contrib

Re: [Qemu-devel] [RFC Patch 0/3]Qemu: Enable dynamic cache change through qemu monitor

2011-05-17 Thread Christoph Hellwig
On Mon, May 16, 2011 at 04:10:21PM -0500, Anthony Liguori wrote: > To further clarify: > > Today cache=none|writethrough|writeback does two things. It: > > 1) Changes the WCE flag that's visible to the guest > > 2) Determines whether the host page cache is used for doing guest I/O > > As Christoph

Re: [Qemu-devel] [PATCH 11/11] target-i386: use floatx80_log2() to implement helper_fyl2x*()

2011-05-17 Thread Richard Henderson
On 05/15/2011 07:13 AM, Aurelien Jarno wrote: > +temp = floatx80_add(ST0, floatx80_one, &env->fp_status); > +if (!floatx80_is_neg(temp)) { > +temp = floatx80_add(ST0, floatx80_one, &env->fp_status); > +temp = floatx80_log2(temp, &env->fp_status); > +ST1 = floatx80_mu

[Qemu-devel] [PATCH] block: clarify the meaning of BDRV_O_NOCACHE

2011-05-17 Thread Christoph Hellwig
Change BDRV_O_NOCACHE to only imply bypassing the host OS file cache, but no writeback semantics. All existing callers are changed to also specify BDRV_O_CACHE_WB to give them writeback semantics. Signed-off-by: Christoph Hellwig Index: qemu/block.c =

[Qemu-devel] [PATCH 3/3] tcg: don't keep dead outputs in registers

2011-05-17 Thread Aurelien Jarno
If an op with dead outputs is not removed, because it has side effects or has multiple output arguments and only one dead, mark the TCG registers as dead instead of keeping them allocated. This avoid a few register spills on TCG targets with low register count, especially with div2 and mul2 ops,

[Qemu-devel] [PATCH 1/3] tcg: replace op_dead_iargs by op_dead_args

2011-05-17 Thread Aurelien Jarno
Allow all args to be dead by replacing the input specific op_dead_iargs variable by op_dead_args. Note this is a purely mechanical change. Signed-off-by: Aurelien Jarno --- tcg/tcg.c | 71 +++-- tcg/tcg.h |4 +- 2 files changed, 38 in

[Qemu-devel] [PATCH 0/3] TCG: first attempt to reduce host registers usage

2011-05-17 Thread Aurelien Jarno
This patch series is a first attempt after the TCG_AREG0 discussion to show it's possible to easily (at least without making huge changes to the TCG core code) spare some registers and avoid a few spills on low register count TCG targets like i386. On i386 hosts some TB are reduced by up to 10%, t

[Qemu-devel] [PATCH 2/3] tcg: mark dead output argument in op_dead_args

2011-05-17 Thread Aurelien Jarno
If an op is not removed and has dead output arguments, mark it in op_dead_args similarly to what is done for input arguments. Signed-off-by: Aurelien Jarno --- tcg/tcg.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index 9a48cb9..82d3e1d

Re: [Qemu-devel] [PATCH 08/18] usb-linux: fix device path aka physical port handling

2011-05-17 Thread Markus Armbruster
Looks like you haven't updated this one for the last round of review, yet. Gerd Hoffmann writes: > The device path isn't just a number. It specifies the physical port > the device is connected to and in case the device is connected via > usb hub you'll have two numbers there, like this: "5.1".

[Qemu-devel] [PATCH v2 09/38] hw/acpi_piix4.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/acpi_piix4.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c index 96f5222..03d833a 100644 --- a/hw/acpi_piix4.c +++ b/hw/acpi_piix4.c @@ -317,13 +317,9 @@

[Qemu-devel] [PATCH v2 14/38] hw/grackle_pci.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/grackle_pci.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/grackle_pci.c b/hw/grackle_pci.c index d35701f..7a5221c 100644 --- a/hw/grackle_pci.c +++ b/hw/grackle_pci.c @@ -104,11 +104,

[Qemu-devel] [PATCH v2 00/38] pci: initialize ids in pci common code

2011-05-17 Thread Isaku Yamahata
vender id/device id... in pci configuration space are read-only registers which are commonly defined for all pci devices. So initialize them in common code and it simplifies the initialization a bit. I didn't converted virtio-pci and qxl because it determines ids dynaically. So I'll leave those con

[Qemu-devel] [PATCH v2 10/38] hw/bonito.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/bonito.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/bonito.c b/hw/bonito.c index 65a4a63..e8c57a3 100644 --- a/hw/bonito.c +++ b/hw/bonito.c @@ -691,11 +691,7 @@ static int bonito_i

[Qemu-devel] [PATCH v2 19/38] hw/intel-hda.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/intel-hda.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/intel-hda.c b/hw/intel-hda.c index 5485745..0ce 100644 --- a/hw/intel-hda.c +++ b/hw/intel-hda.c @@ -1138,10 +1138,6 @@ sta

[Qemu-devel] [PATCH v2 37/38] hw/xio3130_downstream.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/xio3130_downstream.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xio3130_downstream.c b/hw/xio3130_downstream.c index 5aa6a6b..d3c387d 100644 --- a/hw/xio3130_downstream.c +++ b/hw/xio3

[Qemu-devel] [PATCH v2 15/38] hw/gt64xxx.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/gt64xxx.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/gt64xxx.c b/hw/gt64xxx.c index c66188f..8e1f6a0 100644 --- a/hw/gt64xxx.c +++ b/hw/gt64xxx.c @@ -1118,14 +1118,10 @@ static int g

[Qemu-devel] [PATCH v2 28/38] hw/rtl8139.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/rtl8139.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/rtl8139.c b/hw/rtl8139.c index c7c7a3c..34e3a9e 100644 --- a/hw/rtl8139.c +++ b/hw/rtl8139.c @@ -3453,10 +3453,6 @@ static int pc

[Qemu-devel] [PATCH v2 36/38] hw/wdt_i6300esb.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/wdt_i6300esb.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/wdt_i6300esb.c b/hw/wdt_i6300esb.c index 0791721..bd57fd3 100644 --- a/hw/wdt_i6300esb.c +++ b/hw/wdt_i6300esb.c @@ -400,9 +40

[Qemu-devel] [PATCH v2 38/38] hw/xio3130_upstream.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/xio3130_upstream.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xio3130_upstream.c b/hw/xio3130_upstream.c index a7640f5..8283695 100644 --- a/hw/xio3130_upstream.c +++ b/hw/xio3130_upst

[Qemu-devel] [PATCH v2 22/38] hw/lsi53c895a.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/lsi53c895a.c | 17 - 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index be4df58..af87b2c 100644 --- a/hw/lsi53c895a.c +++ b/hw/lsi53c895a.c @@ -2212,15

[Qemu-devel] [PATCH v2 07/38] vmware_vga.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/vmware_vga.c | 13 ++--- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c index 4656767..354c221 100644 --- a/hw/vmware_vga.c +++ b/hw/vmware_vga.c @@ -1280,15 +128

[Qemu-devel] [PATCH v2 29/38] hw/sh_pci.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/sh_pci.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/sh_pci.c b/hw/sh_pci.c index e99d8db..a076cf2 100644 --- a/hw/sh_pci.c +++ b/hw/sh_pci.c @@ -137,8 +137,6 @@ static int sh_pci_init_de

[Qemu-devel] [PATCH v2 16/38] hw/ide/cmd646.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/ide/cmd646.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c index 5d5464a..56302b5 100644 --- a/hw/ide/cmd646.c +++ b/hw/ide/cmd646.c @@ -226,14 +226,8 @

[Qemu-devel] [PATCH v2 04/38] dec_pci: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/dec_pci.c | 26 +++--- 1 files changed, 7 insertions(+), 19 deletions(-) diff --git a/hw/dec_pci.c b/hw/dec_pci.c index bf88f2a..a35f382 100644 --- a/hw/dec_pci.c +++ b/hw/dec_pci.c @@ -50,28 +50,16

[Qemu-devel] [PATCH v2 08/38] hw/ac97.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/ac97.c |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/hw/ac97.c b/hw/ac97.c index d71072d..bf1d1d4 100644 --- a/hw/ac97.c +++ b/hw/ac97.c @@ -1281,9 +1281,6 @@ static int ac97_initfn (PCID

[Qemu-devel] [PATCH v2 12/38] hw/e1000.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/e1000.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/e1000.c b/hw/e1000.c index f160bfc..96d84f9 100644 --- a/hw/e1000.c +++ b/hw/e1000.c @@ -1164,12 +1164,8 @@ static int pci_e1000_in

[Qemu-devel] [PATCH v2 11/38] hw/cirrus_vga.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/cirrus_vga.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c index 722cac7..e239e21 100644 --- a/hw/cirrus_vga.c +++ b/hw/cirrus_vga.c @@ -3097,7 +3097,6 @@

[Qemu-devel] [PATCH v2 27/38] hw/qxl.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/qxl.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/qxl.c b/hw/qxl.c index fe4212b..63cffc3 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -1233,7 +1233,6 @@ static int qxl_init_common(PCIQXLDe

[Qemu-devel] [PATCH v2 21/38] hw/ivshmem.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/ivshmem.c |8 +++- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/hw/ivshmem.c b/hw/ivshmem.c index 7b19a81..3055dd2 100644 --- a/hw/ivshmem.c +++ b/hw/ivshmem.c @@ -706,12 +706,7 @@ static int pci_

[Qemu-devel] [PATCH v2 20/38] hw/ioh3420.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/ioh3420.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hw/ioh3420.c b/hw/ioh3420.c index 95adf09..a6bfbb9 100644 --- a/hw/ioh3420.c +++ b/hw/ioh3420.c @@ -104,12 +104,8 @@ static int ioh34

  1   2   3   >