[Qemu-devel] [PATCH 2/2 v5] Replace bdrv_* to bdrv_aio_* functions in DMA mode in fdc.c.

2012-04-19 Thread Li Zhi Hui
Replace bdrv_* to bdrv_aio_* functions in DMA mode in fdc.c. Signed-off-by: Li Zhi Hui zhihu...@linux.vnet.ibm.com --- change log: v3: correct some mistakes about memory v4: change the return value of function fdctrl_transfer_handler v5: introduce a flag to avoid re-enter function

Re: [Qemu-devel] [PATCH v9 06/10] Add XBZRLE to ram_save_block and ram_save_live

2012-04-19 Thread Orit Wasserman
On 04/18/2012 07:54 PM, Juan Quintela wrote: Orit Wasserman owass...@redhat.com wrote: @@ -104,6 +104,7 @@ const uint32_t arch_type = QEMU_ARCH; #define RAM_SAVE_FLAG_PAGE 0x08 #define RAM_SAVE_FLAG_EOS 0x10 #define RAM_SAVE_FLAG_CONTINUE 0x20 +#define RAM_SAVE_FLAG_XBZRLE

Re: [Qemu-devel] [PATCH v9 09/10] Add set_cachesize command

2012-04-19 Thread Orit Wasserman
On 04/18/2012 08:07 PM, Juan Quintela wrote: Orit Wasserman owass...@redhat.com wrote: Change XBZRLE cache size in bytes (the size should be a power of 2). If XBZRLE cache size is too small there will be many cache miss. +.name = migrate_set_cachesize, +.args_type =

Re: [Qemu-devel] [PATCH v9 01/10] Add cache handling functions

2012-04-19 Thread Orit Wasserman
On 04/18/2012 08:19 PM, Anthony Liguori wrote: On 04/11/2012 01:49 PM, Orit Wasserman wrote: Add LRU page cache mechanism. The page are accessed by their address. Signed-off-by: Orit Wassermanowass...@redhat.com Signed-off-by: Benoit Hudziabenoit.hud...@sap.com Signed-off-by: Petter

Re: [Qemu-devel] [PATCH v9 04/10] Add host_from_stream_offset_versioned function

2012-04-19 Thread Orit Wasserman
On 04/18/2012 05:42 PM, Juan Quintela wrote: Orit Wasserman owass...@redhat.com wrote: Signed-off-by: Orit Wasserman owass...@redhat.com Signed-off-by: Benoit Hudzia benoit.hud...@sap.com Signed-off-by: Petter Svard pett...@cs.umu.se Signed-off-by: Aidan Shribman aidan.shrib...@sap.com ---

Re: [Qemu-devel] [PATCH v9 05/10] Add MigrationParams structure

2012-04-19 Thread Orit Wasserman
On 04/18/2012 08:26 PM, Anthony Liguori wrote: On 04/11/2012 01:49 PM, Orit Wasserman wrote: Signed-off-by: Isaku Yamahatayamah...@valinux.co.jp If you're not going to SoB this patch, please make sure you set the GIT_AUTHOR appropriately so that there's a From line for Isaku. Otherwise it

[Qemu-devel] [PATCH 1/2 v5] add function DMA_set_return and delete bh_schedule in dma.c

2012-04-19 Thread Li Zhi Hui
add function DMA_set_return and delete bh_schedule in dma.c Signed-off-by: Li Zhi Hui zhihu...@linux.vnet.ibm.com --- hw/dma.c | 13 + hw/isa.h |1 + 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/hw/dma.c b/hw/dma.c index 0a9322d..55dc320 100644 --- a/hw/dma.c

Re: [Qemu-devel] [PATCH v9 03/10] Add save_block_hdr function

2012-04-19 Thread Orit Wasserman
On 04/18/2012 08:45 PM, Anthony Liguori wrote: On 04/18/2012 12:40 PM, Juan Quintela wrote: Anthony Liguorianth...@codemonkey.ws wrote: On 04/11/2012 01:49 PM, Orit Wasserman wrote: Signed-off-by: Orit Wassermanowass...@redhat.com Signed-off-by: Benoit Hudziabenoit.hud...@sap.com

Re: [Qemu-devel] [PATCH v9 08/10] Add migration capabilites

2012-04-19 Thread Orit Wasserman
On 04/18/2012 08:36 PM, Anthony Liguori wrote: On 04/11/2012 01:49 PM, Orit Wasserman wrote: Add migration capabiltes that can be queried by the management. The managment can query to source and the destination in order to verify both support some maigration capability (currently only XBZRLE).

[Qemu-devel] [PATCH v7 0/5] support to migrate with IPv6 address

2012-04-19 Thread Amos Kong
Those patches make tcp migration use the help functions in qemu-socket.c for support IPv6 migration. Changes from v1: - split different changes to small patches, it will be easier to review - fixed some problem according to Kevin's comment Changes from v2: - fix issue of returning real error -

[Qemu-devel] [PATCH v7 2/4] sockets: change inet_connect() to support nonblock socket

2012-04-19 Thread Amos Kong
Add a bool argument to inet_connect() to assign if set socket to block/nonblock, and delete original argument 'socktype' that is unused. Add a new argument to inet_connect()/inet_connect_opts(), to pass back connect error by error class. Retry to connect when -EINTR is got. Connect's successful

[Qemu-devel] [PATCH v7 1/4] qerror: add five qerror strings

2012-04-19 Thread Amos Kong
Add five new qerror strings, they are about listen/connect socket: QERR_SOCKET_CONNECT_IN_PROGRESS QERR_SOCKET_CONNECT_FAILED QERR_SOCKET_LISTEN_FAILED QERR_SOCKET_BIND_FAILED QERR_SOCKET_CREATE_FAILED Signed-off-by: Amos Kong ak...@redhat.com --- qerror.c | 20

[Qemu-devel] [PATCH v7 3/4] sockets: use error class to pass listen error

2012-04-19 Thread Amos Kong
Add a new argument in inet_listen()/inet_listen_opts() to pass back listen error. Change nbd, qemu-char, vnc to use new interface. Signed-off-by: Amos Kong ak...@redhat.com --- nbd.c |2 +- qemu-char.c|2 +- qemu-sockets.c | 17 ++--- qemu_socket.h |4

Re: [Qemu-devel] [PATCH v9 09/10] Add set_cachesize command

2012-04-19 Thread Orit Wasserman
On 04/18/2012 08:37 PM, Anthony Liguori wrote: On 04/11/2012 01:49 PM, Orit Wasserman wrote: Change XBZRLE cache size in bytes (the size should be a power of 2). If XBZRLE cache size is too small there will be many cache miss. Signed-off-by: Orit Wassermanowass...@redhat.com Signed-off-by:

Re: [Qemu-devel] [PATCH 00/16] QEMU vhost-scsi support

2012-04-19 Thread Paolo Bonzini
Il 19/04/2012 04:38, zwu.ker...@gmail.com ha scritto: From: Zhi Yong Wu wu...@linux.vnet.ibm.com The patchset was developed originally by Stefan about one year ago. I now rebase it to latest qemu.git/master and fixed some issues to make it work against tcm_vhost and virtio_scsi driver. But

Re: [Qemu-devel] [PATCH v9 00/10] XBZRLE delta for live migration of large memory app

2012-04-19 Thread Orit Wasserman
On 04/18/2012 08:12 PM, Anthony Liguori wrote: Hi, Just to avoid any 1.1 migration surprises, I view this series as 1.2 material. I'm reluctant to make any protocol changes this late in the release process (assuming this series got all the necessary review/ack in the next 1.5 weeks).

[Qemu-devel] [PATCH v7 0/4] support to migrate with IPv6 address

2012-04-19 Thread Amos Kong
On 19/04/12 15:11, Amos Kong wrote: Those patches make tcp migration use the help functions in qemu-socket.c for support IPv6 migration. ... --- Amos Kong (4): qerror: add five qerror strings sockets: change inet_connect() to support nonblock socket sockets: use error

[Qemu-devel] [PATCH v7 4/4] use inet_listen()/inet_connect() to support ipv6 migration

2012-04-19 Thread Amos Kong
Use help functions in qemu-socket.c for tcp migration, which already support ipv6 addresses. Currently errp will be set to UNDEFINED_ERROR when migration fails, qemu would output migration failed: ..., and current user can see a message(An undefined error has occurred) in monitor. This patch

Re: [Qemu-devel] [PATCH v9 06/10] Add XBZRLE to ram_save_block and ram_save_live

2012-04-19 Thread Orit Wasserman
On 04/18/2012 08:32 PM, Anthony Liguori wrote: On 04/11/2012 01:49 PM, Orit Wasserman wrote: Add migration state to store XBRLE params (enablement and cache size). In the outgoing migration check to see if the page is cached and changed than send compressed page by using save_xbrle_page

[Qemu-devel] [Bug 985288] Re: scsi disk emulation doesn't enforce FUA (Force Unit Access) in write-back mode

2012-04-19 Thread Paolo Bonzini
** Changed in: qemu Assignee: (unassigned) = Paolo Bonzini (bonzini) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/985288 Title: scsi disk emulation doesn't enforce FUA (Force Unit Access) in

Re: [Qemu-devel] [PATCH v9 02/10] Add uleb encoding/decoding functions

2012-04-19 Thread Avi Kivity
On 04/18/2012 08:20 PM, Anthony Liguori wrote: On 04/11/2012 01:49 PM, Orit Wasserman wrote: Implement Unsigned Little Endian Base 128. Signed-off-by: Orit Wassermanowass...@redhat.com --- migration.h |4 savevm.c| 28 2 files changed, 32

Re: [Qemu-devel] [PATCH 00/16] QEMU vhost-scsi support

2012-04-19 Thread Zhi Yong Wu
On Thu, Apr 19, 2012 at 3:16 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 19/04/2012 04:38, zwu.ker...@gmail.com ha scritto: From: Zhi Yong Wu wu...@linux.vnet.ibm.com The patchset was developed originally by Stefan about one year ago. I now rebase it to latest qemu.git/master and fixed

Re: [Qemu-devel] [PATCH 09/14] qdev: connect some links and move type to object

2012-04-19 Thread Igor Mammedov
On 04/19/2012 12:38 AM, Anthony Liguori wrote: On 04/18/2012 04:25 PM, Andreas Färber wrote: Am 18.04.2012 22:56, schrieb Anthony Liguori: This makes sysbus part of the root hierarchy and all busses children of their respective parent DeviceState. Signed-off-by: Anthony

Re: [Qemu-devel] [PATCH 00/16] QEMU vhost-scsi support

2012-04-19 Thread Zhi Yong Wu
On Thu, Apr 19, 2012 at 4:19 PM, Zhi Yong Wu zwu.ker...@gmail.com wrote: On Thu, Apr 19, 2012 at 3:16 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 19/04/2012 04:38, zwu.ker...@gmail.com ha scritto: From: Zhi Yong Wu wu...@linux.vnet.ibm.com The patchset was developed originally by Stefan

Re: [Qemu-devel] [PATCH 14/20] qcow2: Factor out count_cow_clusters

2012-04-19 Thread Kevin Wolf
Am 19.04.2012 04:44, schrieb Marcelo Tosatti: On Mon, Mar 12, 2012 at 04:19:45PM +0100, Kevin Wolf wrote: Signed-off-by: Kevin Wolf kw...@redhat.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- block/qcow2-cluster.c | 55 -

Re: [Qemu-devel] [PATCH 00/16] QEMU vhost-scsi support

2012-04-19 Thread Paolo Bonzini
Il 19/04/2012 10:19, Zhi Yong Wu ha scritto: 2) The series uses vhost-scsi unconditionally, as far as I can tell. So Perhaps there're some cleanup work to do, but it use vhost-scsi *conditionally*. In virtio_scsi_init(), you can see the code as below: if (s-vhost_scsi) {

Re: [Qemu-devel] [PATCH 00/16] QEMU vhost-scsi support

2012-04-19 Thread Zhi Yong Wu
On Thu, Apr 19, 2012 at 4:43 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 19/04/2012 10:19, Zhi Yong Wu ha scritto: 2) The series uses vhost-scsi unconditionally, as far as I can tell.  So Perhaps there're some cleanup work to do, but it use vhost-scsi *conditionally*. In

Re: [Qemu-devel] [PATCH 00/16] QEMU vhost-scsi support

2012-04-19 Thread Zhi Yong Wu
On Thu, Apr 19, 2012 at 4:43 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 19/04/2012 10:19, Zhi Yong Wu ha scritto: 2) The series uses vhost-scsi unconditionally, as far as I can tell.  So Perhaps there're some cleanup work to do, but it use vhost-scsi *conditionally*. In

[Qemu-devel] help setting up private git for bugfixes / own patches

2012-04-19 Thread Peter Lieven
Hi, I want to setup a private git repository for qemu for to tasks: a) cherry-pick existing patches from qemu git and submitting them as patch set for the next stable qemu release. i'm talking about patches which have not been included yet, but are present in the repository. b) add own

Re: [Qemu-devel] [PATCH 1/2] qemu-ga: suspend: fix possible SIGCHLD during close() and g_free()

2012-04-19 Thread Laszlo Ersek
On 04/18/12 21:30, Luiz Capitulino wrote: A child created by bios_supports_mode() could terminate during the call to close() or g_free(). This could cause the SIGCHLD signal to be deliveried in the midle of their execution. Possible problems range from resource leak to segfault. Fix that by

Re: [Qemu-devel] [PATCH 0/3] switch to seavgabios

2012-04-19 Thread Avi Kivity
On 04/18/2012 08:07 AM, Gerhard Wiesinger wrote: Negative also here: Don't see anything on screen on startup... From log, latest qemu-kvm git version: Running option rom at c180:3d4e Running option rom at c180:3da2 Running option rom at c180:3df6 Running option rom at c580:0003

[Qemu-devel] [PATCH] usb-storage: fix request canceling

2012-04-19 Thread Gerd Hoffmann
Little fix for usb packet handling on i/o cancelation. The usb packet pointer (s-packet) is cleared at the wrong place: The scsi request cancel handler does it. When a usb packet is canceled the usb-storage emulation canceles the scsi request if present. In most cases there is one, so usually

Re: [Qemu-devel] help setting up private git for bugfixes / own patches

2012-04-19 Thread Stefan Hajnoczi
On Thu, Apr 19, 2012 at 10:06 AM, Peter Lieven p...@dlh.net wrote: I want to setup a private git repository for qemu for to tasks: a)  cherry-pick existing patches from qemu git and submitting them as patch set  for the next stable qemu release. i'm talking about patches which have not  been

Re: [Qemu-devel] [PATCH] usb-storage: fix request canceling

2012-04-19 Thread Hans de Goede
Looks good, Acked-by: Hans de Goede hdego...@redhat.com Regards, Hans On 04/19/2012 11:46 AM, Gerd Hoffmann wrote: Little fix for usb packet handling on i/o cancelation. The usb packet pointer (s-packet) is cleared at the wrong place: The scsi request cancel handler does it. When a usb

Re: [Qemu-devel] help setting up private git for bugfixes / own patches

2012-04-19 Thread Peter Lieven
On 19.04.2012 12:01, Stefan Hajnoczi wrote: On Thu, Apr 19, 2012 at 10:06 AM, Peter Lievenp...@dlh.net wrote: I want to setup a private git repository for qemu for to tasks: a) cherry-pick existing patches from qemu git and submitting them as patch set for the next stable qemu release.

Re: [Qemu-devel] [PATCH] usb-storage: fix request canceling

2012-04-19 Thread Paolo Bonzini
Il 19/04/2012 11:46, Gerd Hoffmann ha scritto: Little fix for usb packet handling on i/o cancelation. The usb packet pointer (s-packet) is cleared at the wrong place: The scsi request cancel handler does it. When a usb packet is canceled the usb-storage emulation canceles the scsi request

Re: [Qemu-devel] [PATCH 2/3] block: wait for job callback in block_job_cancel_sync

2012-04-19 Thread Stefan Hajnoczi
On Wed, Apr 18, 2012 at 03:12:02PM +0200, Paolo Bonzini wrote: The limitation on not having I/O after cancellation cannot really be held. Even streaming has a very small race window where you could cancel a job and have it report completion. If this window is hit, bdrv_change_backing_file()

Re: [Qemu-devel] [PATCH 2/3] block: wait for job callback in block_job_cancel_sync

2012-04-19 Thread Paolo Bonzini
Il 19/04/2012 12:31, Stefan Hajnoczi ha scritto: void block_job_cancel(BlockJob *job) { +/* Complete all guest I/O before cancelling the job, so that if the + * job chooses to complete itself it will do so with a consistent + * view of the disk. + */ +bdrv_drain_all();

[Qemu-devel] [PATCH 0/2] Two trivial patches for SCSI thin provisioning

2012-04-19 Thread Ronnie Sahlberg
List, Please find two trivial patches for the recent thin provisioning support 1, you can support unmap via WRITE_SAME_10 just as well as WRITE_SAME_16 since they are the same/identical as far as how QEMU works ? 2, if implementing LBPWS and LBPWS10 we should also tell the guest that the

[Qemu-devel] [PATCH 2/2] SCSI emulation: should tell the guest that we actually support thin provisioning

2012-04-19 Thread Ronnie Sahlberg
Signed-off-by: Ronnie Sahlberg ronniesahlb...@gmail.com --- hw/scsi-disk.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index ccd9291..d6c197f 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-disk.c @@ -532,7 +532,7 @@ static int

[Qemu-devel] [PATCH 1/2] SCSI emulation: Support unmap via WRITE_SAME_10. It is the same as WRITE_SAME_16 as far as QEMU is concerned

2012-04-19 Thread Ronnie Sahlberg
Signed-off-by: Ronnie Sahlberg ronniesahlb...@gmail.com --- hw/scsi-disk.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index 9949786..ccd9291 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-disk.c @@ -531,7 +531,7 @@ static int

Re: [Qemu-devel] Poking at m68k gitorious branch.

2012-04-19 Thread Laurent Vivier
Hi Rob, you need to do a fresh clone because I rebase the branch frequently on the qemu/master instead of merging it. It is easier to manage for me. BTW, qemu-system-m68k is not working currently. I'm working on it on the branch q800 to emulate a macintosh quadra 800. I'm able to boot until the

Re: [Qemu-devel] [PATCH 0/3] switch to seavgabios

2012-04-19 Thread malc
On Wed, 18 Apr 2012, Kevin O'Connor wrote: On Wed, Apr 18, 2012 at 10:45:06PM +0400, malc wrote: On Wed, 18 Apr 2012, Gerd Hoffmann wrote: We talked with malc briefly on irc yesterday, and this is what he gave me:

Re: [Qemu-devel] [PATCH 00/12 v13] introducing a new, dedicated guest memory dump mechanism

2012-04-19 Thread Wen Congyang
At 04/18/2012 08:49 PM, Wen Congyang Wrote: Hi, all 'virsh dump' can not work when host pci device is used by guest. We have discussed this issue here: http://lists.nongnu.org/archive/html/qemu-devel/2011-10/msg00736.html The last version is here:

Re: [Qemu-devel] [PATCH 13/16] virtio-scsi: WIP VHOST_SCSI_SET_ENDPOINT call

2012-04-19 Thread Stefan Hajnoczi
On Thu, Apr 19, 2012 at 10:39:06AM +0800, zwu.ker...@gmail.com wrote: From: Stefan Hajnoczi stefa...@linux.vnet.ibm.com WIP == Work in progress Unfinished patches like this should be resolved before sending a series out. Even for RFC patches I wouldn't leave this in because it adds too much

Re: [Qemu-devel] help setting up private git for bugfixes / own patches

2012-04-19 Thread Stefan Hajnoczi
On Thu, Apr 19, 2012 at 11:05 AM, Peter Lieven p...@dlh.net wrote: On 19.04.2012 12:01, Stefan Hajnoczi wrote: On Thu, Apr 19, 2012 at 10:06 AM, Peter Lievenp...@dlh.net  wrote: I want to setup a private git repository for qemu for to tasks: a)  cherry-pick existing patches from qemu git

[Qemu-devel] [Bug 984953] Re: qemu-img alters (breaks) disk image content when converting to VDI

2012-04-19 Thread Volker Grabsch
I tested against the latest QEMU release (1.0.1) as provided by Debian/Wheezy. I also verified that the bug exists when I build qemu-img from the official source tarball. However, the bug no longer appears in the latest Git checkout (tested against 51006bb). I'm a bit confused that this bugfix

Re: [Qemu-devel] [PATCH 13/16] virtio-scsi: WIP VHOST_SCSI_SET_ENDPOINT call

2012-04-19 Thread Zhi Yong Wu
On Thu, Apr 19, 2012 at 7:03 PM, Stefan Hajnoczi stefa...@linux.vnet.ibm.com wrote: On Thu, Apr 19, 2012 at 10:39:06AM +0800, zwu.ker...@gmail.com wrote: From: Stefan Hajnoczi stefa...@linux.vnet.ibm.com WIP == Work in progress Unfinished patches like this should be resolved before sending a

Re: [Qemu-devel] help setting up private git for bugfixes / own patches

2012-04-19 Thread Peter Lieven
On 19.04.2012 13:15, Stefan Hajnoczi wrote: On Thu, Apr 19, 2012 at 11:05 AM, Peter Lievenp...@dlh.net wrote: On 19.04.2012 12:01, Stefan Hajnoczi wrote: On Thu, Apr 19, 2012 at 10:06 AM, Peter Lievenp...@dlh.netwrote: I want to setup a private git repository for qemu for to tasks: a)

Re: [Qemu-devel] [PATCH 0/3] switch to seavgabios

2012-04-19 Thread malc
On Wed, 18 Apr 2012, Gerd Hoffmann wrote: Hi, Second, the display panning via vesa pmi was broken in qemu for three years(!) and nobody noticed. The linux kernel's vesafb can use the vesa pmi, it is disabled by default though due to bioses tending to be buggy. I'm not aware of

Re: [Qemu-devel] [PATCH 0/2] Two trivial patches for SCSI thin provisioning

2012-04-19 Thread Paolo Bonzini
Il 19/04/2012 12:41, Ronnie Sahlberg ha scritto: List, Please find two trivial patches for the recent thin provisioning support 1, you can support unmap via WRITE_SAME_10 just as well as WRITE_SAME_16 since they are the same/identical as far as how QEMU works ? 2, if implementing LBPWS

Re: [Qemu-devel] help setting up private git for bugfixes / own patches

2012-04-19 Thread Stefan Hajnoczi
On Thu, Apr 19, 2012 at 12:32 PM, Peter Lieven p...@dlh.net wrote: On 19.04.2012 13:15, Stefan Hajnoczi wrote: On Thu, Apr 19, 2012 at 11:05 AM, Peter Lievenp...@dlh.net  wrote: On 19.04.2012 12:01, Stefan Hajnoczi wrote: On Thu, Apr 19, 2012 at 10:06 AM, Peter Lievenp...@dlh.net    wrote:

Re: [Qemu-devel] [PATCH v7 0/5] support to migrate with IPv6 address

2012-04-19 Thread Orit Wasserman
On 04/19/2012 10:11 AM, Amos Kong wrote: Those patches make tcp migration use the help functions in qemu-socket.c for support IPv6 migration. Changes from v1: - split different changes to small patches, it will be easier to review - fixed some problem according to Kevin's comment Changes

[Qemu-devel] [PATCH 2/3] usb-host: don't dereference invalid iovecs

2012-04-19 Thread Gerd Hoffmann
usb-host assumes the first iovec element is always valid. In case of a zero-length packet this isn't true though. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/host-linux.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/usb/host-linux.c

[Qemu-devel] [PATCH 3/3] usb-host: fix zero-length packets

2012-04-19 Thread Gerd Hoffmann
usb-host optimizes away zero-length packets by not entering the processing loop at all. Which isn't correct, we should submit a zero-length urb to the host devicein that case. This patch makes sure we run the processing loop at least once. Signed-off-by: Gerd Hoffmann kra...@redhat.com ---

[Qemu-devel] [PATCH 0/3] fix zero-length packets in usb-host

2012-04-19 Thread Gerd Hoffmann
Hi, Largely based on a patch from Johannes Stezenbach. Splitted it up, improved patch descriptions and added one related ehci bugfix. Johannes, does this series fix your firmware update issue? cheers, Gerd Gerd Hoffmann (3): ehci: add missing usb_packet_init() call usb-host: don't

[Qemu-devel] [PATCH 1/3] ehci: add missing usb_packet_init() call

2012-04-19 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/core.c |1 + hw/usb/hcd-ehci.c |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/usb/core.c b/hw/usb/core.c index 9a14a53..0e02da7 100644 --- a/hw/usb/core.c +++ b/hw/usb/core.c @@ -501,6 +501,7 @@ void

[Qemu-devel] [PATCH] qtest: Fix tv_usec != long

2012-04-19 Thread Richard Henderson
Sparc Debian 5.0.8 does not define __suseconds_t as long, but FMT_timeval expects %ld. Signed-off-by: Richard Henderson r...@twiddle.net Cc: Anthony Liguori aligu...@us.ibm.com Cc: Paolo Bonzini pbonz...@redhat.com --- qtest.c |8 1 files changed, 4 insertions(+), 4 deletions(-)

[Qemu-devel] [PATCH] qmp: Care for linux without fsfreeze

2012-04-19 Thread Richard Henderson
Debian 5.0.8 does not define FIFREEZE. Disentangle CONFIG_FSFREEZE from __linux__. Signed-off-by: Richard Henderson r...@twiddle.net Cc: Luiz Capitulino lcapitul...@redhat.com Cc: Michael Roth mdr...@linux.vnet.ibm.com --- qga/commands-posix.c | 48

Re: [Qemu-devel] [PATCH 2/2] usb-xhci: Use PCI DMA helper functions

2012-04-19 Thread Gerd Hoffmann
On 04/04/12 02:15, David Gibson wrote: Shortly before 1.0, we added helper functions / wrappers for doing PCI DMA from individual devices. This makes what's going on clearer and means that when we add IOMMU support somewhere in the future, only the general PCI code will have to change, not

[Qemu-devel] Call for Proposals: Linux Plumbers Conference (Aug 2012)

2012-04-19 Thread Amit Shah
Hello, The Call for Proposals for the Linux Plumbers Conf 2012 is out. We're looking for speakers to talk at the Virtualization microconference as well as the main conference. The deadline for proposal submissions is 1st May. This year's edition of LPC is co-located with LinuxCon NA and will

Re: [Qemu-devel] [PATCH] usb-ehci: Ensure frindex writes leave a valid frindex value

2012-04-19 Thread Gerd Hoffmann
On 04/03/12 14:21, Hans de Goede wrote: frindex is a 14 bits counter, so bits 31-14 should always be 0, and after the commit titled usb-ehci: frindex always is a 14 bits counter we rely on frindex always being a multiple of 8. I've not seen this in practice, but theoretically a guest can write

Re: [Qemu-devel] [PATCH] use: fix bit test

2012-04-19 Thread Gerd Hoffmann
On 04/02/12 08:35, Lai Jiangshan wrote: use instead of the wrong Fixed $subject and added to usb patch queue. thanks, Gerd

Re: [Qemu-devel] [PATCH 1/3] usb-redir: An interface count of 0 is a valid value

2012-04-19 Thread Gerd Hoffmann
On 03/31/12 17:14, Hans de Goede wrote: An interface-count of 0 happens when a device is in unconfigured state when it gets redirected. So we should not use 0 to detect not having received interface info from our peer. All three patches added to usb patch queue. thanks, Gerd

Re: [Qemu-devel] [PATCH] qtest: Fix tv_usec != long

2012-04-19 Thread Paolo Bonzini
Il 19/04/2012 14:09, Richard Henderson ha scritto: Sparc Debian 5.0.8 does not define __suseconds_t as long, but FMT_timeval expects %ld. Signed-off-by: Richard Henderson r...@twiddle.net Cc: Anthony Liguori aligu...@us.ibm.com Cc: Paolo Bonzini pbonz...@redhat.com --- qtest.c |8

Re: [Qemu-devel] [PATCH 00/16] QEMU vhost-scsi support

2012-04-19 Thread Anthony Liguori
Hi, As I've mentioned before in the past, I will apply vhost-* without an extremely compelling argument for it. The reason we ultimately settled on vhost-net is that in the absence of a fundamental change in the userspace networking interface (with something like VJ channels), it's

Re: [Qemu-devel] help setting up private git for bugfixes / own patches

2012-04-19 Thread Peter Lieven
On 19.04.2012 13:41, Stefan Hajnoczi wrote: On Thu, Apr 19, 2012 at 12:32 PM, Peter Lievenp...@dlh.net wrote: On 19.04.2012 13:15, Stefan Hajnoczi wrote: On Thu, Apr 19, 2012 at 11:05 AM, Peter Lievenp...@dlh.netwrote: On 19.04.2012 12:01, Stefan Hajnoczi wrote: On Thu, Apr 19, 2012 at

Re: [Qemu-devel] [PATCH] fix usb hid usage id table

2012-04-19 Thread Gerd Hoffmann
On 03/26/12 09:52, 홍도형 wrote: Add(or fix) following key conversions - 0x3a - 0x39 : CapsLock Patch looks fine. git can't handle the ks_c_5601-1987 encoding though. Any chance you can resend with utf-8? thanks, Gerd

Re: [Qemu-devel] [PATCH 0/3] fix zero-length packets in usb-host

2012-04-19 Thread Hans de Goede
Series looks good, ACK series. Regards, Hans On 04/19/2012 01:54 PM, Gerd Hoffmann wrote: Hi, Largely based on a patch from Johannes Stezenbach. Splitted it up, improved patch descriptions and added one related ehci bugfix. Johannes, does this series fix your firmware update issue?

Re: [Qemu-devel] [PATCH] mips: Fix BC1ANY[24]F instructions

2012-04-19 Thread Richard Henderson
On 04/18/2012 04:00 PM, Andreas Färber wrote: Am 26.11.2011 14:37, schrieb Richard Sandiford: There's some dodgy application of De Morgan's law in the emulation of the MIPS BC1ANY[24]F instructions: they end up branching only if all CCs are false, rather than if one CC is. Tested on

[Qemu-devel] [Bug 916720] Re: select fails on windows because a non-socket fd is in the rfds set

2012-04-19 Thread Meador Inge
I am still seeing the symptoms that Arie pointed out: Remote debugging using :1234 Ignoring packet error, continuing... warning: unrecognized item timeout in qSupported response Ignoring packet error, continuing... Ignoring packet error, continuing... Ignoring packet error, continuing... Ignoring

[Qemu-devel] [PATCH 03/14] tcg-sparc: Assume v9 cpu always, i.e. force v8plus in 32-bit mode.

2012-04-19 Thread Richard Henderson
Current code doesn't actually work in 32-bit mode at all. Since no one really noticed, drop the complication of v7 and v8 cpus. Eliminate the --sparc_cpu configure option and standardize macro testing on TCG_TARGET_REG_BITS / HOST_LONG_BITS Signed-off-by: Richard Henderson r...@twiddle.net ---

[Qemu-devel] [PATCH 00/14] tcg-sparc improvments, v3

2012-04-19 Thread Richard Henderson
Changes v2-v3: * Patch 3, undo disassembly errors spotted by Blue. * Patch 8, update for changes in mainline. Changes v1-v2: * Patch 3 found more __sparc_v8plus__ and __sparc_v9__ conditionals to convert. * Patch 6, user-exec.c no longer uses dyngen-exec.h at all. * Patch 7, env

[Qemu-devel] [PATCH 04/14] tcg-sparc: Fix qemu_ld/st to handle 32-bit host.

2012-04-19 Thread Richard Henderson
At the same time, split out the tlb load logic to a new function. Fixes the cases of two data registers and two address registers. Fixes the signature of, and adds missing, qemu_ld/st opcodes. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/sparc/tcg-target.c | 751

Re: [Qemu-devel] [PATCH 1/3] block: allow interrupting a co_sleep_ns

2012-04-19 Thread Kevin Wolf
Am 18.04.2012 15:12, schrieb Paolo Bonzini: In the next patch we want to reenter the coroutine from block_job_cancel_sync and cancel the timer. Signed-off-by: Paolo Bonzini pbonz...@redhat.com Thanks, applied this patch to the block branch. I'll wait for v2 for the rest of the series. Kevin

[Qemu-devel] [PATCH 07/14] Avoid declaring the env variable at all if CONFIG_TCG_PASS_AREG0.

2012-04-19 Thread Richard Henderson
At the same time, remove use of the global ENV from user-exec.c. Signed-off-by: Richard Henderson r...@twiddle.net --- Makefile.target |5 - dyngen-exec.h |5 + user-exec.c | 17 ++--- 3 files changed, 11 insertions(+), 16 deletions(-) diff --git

[Qemu-devel] [PATCH 12/14] tcg-sparc: Use defines for temporaries.

2012-04-19 Thread Richard Henderson
And change from %i4/%i5 to %g1/%o7 to remove a v8plus fixme. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/sparc/tcg-target.c | 114 --- 1 files changed, 58 insertions(+), 56 deletions(-) diff --git a/tcg/sparc/tcg-target.c

[Qemu-devel] [PATCH 11/14] tcg-sparc: Mask shift immediates to avoid illegal insns.

2012-04-19 Thread Richard Henderson
The xtensa-test image generates a sra_i32 with count 0x40. Whether this is accident of tcg constant propagation or originating directly from the instruction stream is immaterial. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/sparc/tcg-target.c | 18 -- 1 files

Re: [Qemu-devel] help setting up private git for bugfixes / own patches

2012-04-19 Thread Avi Kivity
On 04/19/2012 03:32 PM, Peter Lieven wrote: can you check if what i prepared under branch 'patches-for-1.0.2' in https://github.com/plieven/qemu.git makes sense? It looks okay to me. -- error compiling committee.c: too many arguments to function

[Qemu-devel] [PATCH 13/14] tcg-sparc: Add %g/%o registers to alloc_order

2012-04-19 Thread Richard Henderson
Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/sparc/tcg-target.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/tcg/sparc/tcg-target.c b/tcg/sparc/tcg-target.c index 9e822f3..72d65cb 100644 --- a/tcg/sparc/tcg-target.c +++

[Qemu-devel] [RFC PATCH 2/9][SeaBIOS] Implement acpi-dsdt functions for memory hotplug.

2012-04-19 Thread Vasilis Liaskovitis
Extend the DSDT to include methods for handling memory hot-add and hot-remove notifications and memory device status requests. These functions are called from the memory device SSDT methods. Eject has only been tested with level gpe event, but will be changed to edge gpe event soon, according to

[Qemu-devel] [RFC PATCH 0/9] ACPI memory hotplug

2012-04-19 Thread Vasilis Liaskovitis
This is a prototype for ACPI memory hotplug on x86_64 target. Based on some earlier work and comments from Gleb. Memslot devices are modeled with a new qemu command line -memslot id=name,start=start_addr,size=sz,node=pxm user is responsible for defining memslots with meaningful start/size

[Qemu-devel] [RFC PATCH 7/9] Implement memslot command-line option and memslot hmp command

2012-04-19 Thread Vasilis Liaskovitis
Implement -memslot qemu-kvm command line option to define hotplug-able memory slots. Syntax: -memslot id=name,start=addr,size=sz,node=nodeid e.g. -memslot id=hot1,start=4294967296,size=1073741824,node=0 will define a 1G memory slot starting at physical address 4G, belonging to numa node 0.

Re: [Qemu-devel] [PATCH] qemu-ga: generate missing stubs for fsfreeze

2012-04-19 Thread Alexander Graf
On 04/17/2012 05:28 PM, Andreas Färber wrote: Am 14.04.2012 04:07, schrieb Michael Roth: When linux-specific commands (including guest-fsfreeze-*) were consolidated under defined(__linux__), we forgot to account for the case where defined(__linux__) !defined(FIFREEZE). As a result stubs are no

[Qemu-devel] [PATCH 2/2 v5-test] Replace bdrv_* to bdrv_aio_* functions in DMA mode in fdc.c.

2012-04-19 Thread Li Zhi Hui
Replace bdrv_* to bdrv_aio_* functions in DMA mode in fdc.c. To avoid re-enter function fdctrl_transfer_handler, according paolo's suggestion, the patch is used to test. Signed-off-by: Li Zhi Hui zhihu...@linux.vnet.ibm.com --- change log: v3: correct some mistakes about memory v4: change the

Re: [Qemu-devel] [PATCH 0/5] -no-user-config option, move CPU models to /usr/share

2012-04-19 Thread Jiri Denemark
On Wed, Apr 18, 2012 at 17:02:35 -0300, Eduardo Habkost wrote: This is the first try of the new -no-user-config option. Patches 1 to 3 just move some code around, patch 4 just adds the new option without adding any new config file. Patch 5 finally creates a /usr/share/qemu /cpus-x86_64.conf

[Qemu-devel] [RFC PATCH 6/9] pc: pass paravirt info for hotplug memory slots to BIOS

2012-04-19 Thread Vasilis Liaskovitis
The numa_fw_cfg paravirt interface is extended to include SRAT information for all hotplug-able memslots. There are 3 words for each hotplug-able memory slot, denoting start address, size and node proximity. nb_numa_nodes is set to 1 by default (not 0), so that we always pass srat info to

[Qemu-devel] [PATCH] PPC: Fix up e500 cache size setting

2012-04-19 Thread Alexander Graf
When initializing the e500 code, we need to expose its cache line size for user and system mode, while the mmu details are only interesting for system emulation. Split the 2 switch statements apart, allowing us to #ifdef out the mmu parts for user mode emulation while keeping all cache

[Qemu-devel] [PATCH 1/2 v5-test] add function DMA_set_return and DMA_set_channel_async in dma.c

2012-04-19 Thread Li Zhi Hui
To avoid re-enter function fdctrl_transfer_handler, according paolo's suggestion, the patch is used to test. Signed-off-by: Li Zhi Hui zhihu...@linux.vnet.ibm.com --- hw/dma.c | 48 ++-- hw/isa.h |2 ++ 2 files changed, 48 insertions(+), 2

[Qemu-devel] [PATCH 10/14] tcg-sparc: Clean up cruft stemming from attempts to use global registers.

2012-04-19 Thread Richard Henderson
Don't use -ffixed-gN. Don't link statically. Don't save/restore AREG0 around calls. Don't allocate space on the stack for AREG0 save. Signed-off-by: Richard Henderson r...@twiddle.net --- configure | 12 -- tcg/sparc/tcg-target.c | 57

[Qemu-devel] [RFC PATCH 1/9][SeaBIOS] Add SSDT memory device support

2012-04-19 Thread Vasilis Liaskovitis
Define SSDT hotplug-able memory devices in _SB namespace. The dynamically generated SSDT includes per memory device hotplug methods. These methods just call methods defined in the DSDT. Also dynamically generate a MTFY method and a MEON array of the online/available memory devices. Add file

Re: [Qemu-devel] [RFC PATCH 6/9] pc: pass paravirt info for hotplug memory slots to BIOS

2012-04-19 Thread Avi Kivity
On 04/19/2012 05:08 PM, Vasilis Liaskovitis wrote: The numa_fw_cfg paravirt interface is extended to include SRAT information for all hotplug-able memslots. There are 3 words for each hotplug-able memory slot, denoting start address, size and node proximity. nb_numa_nodes is set to 1 by

Re: [Qemu-devel] [PATCH 1/2 v5-test] add function DMA_set_return and DMA_set_channel_async in dma.c

2012-04-19 Thread Paolo Bonzini
Il 19/04/2012 16:07, Li Zhi Hui ha scritto: To avoid re-enter function fdctrl_transfer_handler, according paolo's suggestion, the patch is used to test. Signed-off-by: Li Zhi Hui zhihu...@linux.vnet.ibm.com --- hw/dma.c | 48 ++-- hw/isa.h |

Re: [Qemu-devel] [RFC PATCH 7/9] Implement memslot command-line option and memslot hmp command

2012-04-19 Thread Avi Kivity
On 04/19/2012 05:08 PM, Vasilis Liaskovitis wrote: Implement -memslot qemu-kvm command line option to define hotplug-able memory slots. Syntax: -memslot id=name,start=addr,size=sz,node=nodeid e.g. -memslot id=hot1,start=4294967296,size=1073741824,node=0 will define a 1G memory slot

[Qemu-devel] [PATCH] linux-user: Fix undefined HOST_LONG_SIZE on PPC hosts

2012-04-19 Thread Alexander Graf
On my PPC host, HOST_LONG_SIZE is not defined even after running configure. Use the normal C way of determining the long size instead. Signed-off-by: Alexander Graf ag...@suse.de --- thunk.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/thunk.h b/thunk.h index

[Qemu-devel] [RFC PATCH 3/9][SeaBIOS] acpi: generate hotplug memory devices.

2012-04-19 Thread Vasilis Liaskovitis
The memory device generation is guided by qemu paravirt info. Seabios first uses the info to setup SRAT entries for the hotplug-able memory slots. Afterwards, build_memssdt uses the created SRAT entries to generate appropriate memory device objects. One memory device (and corresponding SRAT

[Qemu-devel] [PULL 00/16] Pending SCSI patches for 1.1

2012-04-19 Thread Paolo Bonzini
Anthony, the following changes since commit e6f5d0be730a41bacb10edba19d1369ec2949486: Merge branch 'w64' of git://qemu.weilnetz.de/qemu (2012-04-15 19:56:06 +) are available in the git repository at: git://github.com/bonzini/qemu.git scsi-next for you to fetch changes up to

[Qemu-devel] [RFC PATCH 8/9] pc: adjust e820 map on hot-add and hot-remove

2012-04-19 Thread Vasilis Liaskovitis
Hotplugged memory is not persistent in the e820 memory maps. After hotplugging a memslot and rebooting the VM, the hotplugged device is not present. A possible solution is to add an e820 for the new memslot in the acpi_piix4 hot-add handler. On a reset, Seabios (see next patch in series) will

[Qemu-devel] [PATCH 11/16] scsi: support FUA on reads

2012-04-19 Thread Paolo Bonzini
To force unit access on reads, flush the cache *before* doing the read. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/scsi-disk.c | 52 ++-- 1 file changed, 42 insertions(+), 10 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c

Re: [Qemu-devel] [PATCH 09/14] qdev: connect some links and move type to object

2012-04-19 Thread Andreas Färber
Am 19.04.2012 00:38, schrieb Anthony Liguori: On 04/18/2012 04:25 PM, Andreas Färber wrote: Am 18.04.2012 22:56, schrieb Anthony Liguori: This makes sysbus part of the root hierarchy and all busses children of their respective parent DeviceState. Signed-off-by: Anthony

  1   2   3   >