[Qemu-devel] [PATCH V4 01/13] qemu-img: remove unused parameter in collect_image_info()

2013-01-17 Thread Wenchao Xia
Parameter *fmt was not used, so remove it. Reviewed-by: Eric Blake Signed-off-by: Wenchao Xia --- qemu-img.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index 85d3740..9dab48f 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -1186,8 +1186,7

Re: [Qemu-devel] [RFC qom-cpu 03/15] target-i386: Update CPU to QOM realizefn

2013-01-17 Thread Andreas Färber
Am 17.01.2013 00:43, schrieb Eduardo Habkost: > On Wed, Jan 16, 2013 at 11:52:47PM +0100, Andreas Färber wrote: >> Am 16.01.2013 17:04, schrieb Eduardo Habkost: >>> On Wed, Jan 16, 2013 at 06:32:48AM +0100, Andreas Färber wrote: >>> [...] @@ -2247,6 +2247,9 @@ static void x86_cpu_common_class_

[Qemu-devel] [PATCH V4 03/13] block: add bdrv_can_read_snapshot() function

2013-01-17 Thread Wenchao Xia
Compared to bdrv_can_snapshot(), this function return whether bs* is ready to read snapshot info from instead of write. If yes, caller can then query snapshot information, but taking snapshot is not always possible for that *bs may be read only. Signed-off-by: Wenchao Xia --- block.c

Re: [Qemu-devel] [PATCH 0/4] block: Fix error report for wrong file format

2013-01-17 Thread Stefan Hajnoczi
On Wed, Jan 16, 2013 at 07:53:35PM +0100, Stefan Weil wrote: > Am 15.12.2012 15:09, schrieb Stefan Weil: > >These patches improve the error report if the file format was > >specified explicitly (example: -drive file=myfile,format=qcow2) > >and the given format does not match the real format. > > >

Re: [Qemu-devel] [Qemu-stable] [PATCH 1/2] win32-aio: Fix vectored reads

2013-01-17 Thread Michael Tokarev
17.01.2013 00:19, Kevin Wolf пишет: Copying data in the right direction really helps a lot! Cc: qemu-sta...@nongnu.org Signed-off-by: Kevin Wolf --- block/win32-aio.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/block/win32-aio.c b/block/win32-aio.c index 46a5db7

Re: [Qemu-devel] [RFC] Add serial number to usbdevice when passthrough to VM

2013-01-17 Thread Gerd Hoffmann
Hi, > But as the backinfo's request, should we extented the usbdevice parameter > like: > > --usbdevice host:[:[:]? -usbdevice is legacy syntax and isn't going to be extended. Adding an "serial" property to usb-host is an option though. Patches are welcome. cheers, Gerd

Re: [Qemu-devel] [QEMU PATCH v2] virtio-net: introduce a new macaddr control

2013-01-17 Thread Amos Kong
On Thu, Jan 17, 2013 at 01:45:11PM +0800, Amos Kong wrote: > On Thu, Jan 17, 2013 at 11:49:20AM +1030, Rusty Russell wrote: > > ak...@redhat.com writes: > > > @@ -349,6 +351,14 @@ static int virtio_net_handle_mac(VirtIONet *n, > > > uint8_t cmd, > > > { > > > struct virtio_net_ctrl_mac mac_d

Re: [Qemu-devel] [QEMU PATCH v2] virtio-net: introduce a new macaddr control

2013-01-17 Thread Stefan Hajnoczi
On Thu, Jan 17, 2013 at 01:45:11PM +0800, Amos Kong wrote: > On Thu, Jan 17, 2013 at 11:49:20AM +1030, Rusty Russell wrote: > > ak...@redhat.com writes: > > > @@ -349,6 +351,14 @@ static int virtio_net_handle_mac(VirtIONet *n, > > > uint8_t cmd, > > > { > > > struct virtio_net_ctrl_mac mac_d

[Qemu-devel] [PATCH V4 06/13] qemu-img: switch image retrieving function

2013-01-17 Thread Wenchao Xia
Now qemu-img call block layer function to get image info and check if error happens. Signed-off-by: Wenchao Xia Reviewed-by: Eric Blake --- qemu-img.c | 90 1 files changed, 6 insertions(+), 84 deletions(-) diff --git a/qemu-img.

Re: [Qemu-devel] [Qemu-stable] [PATCH 1/2] win32-aio: Fix vectored reads

2013-01-17 Thread Kevin Wolf
Am 17.01.2013 09:33, schrieb Michael Tokarev: > 17.01.2013 00:19, Kevin Wolf пишет: >> Copying data in the right direction really helps a lot! >> >> Cc: qemu-sta...@nongnu.org >> Signed-off-by: Kevin Wolf >> --- >> block/win32-aio.c |2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-)

[Qemu-devel] buildbot failure in qemu on s390-next_x86_64_debian_6_0

2013-01-17 Thread qemu
The Buildbot has detected a new failure on builder s390-next_x86_64_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/s390-next_x86_64_debian_6_0/builds/516 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuz

[Qemu-devel] [PATCH] win32-aio: use iov utility functions instead of open-coding them

2013-01-17 Thread Michael Tokarev
We have iov_from_buf() and iov_to_buf(), use them instead of open-coding these in block/win32-aio.c Signed-Off-By: Michael Tokarev --- block/win32-aio.c | 18 +++--- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/block/win32-aio.c b/block/win32-aio.c index 0383370..

Re: [Qemu-devel] [PATCH] win32-aio: use iov utility functions instead of open-coding them

2013-01-17 Thread Kevin Wolf
Am 17.01.2013 09:48, schrieb Michael Tokarev: > We have iov_from_buf() and iov_to_buf(), use them instead of > open-coding these in block/win32-aio.c > > Signed-Off-By: Michael Tokarev > --- > block/win32-aio.c | 18 +++--- > 1 file changed, 3 insertions(+), 15 deletions(-) > > di

Re: [Qemu-devel] [PATCH] win32-aio: use iov utility functions instead of open-coding them

2013-01-17 Thread Michael Tokarev
17.01.2013 12:57, Kevin Wolf wrote: I said on top of my patch for a reason: Now this looks like an innocent Kevin, that wasn't intentional. I'm sorry. Somehow I thought your bugfix is already applied to master, and these reverse memcpy args are difficult to spot (gah, that's why the bug is h

[Qemu-devel] buildbot failure in qemu on s390-next_i386_debian_6_0

2013-01-17 Thread qemu
The Buildbot has detected a new failure on builder s390-next_i386_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/s390-next_i386_debian_6_0/builds/517 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki

Re: [Qemu-devel] [PATCH v2] aio-posix: Fix return value of aio_poll()

2013-01-17 Thread Stefan Hajnoczi
On Wed, Jan 16, 2013 at 07:25:51PM +0100, Kevin Wolf wrote: > aio_poll() must return true if any work is still pending, even if it > didn't make progress, so that bdrv_drain_all() doesn't stop waiting too > early. The possibility of stopping early occasionally lead to a failed > assertion in bdrv_d

Re: [Qemu-devel] [PATCH] v6 revamp acpitable parsing and allow to specify complete (headerful) table

2013-01-17 Thread TeLeMan
On Thu, May 12, 2011 at 10:44 PM, Michael Tokarev wrote: > This patch almost rewrites acpi_table_add() function > (but still leaves it using old get_param_value() interface). > The result is that it's now possible to specify whole table > (together with a header) in an external file, instead of ju

Re: [Qemu-devel] [PATCH 0/2] win32-aio fixes

2013-01-17 Thread Stefan Hajnoczi
On Wed, Jan 16, 2013 at 09:19:58PM +0100, Kevin Wolf wrote: > Paolo, especially the first one is worrying with respect to the test status of > this code. We should probably give it some additional testing. > > Kevin Wolf (2): > win32-aio: Fix vectored reads > win32-aio: Fix memory leak > > b

[Qemu-devel] [PATCH v4 0/3] AHCI migration

2013-01-17 Thread Kevin Wolf
Let's get Jason's patches merged while they still apply. I addressed the review comments (mostly my own) that came up during the v3 review, otherwise this is unchanged. Please note that in my tests it didn't work entirely reliably and I saw guest lockups and kernel crashes in like one of ten cases

[Qemu-devel] [PATCH v4 1/3] ahci: Remove unused AHCIDevice fields

2013-01-17 Thread Kevin Wolf
From: Jason Baron 'dma_status' and 'dma_cb' are written to, but never read. Remove these fields in preparation for AHCI migration bits. Signed-off-by: Jason Baron Reviewed-by: Juan Quintela Signed-off-by: Kevin Wolf --- hw/ide/ahci.c |8 ++-- hw/ide/ahci.h |2 -- 2 files changed,

[Qemu-devel] [PATCH v4 2/3] ahci: Change data types in preparation for migration

2013-01-17 Thread Kevin Wolf
The size of an int depends on the host, so in order to be able to migrate these fields, make them either int32_t or bool, depending on the use. Signed-off-by: Kevin Wolf --- hw/ide/ahci.c |8 hw/ide/ahci.h |8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git

[Qemu-devel] [PATCH v4 3/3] ahci: Add migration support

2013-01-17 Thread Kevin Wolf
From: Jason Baron Jason tested these patches by migrating Windows 7 and Fedora 17 guests (while under I/O) on both piix with ahci attached and on q35 (which has a built-in AHCI controller). Signed-off-by: Andreas Färber Signed-off-by: Jason Baron Signed-off-by: Kevin Wolf --- Changes from v3:

Re: [Qemu-devel] [QEMU PATCH v2] virtio-net: introduce a new macaddr control

2013-01-17 Thread Michael S. Tsirkin
On Thu, Jan 17, 2013 at 09:39:54AM +0100, Stefan Hajnoczi wrote: > On Thu, Jan 17, 2013 at 01:45:11PM +0800, Amos Kong wrote: > > On Thu, Jan 17, 2013 at 11:49:20AM +1030, Rusty Russell wrote: > > > ak...@redhat.com writes: > > > > @@ -349,6 +351,14 @@ static int virtio_net_handle_mac(VirtIONet *n,

Re: [Qemu-devel] [PATCH] fix unbounded qemu NetQueue

2013-01-17 Thread Stefan Hajnoczi
On Thu, Jan 17, 2013 at 07:07:11AM +0100, Luigi Rizzo wrote: > The comment at the beginning of net/queue.c says that packets that > cannot be sent by qemu_net_queue_send() should not be enqueued > unless a callback is set. > > This patch implements this behaviour, that prevents a queue to grow > u

[Qemu-devel] [PATCH] PPC: e500: Change in-memory order of load blobs

2013-01-17 Thread Alexander Graf
Today, we load into memory in that order. However, Linux has a bug where it can only handle the dtb if it's within the first 64MB of where starts. So instead, let's change the order to making Linux happy. Signed-off-by: Alexander Graf --- hw/ppc/e500.c |7 ++- 1 files cha

Re: [Qemu-devel] [PATCH v9 4/5] Adding packet abstraction for VMWARE network devices

2013-01-17 Thread Stefan Hajnoczi
On Wed, Jan 16, 2013 at 04:33:48PM +0100, Paolo Bonzini wrote: > Il 16/01/2013 15:48, Stefan Hajnoczi ha scritto: > >> > hw/vmxnet_rx_pkt.c | 187 ++ > >> > hw/vmxnet_rx_pkt.h | 173 > >> > hw/vmxnet_tx_pkt.c | 567 > >> > ++

Re: [Qemu-devel] [PATCH 4/4] Makefile: fix make clean on libcacard

2013-01-17 Thread Stefan Hajnoczi
On Tue, Jan 15, 2013 at 06:36:50PM +0200, Michael S. Tsirkin wrote: > libcacard lacks a clean target. Need to fix it, > meanwhile mark this target phony so it does not > stop parallel make clean. > > Signed-off-by: Michael S. Tsirkin > --- > libcacard/Makefile | 2 +- > 1 file changed, 1 inserti

Re: [Qemu-devel] [PATCH 4/4] Makefile: fix make clean on libcacard

2013-01-17 Thread Michael S. Tsirkin
On Thu, Jan 17, 2013 at 11:33:03AM +0100, Stefan Hajnoczi wrote: > On Tue, Jan 15, 2013 at 06:36:50PM +0200, Michael S. Tsirkin wrote: > > libcacard lacks a clean target. Need to fix it, > > meanwhile mark this target phony so it does not > > stop parallel make clean. > > > > Signed-off-by: Michae

Re: [Qemu-devel] [RFC V1 12/14] qcow2: Add qcow2_dedup_update_metrics to compute dedup RAM usage.

2013-01-17 Thread Benoît Canet
Le Wednesday 16 Jan 2013 à 13:10:12 (-0700), Eric Blake a écrit : > On 01/16/2013 09:25 AM, Benoît Canet wrote: > > --- > > block/qcow2-dedup.c | 13 + > > block/qcow2.h |1 + > > 2 files changed, 14 insertions(+) > > > > diff --git a/block/qcow2-dedup.c b/block/qcow2-dedu

Re: [Qemu-devel] [RFC V1 11/12] qmp: Add block-pause-dedup.

2013-01-17 Thread Benoît Canet
> > +# > > +# @device: the name of the device to pause the deduplication on > > +# > > +# Returns: nothing on success > > +# If @device is not a valid block device, DeviceNotFound > > +# If @device is not deduplicated, DeviceNotDeduplicated > > I don't think you need this secon

Re: [Qemu-devel] [PATCH v2 03/11] hw/9pfs: Fix unchecked strdup() by converting to g_strdup()

2013-01-17 Thread Stefan Hajnoczi
On Wed, Jan 16, 2013 at 06:32:12PM +0100, Markus Armbruster wrote: > diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c > index 6eab7f7..74155fb 100644 > --- a/hw/9pfs/virtio-9p-device.c > +++ b/hw/9pfs/virtio-9p-device.c > @@ -94,7 +94,7 @@ VirtIODevice *virtio_9p_init(DeviceStat

[Qemu-devel] [Trivial PATCH] acpitable: open the data file in binary mode

2013-01-17 Thread Michael Tokarev
-acpitable {file|data}=file reads the content of file, but it is in binary form, so the file should be opened usin O_BINARY flag. On *nix it is a no-op, but on windows and other weird platform it is really needed. Signed-off-by: Michael Tokarev --- hw/acpi.c |2 +- 1 file changed, 1 insertio

Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 06/11] virtfs-proxy-helper: Fix unchecked strdup() by conv. to g_strdup()

2013-01-17 Thread Stefan Hajnoczi
On Wed, Jan 16, 2013 at 06:32:15PM +0100, Markus Armbruster wrote: > Signed-off-by: Markus Armbruster > Reviewed-by: Eric Blake > --- > fsdev/virtfs-proxy-helper.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helpe

Re: [Qemu-devel] Qemu s390x emulation

2013-01-17 Thread Jens Freimann
On Tue, Jan 15, 2013 at 10:04:57AM -0600, Rob Landley wrote: > On 01/15/2013 05:45:44 AM, Alexander Graf wrote: > >On 15.01.2013, at 12:39, Suzuki K. Poulose wrote: > >> On 01/15/2013 04:39 PM, Alexander Graf wrote: > >>> On 15.01.2013, at 12:05, Suzuki K. Poulose wrote: > > > >Does this one work

Re: [Qemu-devel] [PATCH 3/4] rules/mak: make clean should blow away timestamp files

2013-01-17 Thread Stefan Hajnoczi
On Tue, Jan 15, 2013 at 06:57:34PM +0200, Michael S. Tsirkin wrote: > Using a global pattern makes it easier to clean out > old generated files. > > Signed-off-by: Michael S. Tsirkin > --- > rules.mak | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/rules.mak b/rules.mak > index d1

Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 08/11] qemu-log: Plug trivial memory leak in cpu_set_log_filename()

2013-01-17 Thread Stefan Hajnoczi
On Wed, Jan 16, 2013 at 06:32:17PM +0100, Markus Armbruster wrote: > diff --git a/qemu-log.c b/qemu-log.c > index 64a1b88..30c8b01 100644 > --- a/qemu-log.c > +++ b/qemu-log.c > @@ -21,10 +21,12 @@ > #include "qemu/log.h" > > #ifdef WIN32 > -static const char *logfilename = "qemu.log"; > +#defi

Re: [Qemu-devel] [PATCH 0/2] win32-aio fixes

2013-01-17 Thread Kevin Wolf
Am 17.01.2013 11:53, schrieb Paolo Bonzini: > Il 16/01/2013 21:19, Kevin Wolf ha scritto: >> Paolo, especially the first one is worrying with respect to the test status >> of >> this code. We should probably give it some additional testing. >> >> Kevin Wolf (2): >> win32-aio: Fix vectored reads

Re: [Qemu-devel] [PATCH 0/2] win32-aio fixes

2013-01-17 Thread Paolo Bonzini
Il 17/01/2013 12:35, Kevin Wolf ha scritto: > Am 17.01.2013 11:53, schrieb Paolo Bonzini: >> Il 16/01/2013 21:19, Kevin Wolf ha scritto: >>> Paolo, especially the first one is worrying with respect to the test status >>> of >>> this code. We should probably give it some additional testing. >>> >>>

Re: [Qemu-devel] [PATCH] block: do_commit() does not pass along error messages for all errors

2013-01-17 Thread Luiz Capitulino
On Thu, 17 Jan 2013 08:49:38 +0100 Markus Armbruster wrote: > [Cc: Luiz for error stuff] > > Jeff Cody writes: > > > The non-live bdrv_commit() function may return one of the following > > errors: -ENOTSUP, -EBUSY, -EACCES, -EIO. The only error that is > > checked in the HMP handler is -EBUSY

Re: [Qemu-devel] [PATCH 1/4] block: Add special error code for wrong format

2013-01-17 Thread Kevin Wolf
Am 15.12.2012 15:09, schrieb Stefan Weil: > The block drivers normally return -errno for typical errors. > There is no appropriate error code for "wrong format", so > use a special error code which does not conflict with system > error codes. > > Signed-off-by: Stefan Weil > --- > block.h |7

[Qemu-devel] [PATCH v2] win32-aio: use iov utility functions instead of open-coding them

2013-01-17 Thread Michael Tokarev
We have iov_from_buf() and iov_to_buf(), use them instead of open-coding these in block/win32-aio.c --- block/win32-aio.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/block/win32-aio.c b/block/win32-aio.c index b9236ea..b10a0c0 100644 --- a/block/win32-ai

[Qemu-devel] [PATCH] scsi: Drop useless null test in scsi_unit_attention()

2013-01-17 Thread Markus Armbruster
req was created by scsi_req_alloc(), which initializes req->dev to a value it dereferences. req->dev isn't changed anywhere else. Therefore, req->dev can't be null. Drop the useless null test; it spooks Coverity. Signed-off-by: Markus Armbruster --- hw/scsi-bus.c | 2 +- 1 file changed, 1 inse

Re: [Qemu-devel] [PATCH 4/4] block/vdi: Improved return values from vdi_open and other small fixes

2013-01-17 Thread Kevin Wolf
Am 15.12.2012 15:09, schrieb Stefan Weil: > vdi_open returned -1 in case of any error, but it should return an > error code (negative value of errno or BDRV_WRONG_FORMAT). > > vdi_open did not check for a bad signature. This check was only in vdi_probe. > > The signature is a 32 bit value and nee

Re: [Qemu-devel] [QEMU PATCH v2] virtio-net: introduce a new macaddr control

2013-01-17 Thread Michael S. Tsirkin
On Thu, Jan 17, 2013 at 11:49:20AM +1030, Rusty Russell wrote: > ak...@redhat.com writes: > > @@ -349,6 +351,14 @@ static int virtio_net_handle_mac(VirtIONet *n, uint8_t > > cmd, > > { > > struct virtio_net_ctrl_mac mac_data; > > > > +if (cmd == VIRTIO_NET_CTRL_MAC_ADDR_SET && elem->ou

Re: [Qemu-devel] [PATCH 00/14] migration queue

2013-01-17 Thread Paolo Bonzini
Il 16/01/2013 19:14, Anthony Liguori ha scritto: > Juan Quintela writes: > >> Hi >> >> This is the intersect of the paolo & me patches for migration thread, >> please consided for inclusion. >> >> The following changes since commit cf7c3f0cb5a7129f57fa9e69d410d6a05031988c: >> >> virtio-9p: fix

Re: [Qemu-devel] [PATCH 0/4] block: Fix error report for wrong file format

2013-01-17 Thread Kevin Wolf
Am 17.01.2013 09:33, schrieb Stefan Hajnoczi: > On Wed, Jan 16, 2013 at 07:53:35PM +0100, Stefan Weil wrote: >> Am 15.12.2012 15:09, schrieb Stefan Weil: >>> These patches improve the error report if the file format was >>> specified explicitly (example: -drive file=myfile,format=qcow2) >>> and the

Re: [Qemu-devel] [RFC V1 10/14] qapi: Add support for deduplication infos in qapi-schema.json.

2013-01-17 Thread Benoît Canet
> +# @running: True if deduplication is running Internally QCOW2 deduplication state switch between STOPPED, STARTING, RUNNING and STOPPING. Should the running field be a status field reflecting all theses states in a string for example ? Or is the boolean ok ? Regards Benoît

Re: [Qemu-devel] [PATCH 0/2] win32-aio fixes

2013-01-17 Thread Paolo Bonzini
Il 16/01/2013 21:19, Kevin Wolf ha scritto: > Paolo, especially the first one is worrying with respect to the test status of > this code. We should probably give it some additional testing. > > Kevin Wolf (2): > win32-aio: Fix vectored reads > win32-aio: Fix memory leak > > block/win32-aio.c

Re: [Qemu-devel] [QEMU PATCH v3] virtio-net: introduce a new macaddr control

2013-01-17 Thread Stefan Hajnoczi
On Thu, Jan 17, 2013 at 06:30:46PM +0800, ak...@redhat.com wrote: > From: Amos Kong > > In virtio-net guest driver, currently we write MAC address to > pci config space byte by byte, this means that we have an > intermediate step where mac is wrong. This patch introduced > a new control command t

Re: [Qemu-devel] [PATCH 00/14] migration queue

2013-01-17 Thread Juan Quintela
Paolo Bonzini wrote: > Il 16/01/2013 19:14, Anthony Liguori ha scritto: >> Juan Quintela writes: >> >>> Hi >>> >>> This is the intersect of the paolo & me patches for migration thread, >>> please consided for inclusion. >>> >>> The following changes since commit cf7c3f0cb5a7129f57fa9e69d410d6a05

[Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

2013-01-17 Thread Brad Smith
The other question I have is if you look at the commit I mentioned as causing the crash (at least on OpenBSD) and revert that change from either 1.3.0 or HEAD branch and build QEMU on OS X does the crashing you're experiencing go away? -- You received this bug notification because you are a membe

[Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

2013-01-17 Thread Brad Smith
Before the patch in question was commited running QEMU 1.3.0 hosted on OpenBSD I was able to cause QEMU to crash reproducibly by just booting OpenBSD within QEMU and upon the kernel accessing the virtual disk to read the disklabel or during an install writing the disklabel. After the patch was appl

Re: [Qemu-devel] [RFC qom-cpu 03/15] target-i386: Update CPU to QOM realizefn

2013-01-17 Thread Eduardo Habkost
On Thu, Jan 17, 2013 at 09:03:59AM +0100, Andreas Färber wrote: [...] > >> I mentioned in the cover letter that this needs to be changed once a > >> CPUClass-level realizefn is introduced. I could introduce a no-op > >> realizefn there and do the regular store+call. > > > > That was the semantics

Re: [Qemu-devel] [PATCH v2 0/2] fix two revision related errors

2013-01-17 Thread Gerd Hoffmann
On 01/16/13 18:59, Alon Levy wrote: > Regarding orientation setting in windows 7 64 guest: > Desktop, right click->Screen resolution > - You can choose Orientation: Landscape, Portrait, Landscape (flipped), > Portrait (flipped) > - You can choose Resolution > - You can click "Advanced Settings"

Re: [Qemu-devel] [PATCH] Makefile: drop recursive libcacard clean

2013-01-17 Thread Stefan Hajnoczi
On Tue, Jan 15, 2013 at 08:47:26AM +0100, Stefan Hajnoczi wrote: > Commit eb8eb53e5846a957cf333f2e1ec8cb6e0c04 ("libcacard: rewrite > Makefile in non-recursive style") refactored libcacard/Makefile so it > can be included by the top-level Makefile. > > The top-level clean target still loops over s

Re: [Qemu-devel] [PATCH v2] win32-aio: use iov utility functions instead of open-coding them

2013-01-17 Thread Stefan Hajnoczi
On Thu, Jan 17, 2013 at 02:44:41PM +0400, Michael Tokarev wrote: > We have iov_from_buf() and iov_to_buf(), use them instead of > open-coding these in block/win32-aio.c Please use qemu_iovec_from_buf() and qemu_iovec_to_buf() since we're operating on a QEMUIOVector. Stefan

Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 06/11] virtfs-proxy-helper: Fix unchecked strdup() by conv. to g_strdup()

2013-01-17 Thread Markus Armbruster
Stefan Hajnoczi writes: > On Wed, Jan 16, 2013 at 06:32:15PM +0100, Markus Armbruster wrote: >> Signed-off-by: Markus Armbruster >> Reviewed-by: Eric Blake >> --- >> fsdev/virtfs-proxy-helper.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/fsdev/virtfs-proxy-

Re: [Qemu-devel] [PATCH 0/8] Fixes and cleanups around fw_cfg

2013-01-17 Thread Gleb Natapov
On Wed, Jan 16, 2013 at 02:50:21PM +0100, Markus Armbruster wrote: > Markus Armbruster (8): > fw_cfg: Replace debug prints by tracepoints > fw_cfg: Dumb down fw_cfg_add_*() not to return success / failure > fw_cfg: New fw_cfg_add_string() > pc: Fix unchecked strdup() by switching to fw_cfg_

Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 08/11] qemu-log: Plug trivial memory leak in cpu_set_log_filename()

2013-01-17 Thread Markus Armbruster
Stefan Hajnoczi writes: > On Wed, Jan 16, 2013 at 06:32:17PM +0100, Markus Armbruster wrote: >> diff --git a/qemu-log.c b/qemu-log.c >> index 64a1b88..30c8b01 100644 >> --- a/qemu-log.c >> +++ b/qemu-log.c >> @@ -21,10 +21,12 @@ >> #include "qemu/log.h" >> >> #ifdef WIN32 >> -static const cha

Re: [Qemu-devel] [PATCH v2 03/11] hw/9pfs: Fix unchecked strdup() by converting to g_strdup()

2013-01-17 Thread Markus Armbruster
Stefan Hajnoczi writes: > On Wed, Jan 16, 2013 at 06:32:12PM +0100, Markus Armbruster wrote: >> diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c >> index 6eab7f7..74155fb 100644 >> --- a/hw/9pfs/virtio-9p-device.c >> +++ b/hw/9pfs/virtio-9p-device.c >> @@ -94,7 +94,7 @@ VirtIO

Re: [Qemu-devel] [PATCH v2 0/2] fix two revision related errors

2013-01-17 Thread Alon Levy
- Original Message - > On 01/16/13 18:59, Alon Levy wrote: > > Regarding orientation setting in windows 7 64 guest: > > Desktop, right click->Screen resolution > > - You can choose Orientation: Landscape, Portrait, Landscape > > (flipped), Portrait (flipped) > > - You can choose Resolu

[Qemu-devel] [PATCH 07/13] qemu-file: Only set last_error if it is not already set

2013-01-17 Thread Juan Quintela
Signed-off-by: Juan Quintela Reviewed-by: Reviewed-by: Eric Blake Reviewed-by: Paolo Bonzini --- savevm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/savevm.c b/savevm.c index 4e970ca..611e997 100644 --- a/savevm.c +++ b/savevm.c @@ -419,7 +419,9 @@ int qemu_file_get

Re: [Qemu-devel] [PATCH v2 0/2] fix two revision related errors

2013-01-17 Thread Gerd Hoffmann
Hi, >> I think it would also be good to fix the driver to ignore everything >> with or > ... what was the end of that sentence? .. orientation != 0, then registers every mode with the orientations it wants, so orientation becomes unused with newer drivers (and we keep orientation=0,1 for old d

Re: [Qemu-devel] [PATCH] target-arm: Fix TCG temp leaks for WI and UNDEF VFP sysreg writes

2013-01-17 Thread Peter Maydell
On 11 December 2012 16:11, Peter Maydell wrote: > Fix a leak of a TCG temporary in code paths for VFP system register > writes for cases which UNDEF or are write-ignored. > > Signed-off-by: Peter Maydell Rats, I forgot to put this into the last target-arm pullreq... -- PMM

Re: [Qemu-devel] [PATCH v2] win32-aio: use iov utility functions instead of open-coding them

2013-01-17 Thread Michael Tokarev
17.01.2013 17:06, Stefan Hajnoczi wrote: On Thu, Jan 17, 2013 at 02:44:41PM +0400, Michael Tokarev wrote: We have iov_from_buf() and iov_to_buf(), use them instead of open-coding these in block/win32-aio.c Please use qemu_iovec_from_buf() and qemu_iovec_to_buf() since we're operating on a QEMU

[Qemu-devel] [QEMU PATCH v3] virtio-net: introduce a new macaddr control

2013-01-17 Thread akong
From: Amos Kong In virtio-net guest driver, currently we write MAC address to pci config space byte by byte, this means that we have an intermediate step where mac is wrong. This patch introduced a new control command to set MAC address, it's atomic. VIRTIO_NET_F_CTRL_MAC_ADDR is a new feature b

[Qemu-devel] [PATCH 05/13] migration: remove double call to migrate_fd_close

2013-01-17 Thread Juan Quintela
From: Paolo Bonzini The call in buffered_close is enough, because buffered_close is called already by migrate_fd_cleanup. Signed-off-by: Paolo Bonzini Signed-off-by: Juan Quintela Reviewed-by: Reviewed-by: Eric Blake --- migration.c | 1 - 1 file changed, 1 deletion(-) diff --git a/migrati

[Qemu-devel] [PATCH 08/13] migration: move beginning stage to the migration thread

2013-01-17 Thread Juan Quintela
Signed-off-by: Juan Quintela Reviewed-by: Reviewed-by: Eric Blake Reviewed-by: Paolo Bonzini --- include/migration/migration.h | 1 - migration.c | 28 +++- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/include/migration/migration.h

[Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

2013-01-17 Thread Aaron Jackson
On line 216 of qemu-thread-posix.c I have commented out the ++sem->count; which seems to be the only change made in that commit. Unfortunately it still crashes with that error. I have compiled with --enable-debug but not sure how to get a backtrace or even a log of what goes wrong. -- You receiv

[Qemu-devel] [PATCH 02/13] Protect migration_bitmap_sync() with the ramlist lock

2013-01-17 Thread Juan Quintela
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Juan Quintela Reviewed-by: Reviewed-by: Eric Blake --- arch_init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch_init.c b/arch_init.c index 8c833b6..dada6de 100644 --- a/arch_init.c +++ b/arch_init.c

[Qemu-devel] [PATCH 03/13] use XFER_LIMIT_RATIO consistently

2013-01-17 Thread Juan Quintela
From: Paolo Bonzini commit 5b4e1eb769eee892b44d3f6b2369b05196442f59 missed this use. Signed-off-by: Paolo Bonzini Signed-off-by: Juan Quintela Reviewed-by: Reviewed-by: Eric Blake --- migration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration.c b/migration.c

[Qemu-devel] [PATCH 12/13] migration: Only go to the iterate stage if there is anything to send

2013-01-17 Thread Juan Quintela
Signed-off-by: Orit Wasserman Signed-off-by: Juan Quintela Reviewed-by: Reviewed-by: Eric Blake Reviewed-by: Paolo Bonzini --- migration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration.c b/migration.c index 6d3aeed..fe1a103 100644 --- a/migration.c +++ b/migrat

[Qemu-devel] [PATCH 13/13] migration: remove argument to qemu_savevm_state_cancel

2013-01-17 Thread Juan Quintela
Signed-off-by: Juan Quintela Reviewed-by: Reviewed-by: Eric Blake Reviewed-by: Paolo Bonzini --- include/sysemu/sysemu.h | 2 +- migration.c | 2 +- savevm.c| 8 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/sysemu/sysemu.h b/includ

[Qemu-devel] [PATCH 10/13] migration: move exit condition to migration thread

2013-01-17 Thread Juan Quintela
Signed-off-by: Juan Quintela Reviewed-by: Reviewed-by: Eric Blake Reviewed-by: Paolo Bonzini --- migration.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/migration.c b/migration.c index 17eb27d..651edd5 100644 --- a/migration.c +++ b/migration.c @@ -669,12

[Qemu-devel] [PATCH 04/13] migration: make function static

2013-01-17 Thread Juan Quintela
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Juan Quintela Reviewed-by: Reviewed-by: Eric Blake --- include/migration/migration.h | 2 -- migration.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/migration/migration.h b/

[Qemu-devel] [PATCH v5 00/12] s390: channel I/O support in qemu.

2013-01-17 Thread Cornelia Huck
Hi, here's the latest incarnation of my channel I/O and virtio-ccw patchset for qemu, containing various changes over the last one. (Note that "s390: Add a hypercall registration interface." has already been posted: http://marc.info/?l=qemu-devel&m=135834160607372&w=2) Changes include: - Add var

[Qemu-devel] [PATCH 01/13] Unlock ramlist lock also in error case

2013-01-17 Thread Juan Quintela
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Juan Quintela Reviewed-by: Reviewed-by: Eric Blake --- arch_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch_init.c b/arch_init.c index 86f8544..8c833b6 100644 --- a/arch_init.c +++ b/arch_init.c

[Qemu-devel] [PATCH 12/12] s390: Add s390-ccw-virtio machine.

2013-01-17 Thread Cornelia Huck
Add a new machine type, s390-ccw-virtio, making use of the virtio-ccw transport to present virtio devices as channel devices and make it the default on s390. Signed-off-by: Cornelia Huck --- hw/s390-virtio.c | 1 - hw/s390-virtio.h | 1 + hw/s390x/Makefile.objs | 1

[Qemu-devel] [PATCH 04/12] Update linux headers.

2013-01-17 Thread Cornelia Huck
Base is kvm-next as of 2013/01/16. Signed-off-by: Cornelia Huck --- linux-headers/asm-generic/kvm_para.h | 4 linux-headers/asm-powerpc/kvm_para.h | 2 +- linux-headers/linux/kvm.h| 21 + 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644

[Qemu-devel] [PATCH 05/12] s390: Channel I/O basic defintions.

2013-01-17 Thread Cornelia Huck
Basic channel I/O structures and helper function. Signed-off-by: Cornelia Huck --- target-s390x/Makefile.objs | 2 +- target-s390x/cpu.h | 5 ++ target-s390x/ioinst.c | 36 target-s390x/ioinst.h | 207 + 4 files changed,

[Qemu-devel] [PATCH 07/12] s390: Add channel I/O instructions.

2013-01-17 Thread Cornelia Huck
Provide handlers for (most) channel I/O instructions. Signed-off-by: Cornelia Huck --- target-s390x/cpu.h| 101 target-s390x/ioinst.c | 673 ++ target-s390x/ioinst.h | 16 ++ trace-events | 6 + 4 files changed, 796 inserti

[Qemu-devel] [PATCH 01/12] s390: Add a hypercall registration interface.

2013-01-17 Thread Cornelia Huck
Allow virtio machines to register for different diag500 function codes and convert s390-virtio to use it. Signed-off-by: Cornelia Huck --- hw/s390-virtio.c | 90 +++- hw/s390-virtio.h | 22 +++ hw/s390x/Makefile.objs |

[Qemu-devel] [PATCH 11/12] s390-virtio: Factor out some initialization code.

2013-01-17 Thread Cornelia Huck
Some of the machine initialization for s390-virtio will be reused by virtio-ccw. Signed-off-by: Cornelia Huck --- hw/s390-virtio.c | 155 ++- hw/s390-virtio.h | 5 ++ 2 files changed, 91 insertions(+), 69 deletions(-) diff --git a/hw/s390-vi

[Qemu-devel] [PATCH 10/12] s390: Add new channel I/O based virtio transport.

2013-01-17 Thread Cornelia Huck
Add a new virtio transport that uses channel commands to perform virtio operations. Signed-off-by: Cornelia Huck --- hw/s390x/Makefile.objs | 1 + hw/s390x/virtio-ccw.c | 906 + hw/s390x/virtio-ccw.h | 79 + trace-events | 4 +

[Qemu-devel] [PATCH 08/12] s390: Virtual channel subsystem support.

2013-01-17 Thread Cornelia Huck
Provide a mechanism for qemu to provide fully virtual subchannels to the guest. Signed-off-by: Cornelia Huck --- hw/s390x/Makefile.objs |1 + hw/s390x/css.c | 1131 hw/s390x/css.h | 92 target-s390x/cpu.h | 65 +++

Re: [Qemu-devel] [PATCH 00/12] Multiqueue virtio-net

2013-01-17 Thread Michael S. Tsirkin
On Wed, Jan 16, 2013 at 10:14:33AM -0600, Anthony Liguori wrote: > "Michael S. Tsirkin" writes: > > > On Wed, Jan 16, 2013 at 09:09:49AM -0600, Anthony Liguori wrote: > >> Jason Wang writes: > >> > >> > On 01/15/2013 03:44 AM, Anthony Liguori wrote: > >> >> Jason Wang writes: > >> >> > >> >>>

[Qemu-devel] [PATCH 11/13] migration: unfold rest of migrate_fd_put_ready() into thread

2013-01-17 Thread Juan Quintela
This will allow us finer control in next patches. Signed-off-by: Juan Quintela Reviewed-by: Reviewed-by: Eric Blake Reviewed-by: Paolo Bonzini --- migration.c | 95 ++--- 1 file changed, 41 insertions(+), 54 deletions(-) diff --git a/mi

[Qemu-devel] [PATCH 09/13] migration: Add buffered_flush error handling

2013-01-17 Thread Juan Quintela
Now that we have error handling we can do proper handling of buffered_flush(). Signed-off-by: Juan Quintela Reviewed-by: Reviewed-by: Eric Blake Reviewed-by: Paolo Bonzini --- migration.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/migration.c b/migration.c index 7ae

[Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

2013-01-17 Thread Rainer Müller
Aaron, this added line in qemu-thread-posix.c is the fix, qemu is expected to crash once this is removed. I guess Brad meant to revert c166cb72f1676855816340666c3b618beef4b976 which introduced the fallback code. However, reverting this commit alone will not work on Mac OS X as sem_timedwait() is n

[Qemu-devel] [PATCH 02/12] s390: Lowcore mapping helper.

2013-01-17 Thread Cornelia Huck
Create a lowcore mapping helper that includes a check for sufficient length. Signed-off-by: Cornelia Huck --- target-s390x/helper.c | 31 +-- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/target-s390x/helper.c b/target-s390x/helper.c index 9a132e6..bf

Re: [Qemu-devel] [PATCH] v6 revamp acpitable parsing and allow to specify complete (headerful) table

2013-01-17 Thread Michael Tokarev
Wow you're replying to an old post... ;) 17.01.2013 13:50, TeLeMan wrote: On Thu, May 12, 2011 at 10:44 PM, Michael Tokarev wrote: This patch almost rewrites acpi_table_add() function [] + +/* now read in the data files, reallocating buffer as needed */ + +for (f = strtok(buf, ":");

[Qemu-devel] [PATCH v3] win32-aio: use iov utility functions instead of open-coding them

2013-01-17 Thread Michael Tokarev
We have iov_from_buf() and iov_to_buf(), use them instead of open-coding these in block/win32-aio.c --- v3: added the forgotten #include (compile-tested on mingw32) v2: rebase on top of the fix from bonzini@ block/win32-aio.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions

[Qemu-devel] [PATCH 03/12] s390: Add mapping helper functions.

2013-01-17 Thread Cornelia Huck
Add s390_cpu_physical_memory_{map,unmap} with special handling for the lowcore. Signed-off-by: Cornelia Huck --- target-s390x/cpu.h| 4 target-s390x/helper.c | 26 ++ 2 files changed, 30 insertions(+) diff --git a/target-s390x/cpu.h b/target-s390x/cpu.h index 6

[Qemu-devel] [PATCH 2/2 v6] target-i386: Replace cpuid_*features fields with a feature word array

2013-01-17 Thread Eduardo Habkost
This replaces the feature-bit fields on both X86CPU and x86_def_t structs with an array. With this, we will be able to simplify code that simply does the same operation on all feature words (e.g. kvm_check_features_against_host(), filter_features_for_kvm(), add_flagname_to_bitmaps(), and CPU featu

[Qemu-devel] [PATCH 06/12] s390: I/O interrupt and machine check injection.

2013-01-17 Thread Cornelia Huck
I/O interrupts are queued per isc. Only crw pending machine checks are supported. Signed-off-by: Cornelia Huck --- target-s390x/cpu.h| 69 +++- target-s390x/helper.c | 143 ++ 2 files changed, 211 insertions(+), 1 deletion(

Re: [Qemu-devel] [PATCH 04/12] Update linux headers.

2013-01-17 Thread Peter Maydell
On 17 January 2013 14:23, Cornelia Huck wrote: > Base is kvm-next as of 2013/01/16. > --- a/linux-headers/asm-powerpc/kvm_para.h > +++ b/linux-headers/asm-powerpc/kvm_para.h > @@ -78,7 +78,7 @@ struct kvm_vcpu_arch_shared { > > #define KVM_HCALL_TOKEN(num) _EV_HCALL_TOKEN(EV_KVM_VENDOR_ID, n

Re: [Qemu-devel] [PATCH 00/14] migration queue

2013-01-17 Thread Paolo Bonzini
Il 17/01/2013 13:46, Juan Quintela ha scritto: >> > >> > It shouldn't be, because the patches have never been posted before. >> > That said, I'm okay with pulling all patches except the last one. > I will add that as reviewed by? O:-) Yes. Paolo

[Qemu-devel] [PATCH 09/12] s390: Wire up channel I/O in kvm.

2013-01-17 Thread Cornelia Huck
Trigger the code for our virtual css in case of instruction intercepts for I/O instructions. Handle the tsch exit for the subchannel-related part of tsch. Signed-off-by: Cornelia Huck --- target-s390x/cpu.h | 11 +++ target-s390x/kvm.c | 252 ++--

[Qemu-devel] [PULL 0/5] QMP queue

2013-01-17 Thread Luiz Capitulino
The changes (since 47f4dac3fde809e3da4e60d9eb699f1d4b378249) are available in the following repository: git://repo.or.cz/qemu/qmp-unstable.git queue/qmp Wenchao Xia (5): HMP: add QDict to info callback handler HMP: delete info handler HMP: add infrastructure for sub command HMP: move

[Qemu-devel] [PULL 2/5] HMP: delete info handler

2013-01-17 Thread Luiz Capitulino
From: Wenchao Xia Now cmd and info handler have same format, so delete info handler. Signed-off-by: Wenchao Xia Signed-off-by: Luiz Capitulino --- monitor.c | 91 +++ 1 file changed, 45 insertions(+), 46 deletions(-) diff --git a/

  1   2   3   >