[Qemu-devel] [PATCH 6/8] block/qcow2: Simplify shared L2 handling in amend

2014-07-25 Thread Max Reitz
Currently, we have a bitmap for keeping track of which clusters have been created during the zero cluster expansion process. This was necessary because we need to properly increase the refcount for shared L2 tables. However, now we can simply take the L2 refcount and use it for the cluster allocat

[Qemu-devel] [PATCH 8/8] iotests: Expand test 061

2014-07-25 Thread Max Reitz
Add some tests for progress output and one test regarding the COPIED flag for shared zeroed clusters to 061. Signed-off-by: Max Reitz --- tests/qemu-iotests/061 | 41 + tests/qemu-iotests/061.out | 40 tests/qem

[Qemu-devel] [PATCH 1/8] block: Add status callback to bdrv_amend_options()

2014-07-25 Thread Max Reitz
Depending on the changed options and the image format, bdrv_amend_options() may take a significant amount of time. In these cases, a way to be informed about the operation's status is desirable. Since the operation is rather complex and may fundamentally change the image, implementing it as AIO or

[Qemu-devel] [PATCH v2 0/7] Virtio PCI libqos driver

2014-07-25 Thread Marc Marí
Add functions for virtio PCI libqos driver. Add more debugging tools. Solve bugs found while generating tests. Marc Marí (7): tests: Functions bus_foreach and device_find from libqos virtio API tests: Add virtio device initialization libqtest: add QTEST_LOG for debugging qtest testcases li

[Qemu-devel] [PATCH v2 6/7] virtio-blk: Correct bug in support for flexible descriptor layout

2014-07-25 Thread Marc Marí
Without this correction, only a three descriptor layout is accepted, and requests with just two descriptors are not completed and no error message is displayed. Signed-off-by: Stefan Hajnoczi Signed-off-by: Marc Marí --- hw/block/virtio-blk.c | 14 +++--- 1 file changed, 7 insertions(

[Qemu-devel] [PATCH v2 2/7] tests: Add virtio device initialization

2014-07-25 Thread Marc Marí
Add functions to read and write virtio header fields. Add status bit setting in virtio-blk-device. Signed-off-by: Marc Marí --- tests/Makefile|2 +- tests/libqos/virtio-pci.c | 57 + tests/libqos/virtio-pci.h | 18 ++ te

[Qemu-devel] [PATCH v2 1/7] tests: Functions bus_foreach and device_find from libqos virtio API

2014-07-25 Thread Marc Marí
Virtio header has been changed to compile and work with a real device. Functions bus_foreach and device_find have been implemented for PCI. Virtio-blk test case now opens a fake device. Signed-off-by: Marc Marí --- tests/Makefile|3 +- tests/libqos/virtio-pci.c | 75 +++

[Qemu-devel] [PATCH v2 5/7] libqos: Change free function called in malloc

2014-07-25 Thread Marc Marí
Reviewed-by: Stefan Hajnoczi Signed-off-by: Marc Marí --- tests/libqos/malloc.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/libqos/malloc.h b/tests/libqos/malloc.h index 46f6000..5565381 100644 --- a/tests/libqos/malloc.h +++ b/tests/libqos/malloc.h @@ -32,7 +32,

[Qemu-devel] [PATCH v2 7/7] libqos: Added basic virtqueue support to virtio implementation

2014-07-25 Thread Marc Marí
Add status changing and feature negotiation. Add basic virtqueue support for adding and sending virtqueue requests. Add ISR checking. Signed-off-by: Marc Marí --- tests/libqos/virtio-pci.c | 91 +- tests/libqos/virtio-pci.h |7 ++ tests/libqos/virtio.c | 89 ++

[Qemu-devel] [PATCH v2 3/7] libqtest: add QTEST_LOG for debugging qtest testcases

2014-07-25 Thread Marc Marí
Signed-off-by: Paolo Bonzini Signed-off-by: Marc Marí --- tests/libqtest.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/libqtest.c b/tests/libqtest.c index 98e8f4b..fbd600d 100644 --- a/tests/libqtest.c +++ b/tests/libqtest.c @@ -167,11 +167,12 @@ QTestState

[Qemu-devel] [PATCH v2 4/7] libqos: Correct mask to align size to PAGE_SIZE in malloc-pc

2014-07-25 Thread Marc Marí
Reviewed-by: Stefan Hajnoczi Signed-off-by: Paolo Bonzini Signed-off-by: Marc Marí --- tests/libqos/malloc-pc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/libqos/malloc-pc.c b/tests/libqos/malloc-pc.c index db1496c..2efd095 100644 --- a/tests/libqos/malloc-pc.c

Re: [Qemu-devel] [PATCH] virtio-scsi: fix object check failure

2014-07-25 Thread Nicholas A. Bellinger
Hi Ming & Paolo, On Wed, 2014-06-18 at 23:11 +0800, Ming Lei wrote: > On Wed, Jun 18, 2014 at 11:06 PM, Paolo Bonzini wrote: > > Il 18/06/2014 17:02, Paolo Bonzini ha scritto: > > > >> Il 18/06/2014 16:18, Ming Lei ha scritto: > > > This should never be triggered by vhost-scsi. Perhaps

Re: [Qemu-devel] [PATCH v2 4/7] bootindex: delete bootindex when device is removed

2014-07-25 Thread Gonglei (Arei)
Hi, Gerd > -Original Message- > From: Gerd Hoffmann [mailto:kra...@redhat.com] > Sent: Friday, July 25, 2014 5:52 PM > Subject: Re: [PATCH v2 4/7] bootindex: delete bootindex when device is > removed > > Hi, > > > +del_boot_device_path(dev); > > You can call this from device_finali

Re: [Qemu-devel] [PATCH v2 1/7] bootindex: add modify_boot_device_path function

2014-07-25 Thread Gonglei (Arei)
Hi, Gerd > -Original Message- > From: Gerd Hoffmann [mailto:kra...@redhat.com] > Sent: Friday, July 25, 2014 5:46 PM > > Hi, > > > +void modify_boot_device_path(int32_t bootindex, DeviceState *dev, > > + const char *suffix) > > +{ > > +FWBootEntry *node, *i

Re: [Qemu-devel] [questions] about qemu log

2014-07-25 Thread Zhang Haoyu
Hi, all If I use qemu command directly to run vm, bypass libvirt, how to configure qemu to assure that each vm has its own log file, like vmname.log? For example, VM: rhel7-net has its own log file, rhel7-net.log, VM:rhel7-stor has its own log file, rhel7-stor.log. >>

Re: [Qemu-devel] [questions]_about_qemu_log

2014-07-25 Thread Zhang Haoyu
> Hi, all > > If I use qemu command directly to run vm, bypass libvirt, how to > configure qemu to assure that each vm has its own log file, like > vmname.log? > For example, VM: rhel7-net has its own log file, rhel7-net.log, > VM:rhel7-stor has its own log file, rhel7

Re: [Qemu-devel] [PATCH] virtio-scsi: fix object check failure

2014-07-25 Thread Ming Lei
On Sat, Jul 26, 2014 at 7:10 AM, Nicholas A. Bellinger wrote: > Hi Ming & Paolo, > > On Wed, 2014-06-18 at 23:11 +0800, Ming Lei wrote: >> On Wed, Jun 18, 2014 at 11:06 PM, Paolo Bonzini wrote: >> > Il 18/06/2014 17:02, Paolo Bonzini ha scritto: >> > >> >> Il 18/06/2014 16:18, Ming Lei ha scritto

[Qemu-devel] [PATCH v3 4/7] bootindex: delete bootindex when device is removed

2014-07-25 Thread arei.gonglei
From: Gonglei Device should be removed from global boot list when it is hot-unplugged. Signed-off-by: Chenliang Signed-off-by: Gonglei --- hw/core/qdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/core/qdev.c b/hw/core/qdev.c index da1ba48..7bc12bc 100644 --- a/hw/core/qdev.c ++

[Qemu-devel] [PATCH v3 1/7] bootindex: add modify_boot_device_path function

2014-07-25 Thread arei.gonglei
From: Gonglei When we want to change one device's bootindex, we should lookup the device and change the bootindex. it is simply that remove it from the global boot list, then re-add it, sorted by new bootindex. If the new bootindex has already used by another device just throw an error. Signed-o

[Qemu-devel] [PATCH v3 0/7] modify boot order of guest, and take effect after rebooting

2014-07-25 Thread arei.gonglei
From: Gonglei Sometimes, we want to modify boot order of a guest, but no need to shutdown it. We can call dynamic changing bootindex of a guest, which can be assured taking effect just after the guest rebooting. For example, in P2V scene, we boot a guest and then attach a new system disk, for co

[Qemu-devel] [PATCH v3 2/7] bootindex: add del_boot_device_path function

2014-07-25 Thread arei.gonglei
From: Gonglei Introduce a del_boot_device_path() cleanup fw_cfg content when hot-unplugging devcie refer to bootindex. Signed-off-by: Gonglei Signed-off-by: Chenliang --- include/sysemu/sysemu.h | 1 + vl.c| 17 + 2 files changed, 18 insertions(+) diff --

[Qemu-devel] [PATCH v3 7/7] spapr: fix possible memory leak

2014-07-25 Thread arei.gonglei
From: Gonglei get_boot_devices_list() will malloc memory, spapr_finalize_fdt doesn't free it. Signed-off-by: Chenliang Signed-off-by: Gonglei --- hw/ppc/spapr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index d01978f..edff5ce 100644 --- a/hw/ppc/spapr

[Qemu-devel] [PATCH v3 5/7] qmp: add set-bootindex command

2014-07-25 Thread arei.gonglei
From: Gonglei Adds "set-bootindex id=xx,bootindex=xx,suffix=xx" QMP command. Example QMP command: -> { "execute": "set-bootindex", "arguments": { "id": "ide0-0-1", "bootindex": 1, "suffix": "/disk@0"}} <- { "return": {} } Signed-off-by: Gonglei Signed-off-by: Chenliang --- qapi-schema.json

[Qemu-devel] [PATCH v3 6/7] qemu-monitor: HMP set-bootindex wrapper

2014-07-25 Thread arei.gonglei
From: Gonglei Add HMP set-bootindex wrapper to allow setting devcie's bootindex via monitor. Signed-off-by: Gonglei Signed-off-by: Chenliang --- hmp-commands.hx | 15 +++ hmp.c | 13 + hmp.h | 1 + 3 files changed, 29 insertions(+) diff --git a/hm

[Qemu-devel] [PATCH v3 3/7] fw_cfg: add fw_cfg_machine_reset function

2014-07-25 Thread arei.gonglei
From: Gonglei We must assure that the changed bootindex can take effect when guest is rebooted. So we introduce fw_cfg_machine_reset(), which change the fw_cfg file's bootindex data using the new global fw_boot_order list. Signed-off-by: Chenliang Signed-off-by: Gonglei --- hw/nvram/fw_cfg.c

<    1   2