[Qemu-devel] [PATCH 00/11] add internal snapshot support at block device level

2013-06-08 Thread Wenchao Xia
This series brings internal snapshot support at block devices level, now we have two main methods to do snapshot: 1) backing chain and 2) internal one, and 3) Stefan's unmerged backing up approach. Compared with 1), internal snapshot is faster in R/W/Delete. Compared with 3), it complete faster,

[Qemu-devel] [PATCH 01/11] blockdev: drop redundant proto_drv check

2013-06-08 Thread Wenchao Xia
From: Stefan Hajnoczi stefa...@redhat.com It is not necessary to check that we can find a protocol block driver since we create or open the image file. This produces the error that we need anyway. Besides, the QERR_INVALID_BLOCK_FORMAT is inappropriate since the protocol is incorrect rather

[Qemu-devel] [PATCH 09/11] qmp: add interface blockdev-snapshot-delete-internal-sync

2013-06-08 Thread Wenchao Xia
Snapshot ID can't be specified in this interface. Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com --- blockdev.c | 12 qapi-schema.json | 19 +++ qmp-commands.hx | 30 ++ 3 files changed, 61 insertions(+), 0 deletions(-)

[Qemu-devel] [PATCH 05/11] snapshot: add paired functions for internal snapshot id and name

2013-06-08 Thread Wenchao Xia
Internal snapshot's ID and name concept are both visible in general block level, they are observed by user in info snapshots, so it is possible to mess them up. Although we can separate the two concept in programming, but if they can be distinguished in string itself, things will be simple and

[Qemu-devel] [PATCH 07/11] qmp: add internal snapshot support in qmp_transaction

2013-06-08 Thread Wenchao Xia
Unlike savevm, the qmp_transaction interface will not generate snapshot name automatically, saving trouble to return information of the new created snapshot. The snapshot name should not mess up with snapshot ID, there is a check for it. Although qcow2 support storing multiple snapshots with same

[Qemu-devel] [PATCH 03/11] blockdev: allow BdrvActionOps-commit() to be NULL

2013-06-08 Thread Wenchao Xia
From: Stefan Hajnoczi stefa...@redhat.com Some QMP 'transaction' types don't need to do anything on .commit(). Make .commit() optional just like .abort(). The drive-backup action will take advantage of this, it only needs to cancel the block job on .abort(). Other block job actions will

[Qemu-devel] [PATCH 08/11] qmp: add interface blockdev-snapshot-internal-sync

2013-06-08 Thread Wenchao Xia
This interface can generate snapshot name automatically if it is not specified, since it is a single opertion. Snapshot ID can't be specified in this interface. Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com --- blockdev.c | 25 + qapi-schema.json | 21

[Qemu-devel] [PATCH 11/11] hmp: add interface hmp_snapshot_delete_internal_blkdev

2013-06-08 Thread Wenchao Xia
Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com --- hmp-commands.hx | 19 +++ hmp.c | 10 ++ hmp.h |1 + 3 files changed, 30 insertions(+), 0 deletions(-) diff --git a/hmp-commands.hx b/hmp-commands.hx index 65fb94d..9d9229c 100644 ---

[Qemu-devel] [PATCH 04/11] snapshot: new function bdrv_snapshot_find_by_id_and_name()

2013-06-08 Thread Wenchao Xia
To make it clear about id and name in searching, add this API to distinguish them. Caller can choose to search by id or name, *errp will be set only for exception. Some code are modified based on Pavel's patch. Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com Signed-off-by: Pavel Hrdina

[Qemu-devel] [PATCH 06/11] snapshot: distinguish id and name in snapshot delete

2013-06-08 Thread Wenchao Xia
Snapshot creation actually already distinguish id and name since it take a structured parameter *sn, but delete can't. Later an accurate delete is needed in qmp_transaction abort and blockdev-snapshot-delete-sync, so change its prototype. Also *errp is added to tip error, but return value is

[Qemu-devel] [PATCH 10/11] hmp: add interface hmp_snapshot_internal_blkdev

2013-06-08 Thread Wenchao Xia
Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com --- hmp-commands.hx | 24 ++-- hmp.c | 10 ++ hmp.h |1 + 3 files changed, 33 insertions(+), 2 deletions(-) diff --git a/hmp-commands.hx b/hmp-commands.hx index 396691a..65fb94d 100644

[Qemu-devel] [PATCH 02/11] blockdev: rename BlkTransactionStates to singular

2013-06-08 Thread Wenchao Xia
From: Stefan Hajnoczi stefa...@redhat.com The QMP 'transaction' command keeps a list of in-flight transactions. The transaction state structure is called BlkTransactionStates even though it only deals with a single transaction. The only plural thing is the linked list of transaction states. I

Re: [Qemu-devel] [Qemu-trivial] [PATCH 2/2] KVM: PPC: Add dummy kvm_arch_init_irq_routing()

2013-06-08 Thread Michael Tokarev
06.06.2013 07:59, Alexey Kardashevskiy wrote: From: Scott Wood scottw...@freescale.com The common KVM code insists on calling kvm_arch_init_irq_routing() as soon as it sees kernel header support for it (regardless of whether QEMU supports it). Provide a dummy function to satisfy this.

Re: [Qemu-devel] [PATCH 04/11] snapshot: new function bdrv_snapshot_find_by_id_and_name()

2013-06-08 Thread Fam Zheng
On Sat, 06/08 14:58, Wenchao Xia wrote: To make it clear about id and name in searching, add this API to distinguish them. Caller can choose to search by id or name, *errp will be set only for exception. Some code are modified based on Pavel's patch. Signed-off-by: Wenchao Xia

Re: [Qemu-devel] [Qemu-trivial] [PATCH] ioport/memory: check that both .read and .write callbacks are defined

2013-06-08 Thread Michael Tokarev
05.06.2013 17:42, Hervé Poussineau wrote: If that's not the case, QEMU will may during execution. This has recently been fixed for: - acpi (2d3b989529727ccace243b953a181fbae04a30d1) - kvmapic (0c1cd0ae2a4faabeb948b9a07ea1696e853de174) - xhci (6d3bc22e31bcee74dc1e05a5370cabb33b7c3fda) And

Re: [Qemu-devel] [PATCH 06/11] snapshot: distinguish id and name in snapshot delete

2013-06-08 Thread Fam Zheng
On Sat, 06/08 14:58, Wenchao Xia wrote: -static int find_snapshot_by_id(BlockDriverState *bs, const char *id_str) +static int find_snapshot_by_id_and_name(BlockDriverState *bs, +const char *id, +const char

Re: [Qemu-devel] [PATCH 08/11] qmp: add interface blockdev-snapshot-internal-sync

2013-06-08 Thread Fam Zheng
On Sat, 06/08 14:58, Wenchao Xia wrote: This interface can generate snapshot name automatically if it is not specified, since it is a single opertion. Snapshot ID can't be specified in this interface. Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com --- blockdev.c | 25

Re: [Qemu-devel] [PATCH 04/11] snapshot: new function bdrv_snapshot_find_by_id_and_name()

2013-06-08 Thread Wenchao Xia
于 2013-6-8 15:31, Fam Zheng 写道: On Sat, 06/08 14:58, Wenchao Xia wrote: To make it clear about id and name in searching, add this API to distinguish them. Caller can choose to search by id or name, *errp will be set only for exception. Some code are modified based on Pavel's patch.

Re: [Qemu-devel] [PATCH 10/11] hmp: add interface hmp_snapshot_internal_blkdev

2013-06-08 Thread Fam Zheng
On Sat, 06/08 14:58, Wenchao Xia wrote: Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com --- hmp-commands.hx | 24 ++-- hmp.c | 10 ++ hmp.h |1 + 3 files changed, 33 insertions(+), 2 deletions(-) diff --git a/hmp-commands.hx

Re: [Qemu-devel] broken incoming migration

2013-06-08 Thread Wenchao Xia
于 2013-5-30 21:00, Paolo Bonzini 写道: Il 30/05/2013 11:08, Peter Lieven ha scritto: Am 30.05.2013 10:18, schrieb Alexey Kardashevskiy: On 05/30/2013 05:49 PM, Paolo Bonzini wrote: Il 30/05/2013 09:44, Alexey Kardashevskiy ha scritto: Hi! I found the migration broken on pseries platform,

Re: [Qemu-devel] broken incoming migration

2013-06-08 Thread Alexey Kardashevskiy
On 06/08/2013 06:27 PM, Wenchao Xia wrote: On 04.06.2013 16:40, Paolo Bonzini wrote: Il 04/06/2013 16:38, Peter Lieven ha scritto: On 04.06.2013 16:14, Paolo Bonzini wrote: Il 04/06/2013 15:52, Peter Lieven ha scritto: On 30.05.2013 16:41, Paolo Bonzini wrote: Il 30/05/2013 16:38, Peter

Re: [Qemu-devel] [Qemu-trivial] [PATCH 2/2] KVM: PPC: Add dummy kvm_arch_init_irq_routing()

2013-06-08 Thread Alexey Kardashevskiy
On 06/08/2013 05:24 PM, Michael Tokarev wrote: 06.06.2013 07:59, Alexey Kardashevskiy wrote: From: Scott Wood scottw...@freescale.com The common KVM code insists on calling kvm_arch_init_irq_routing() as soon as it sees kernel header support for it (regardless of whether QEMU supports it).

Re: [Qemu-devel] [PATCH 04/11] snapshot: new function bdrv_snapshot_find_by_id_and_name()

2013-06-08 Thread Fam Zheng
On Sat, 06/08 15:58, Wenchao Xia wrote: 于 2013-6-8 15:31, Fam Zheng 写道: On Sat, 06/08 14:58, Wenchao Xia wrote: To make it clear about id and name in searching, add this API to distinguish them. Caller can choose to search by id or name, *errp will be set only for exception. Some code are

Re: [Qemu-devel] broken incoming migration

2013-06-08 Thread Wenchao Xia
On 04.06.2013 16:40, Paolo Bonzini wrote: Il 04/06/2013 16:38, Peter Lieven ha scritto: On 04.06.2013 16:14, Paolo Bonzini wrote: Il 04/06/2013 15:52, Peter Lieven ha scritto: On 30.05.2013 16:41, Paolo Bonzini wrote: Il 30/05/2013 16:38, Peter Lieven ha scritto: You could also scan the

Re: [Qemu-devel] [PATCH RFT 2/5] virtio: Convert VirtioDevice to QOM realize/unrealize

2013-06-08 Thread Andreas Färber
Hi, Am 08.06.2013 04:22, schrieb Peter Crosthwaite: On Sat, Jun 8, 2013 at 4:18 AM, Andreas Färber afaer...@suse.de wrote: diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c index dc6f4e4..409d315 100644 --- a/hw/9pfs/virtio-9p-device.c +++ b/hw/9pfs/virtio-9p-device.c

Re: [Qemu-devel] [PATCH] pseries: Support for in-kernel XICS interrupt controller

2013-06-08 Thread Andreas Färber
Am 05.06.2013 09:39, schrieb Alexey Kardashevskiy: From: David Gibson da...@gibson.dropbear.id.au Recent (host) kernels support emulating the PAPR defined XICS interrupt controller system within KVM. This patch allows qemu to initialize and configure the in-kernel XICS, and keep its state

Re: [Qemu-devel] [PATCH 03/13] target-ppc: Convert ppc cpu savevm to VMStateDescription

2013-06-08 Thread Andreas Färber
Am 04.06.2013 14:20, schrieb Alexey Kardashevskiy: Author: David Gibson da...@gibson.dropbear.id.au From: The savevm code for the powerpc cpu emulation is currently based around the old register_savevm() rather than register_vmstate() method. It's also rather broken, missing some

Re: [Qemu-devel] [PATCH RFT 2/5] virtio: Convert VirtioDevice to QOM realize/unrealize

2013-06-08 Thread Peter Crosthwaite
Hi Andreas, On Sat, Jun 8, 2013 at 7:55 PM, Andreas Färber afaer...@suse.de wrote: Hi, Am 08.06.2013 04:22, schrieb Peter Crosthwaite: On Sat, Jun 8, 2013 at 4:18 AM, Andreas Färber afaer...@suse.de wrote: diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c index

[Qemu-devel] [PATCH] spice: Add -spice disable-agent-file-transfer cmdline option (rhbz#961850)

2013-06-08 Thread Hans de Goede
Signed-off-by: Hans de Goede hdego...@redhat.com --- qemu-options.hx | 7 +-- ui/spice-core.c | 13 + 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index bf94862..b62e542 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@

[Qemu-devel] [PATCH 0/1] spice: Add -spice disable-agent-file-transfer cmdline option (v3)

2013-06-08 Thread Hans de Goede
Hi All, And here is v3 of this patch, history: v2: Add documentation for the new cmdline option v3: Break a line which was longer then 80 chars Regards, Hans

Re: [Qemu-devel] [PATCH] pseries: Support for in-kernel XICS interrupt controller

2013-06-08 Thread Alexey Kardashevskiy
On 06/08/2013 08:20 PM, Andreas Färber wrote: Am 05.06.2013 09:39, schrieb Alexey Kardashevskiy: From: David Gibson da...@gibson.dropbear.id.au Recent (host) kernels support emulating the PAPR defined XICS interrupt controller system within KVM. This patch allows qemu to initialize and

[Qemu-devel] [PATCH v2 2/8] memory: handle old_portio accesses in MMIO path

2013-06-08 Thread Hervé Poussineau
This patch is only temporary, and will be removed soon. Signed-off-by: Hervé Poussineau hpous...@reactos.org --- memory.c | 16 1 file changed, 16 insertions(+) diff --git a/memory.c b/memory.c index 5cb8f4a..f27167c 100644 --- a/memory.c +++ b/memory.c @@ -933,6 +933,14 @@

[Qemu-devel] [PATCH v2 0/8] memory: remove old_portio usage

2013-06-08 Thread Hervé Poussineau
These proposed patches aim at removing the .old_portio member of MemoryRegionOps structure, and replacing their usage by .read/.write handlers. That way, faked I/O address space can be removed from architectures which don't have it (MIPS, PowerPC...), and commits like

[Qemu-devel] [PATCH v2 5/8] ioport: reimplement cpu_in/cpu_out using address_space_rw

2013-06-08 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau hpous...@reactos.org --- ioport.c | 83 ++ 1 file changed, 7 insertions(+), 76 deletions(-) diff --git a/ioport.c b/ioport.c index d26d3e1..7bc9d8f 100644 --- a/ioport.c +++ b/ioport.c @@ -28,6 +28,7

[Qemu-devel] [PATCH v2 3/8] ioport: register memory regions for I/O port lists

2013-06-08 Thread Hervé Poussineau
As I/O ports are now memory regions, they can be seen in 'info qtree'. This also removes the last use of MemoryRegionOps.old_portio field. Some of the code has been extracted from memory.c Signed-off-by: Hervé Poussineau hpous...@reactos.org --- include/exec/ioport.h |3 +- ioport.c

[Qemu-devel] [PATCH v2 6/8] ppc: simplify access to PReP I/O region

2013-06-08 Thread Hervé Poussineau
We can now simply use address_space_rw instead of the more convoluted cpu_in() and cpu_out() functions. Signed-off-by: Hervé Poussineau hpous...@reactos.org --- hw/ppc/prep.c | 65 - 1 file changed, 9 insertions(+), 56 deletions(-) diff

[Qemu-devel] [PATCH v2 1/8] isa: fix documentation of isa_register_portio_list

2013-06-08 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau hpous...@reactos.org --- include/hw/isa/isa.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hw/isa/isa.h b/include/hw/isa/isa.h index 82da37c..556790c 100644 --- a/include/hw/isa/isa.h +++ b/include/hw/isa/isa.h @@ -73,7 +73,7 @@

[Qemu-devel] [PATCH v2 4/8] memory: remove code dealing with old_portio

2013-06-08 Thread Hervé Poussineau
Last user of old_portio callbacks has been removed in previous commit. Signed-off-by: Hervé Poussineau hpous...@reactos.org --- include/exec/memory.h |4 memory.c | 60 - 2 files changed, 64 deletions(-) diff --git

[Qemu-devel] [PATCH v2 7/8] PPC: pseries: Remove hack for PIO window

2013-06-08 Thread Hervé Poussineau
From: Alexander Graf ag...@suse.de Now that all users of old_portio are gone, we can remove the hack that enabled us to support them. This is the same commit as a178274efabcbbc5d44805b51def874e47051325, which has been reverted in a3cfa18eb075c7ef78358ca1956fe7b01caa1724. Signed-off-by: Hervé

[Qemu-devel] [PATCH v2 8/8] isa_mmio: simplify access to system I/O region

2013-06-08 Thread Hervé Poussineau
We can now simply use address_space_rw instead of the more convoluted cpu_in() and cpu_out() functions. Signed-off-by: Hervé Poussineau hpous...@reactos.org --- hw/isa/isa_mmio.c | 42 +++--- 1 file changed, 11 insertions(+), 31 deletions(-) diff --git

Re: [Qemu-devel] [PATCH] pseries: Support for in-kernel XICS interrupt controller

2013-06-08 Thread Andreas Färber
Am 08.06.2013 16:11, schrieb Alexey Kardashevskiy: On 06/08/2013 08:20 PM, Andreas Färber wrote: Am 05.06.2013 09:39, schrieb Alexey Kardashevskiy: From: David Gibson da...@gibson.dropbear.id.au Recent (host) kernels support emulating the PAPR defined XICS interrupt controller system within

[Qemu-devel] [PATCH] chardev: add baud parameter for serial host device

2013-06-08 Thread Peter Wu
When QEMU starts, it always changes the serial port parameters including baud rate. This confused my guest which thought it was outputting at 9600 baud while it was in fact changed to 115200. After this patch, I can use `-serial /dev/ttyS0,baud=9600` to override the default baud rate of 115200.

Re: [Qemu-devel] [PATCH 5/8] [PATCH RFC v2] s390-qemu: cpu hotplug - Introduce post-cpu-init function

2013-06-08 Thread Andreas Färber
Am 07.06.2013 19:28, schrieb Jason J. Herne: From: Jason J. Herne jjhe...@us.ibm.com In preparation for treating cpus as devices CPUs *are* devices since multiple releases now, so this is badly put. we need to separate machine initialization into two stages: 1. Initialization that needs

Re: [Qemu-devel] [PATCH 7/8] [PATCH RFC v2] s390-qemu: cpu hotplug - Infrastructure for Cpu Devices

2013-06-08 Thread Andreas Färber
Hi, Am 07.06.2013 19:28, schrieb Jason J. Herne: From: Jason J. Herne jjhe...@us.ibm.com Add infrastructure for treating cpus as devices. This patch allows cpus to be specified using a combination of '-smp' and '-device cpu'. This approach forces a change in the way cpus are counted via

Re: [Qemu-devel] [PATCH 8/8] [PATCH RFC v2] s390-qemu: cpu hotplug - Treat S390 cpus as devices

2013-06-08 Thread Andreas Färber
Am 07.06.2013 19:28, schrieb Jason J. Herne: From: Jason J. Herne jjhe...@us.ibm.com Modify cpu initialization and QOM routines associated with s390-cpu such that all cpus on S390 are now created via the QOM device creation code path. Signed-off-by: Jason J. Herne jjhe...@us.ibm.com ---

[Qemu-devel] [PATCH] vmdk: refuse to open higher version than supported

2013-06-08 Thread Fam Zheng
Refuse to open higher version for safety. Although we try to be compatible with published VMDK spec, VMware has newer version from ESXi 5.1 exported OVF/OVA, which we have no knowledge what's changed in it. And it is very likely to have more new versions in the future, so it's not safe to open

Re: [Qemu-devel] broken incoming migration

2013-06-08 Thread Wenchao Xia
于 2013-6-8 16:30, Alexey Kardashevskiy 写道: On 06/08/2013 06:27 PM, Wenchao Xia wrote: On 04.06.2013 16:40, Paolo Bonzini wrote: Il 04/06/2013 16:38, Peter Lieven ha scritto: On 04.06.2013 16:14, Paolo Bonzini wrote: Il 04/06/2013 15:52, Peter Lieven ha scritto: On 30.05.2013 16:41, Paolo

Re: [Qemu-devel] broken incoming migration

2013-06-08 Thread Alexey Kardashevskiy
On 06/09/2013 12:16 PM, Wenchao Xia wrote: 于 2013-6-8 16:30, Alexey Kardashevskiy 写道: On 06/08/2013 06:27 PM, Wenchao Xia wrote: On 04.06.2013 16:40, Paolo Bonzini wrote: Il 04/06/2013 16:38, Peter Lieven ha scritto: On 04.06.2013 16:14, Paolo Bonzini wrote: Il 04/06/2013 15:52, Peter Lieven

Re: [Qemu-devel] [PATCH] target-mips: fix mipsdsp_trunc16_sat16_round

2013-06-08 Thread Petar Jovanovic
ping http://patchwork.ozlabs.org/patch/245624/ From: Petar Jovanovic [petar.jovano...@rt-rk.com] Sent: Wednesday, May 22, 2013 3:35 PM To: qemu-devel@nongnu.org Cc: Petar Jovanovic; aurel...@aurel32.net Subject: [PATCH] target-mips: fix

[Qemu-devel] [PATCH] curl: refuse to open URL from HTTP server without range support

2013-06-08 Thread Fam Zheng
CURL driver requests partial data from server on guest IO req. For HTTP and HTTPS, it uses Range: *** in requests, and this will not work if server not accepting range. This patch does this check when open. * Removed curl_size_cb, which is not used: On one hand it's registered to libcurl as

Re: [Qemu-devel] [PATCH 08/11] qmp: add interface blockdev-snapshot-internal-sync

2013-06-08 Thread Wenchao Xia
于 2013-6-8 16:05, Fam Zheng 写道: On Sat, 06/08 14:58, Wenchao Xia wrote: This interface can generate snapshot name automatically if it is not specified, since it is a single opertion. Snapshot ID can't be specified in this interface. Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com ---

Re: [Qemu-devel] [PATCH 04/11] snapshot: new function bdrv_snapshot_find_by_id_and_name()

2013-06-08 Thread Wenchao Xia
于 2013-6-8 16:35, Fam Zheng 写道: On Sat, 06/08 15:58, Wenchao Xia wrote: 于 2013-6-8 15:31, Fam Zheng 写道: On Sat, 06/08 14:58, Wenchao Xia wrote: To make it clear about id and name in searching, add this API to distinguish them. Caller can choose to search by id or name, *errp will be set only

Re: [Qemu-devel] [PATCH] target-mips: fix multiplication in mipsdsp_rndq15_mul_q15_q15

2013-06-08 Thread Petar Jovanovic
ping http://patchwork.ozlabs.org/patch/245990/ From: Petar Jovanovic [petar.jovano...@rt-rk.com] Sent: Thursday, May 23, 2013 7:37 PM To: qemu-devel@nongnu.org Cc: Petar Jovanovic; aurel...@aurel32.net Subject: [PATCH] target-mips: fix multiplication in

Re: [Qemu-devel] [PATCH 10/11] hmp: add interface hmp_snapshot_internal_blkdev

2013-06-08 Thread Wenchao Xia
于 2013-6-8 16:21, Fam Zheng 写道: On Sat, 06/08 14:58, Wenchao Xia wrote: Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com --- hmp-commands.hx | 24 ++-- hmp.c | 10 ++ hmp.h |1 + 3 files changed, 33 insertions(+), 2 deletions(-)

Re: [Qemu-devel] [Qemu-ppc] broken incoming migration

2013-06-08 Thread Benjamin Herrenschmidt
On Sun, 2013-06-09 at 12:34 +1000, Alexey Kardashevskiy wrote: It is _live_ migration, the source sends changes, same pages can change and be sent several times. So we would need to turn tracking on on the destination to know if some page was received from the source or changed by the

Re: [Qemu-devel] [Qemu-ppc] broken incoming migration

2013-06-08 Thread Benjamin Herrenschmidt
On Sun, 2013-06-09 at 10:16 +0800, Wenchao Xia wrote: If an page was not received and destination knows that page should exist according to total size, fill it with zero at destination, would it solve the problem? The easiest way to do that is to not write to those pages at the destination

Re: [Qemu-devel] [Qemu-ppc] broken incoming migration

2013-06-08 Thread Alexey Kardashevskiy
On 06/09/2013 12:52 PM, Benjamin Herrenschmidt wrote: On Sun, 2013-06-09 at 12:34 +1000, Alexey Kardashevskiy wrote: It is _live_ migration, the source sends changes, same pages can change and be sent several times. So we would need to turn tracking on on the destination to know if some page

Re: [Qemu-devel] [PATCH 10/11] hmp: add interface hmp_snapshot_internal_blkdev

2013-06-08 Thread Fam Zheng
On Sun, 06/09 10:39, Wenchao Xia wrote: 于 2013-6-8 16:21, Fam Zheng 写道: On Sat, 06/08 14:58, Wenchao Xia wrote: Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com --- hmp-commands.hx | 24 ++-- hmp.c | 10 ++ hmp.h |1 + 3

Re: [Qemu-devel] broken incoming migration

2013-06-08 Thread Wenchao Xia
于 2013-6-9 10:34, Alexey Kardashevskiy 写道: On 06/09/2013 12:16 PM, Wenchao Xia wrote: 于 2013-6-8 16:30, Alexey Kardashevskiy 写道: On 06/08/2013 06:27 PM, Wenchao Xia wrote: On 04.06.2013 16:40, Paolo Bonzini wrote: Il 04/06/2013 16:38, Peter Lieven ha scritto: On 04.06.2013 16:14, Paolo

Re: [Qemu-devel] broken incoming migration

2013-06-08 Thread Alexey Kardashevskiy
On 06/09/2013 01:01 PM, Wenchao Xia wrote: 于 2013-6-9 10:34, Alexey Kardashevskiy 写道: On 06/09/2013 12:16 PM, Wenchao Xia wrote: 于 2013-6-8 16:30, Alexey Kardashevskiy 写道: On 06/08/2013 06:27 PM, Wenchao Xia wrote: On 04.06.2013 16:40, Paolo Bonzini wrote: Il 04/06/2013 16:38, Peter Lieven

Re: [Qemu-devel] broken incoming migration

2013-06-08 Thread Wenchao Xia
于 2013-6-9 11:09, Alexey Kardashevskiy 写道: On 06/09/2013 01:01 PM, Wenchao Xia wrote: 于 2013-6-9 10:34, Alexey Kardashevskiy 写道: On 06/09/2013 12:16 PM, Wenchao Xia wrote: 于 2013-6-8 16:30, Alexey Kardashevskiy 写道: On 06/08/2013 06:27 PM, Wenchao Xia wrote: On 04.06.2013 16:40, Paolo

Re: [Qemu-devel] broken incoming migration

2013-06-08 Thread liu ping fan
Hi Peter, Is it that sending zero page mostly service the first iteration, ie bluk-stage? And for the subsequent iteration, dirty pages are normally not zero. Thanks On Wed, Jun 5, 2013 at 2:09 PM, Peter Lieven p...@kamp.de wrote: Am 05.06.2013 um 05:37 schrieb Alexey Kardashevskiy

[Qemu-devel] how to know qemu devices topology

2013-06-08 Thread yue-kvm
hi,all 1. how could i know how many devices qemu support and hardware topology of all of them? 2.the quantitativerestriction of guest's devices. vcpu,disk,ethernet,memory? thanks you all