[libvirt] why not shutdown the src vm to avoid split-brain

2015-02-14 Thread zhang bo
In func doPeer2PeerMigrate3(), in the finish step, it checks whether domainMigrateFinish3() returns NULL or not. if it(ddomain) is NULL, it just restarts the guest on the source. Please consider the scenario that the ddomain has already been running on the dest, but it fails to tell the source

[libvirt] [libvirt-test-API][PATCH 0/2] network event callback testing

2015-02-14 Thread Jincheng Miao
Here is the network event callback testing, the case employed native libvirt eventLoop, and multi-thread for event trigger. Jincheng Miao (2): Add test case for network event callback Add cases to basic_network.conf cases/basic_network.conf| 24

[libvirt] [libvirt-test-API][PATCH 1/2] Add freepage test

2015-02-14 Thread Jincheng Miao
For system default pagesize, it's hard to calculate, and it changes all the time, so just skip it. For others, reading from sysfs to get free pages. Signed-off-by: Jincheng Miao jm...@redhat.com --- repos/virconn/free_pages.py | 97 +++ 1 files changed,

[libvirt] [libvirt-test-API][PATCH 2/2] Add freepage test case to test_connection.conf

2015-02-14 Thread Jincheng Miao
Signed-off-by: Jincheng Miao jm...@redhat.com --- cases/test_connection.conf |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/cases/test_connection.conf b/cases/test_connection.conf index ccde119..4211511 100644 --- a/cases/test_connection.conf +++

[libvirt] [libvirt-test-API][PATCH 1/2] Add test case for network event callback

2015-02-14 Thread Jincheng Miao
Signed-off-by: Jincheng Miao jm...@redhat.com --- repos/network/event_callback.py | 245 +++ 1 files changed, 245 insertions(+), 0 deletions(-) create mode 100644 repos/network/event_callback.py diff --git a/repos/network/event_callback.py

[libvirt] [Patch 0/4] PowerPC fixes for libvirt

2015-02-14 Thread Prerna Saxena
This patch set addresses some miscellaneous fixes for libvirt on PowerPC. Details: Patch 1/4 : This adds 'qemu-system-ppc64' as the default emulator for ppc64 ppc64le guests. Patch 2/4 : Fixes a small error where not specifying a CPU model leads to a NULL compat specification. Patch 3/4 : This

[libvirt] [PATCH 2/4] PowerPC : Forbid NULL CPU model with 'host-model' mode.

2015-02-14 Thread Prerna Saxena
PowerPC : Forbid NULL CPU model with 'host-model' mode in qemu command line. This ensures that an XML such as following: ... cpu mode='host-model' model fallback='allow'/ /cpu ... will not generate a '-cpu host,compat=(null)' command line with qemu-system-ppc64. Signed-off-by: Prerna

[libvirt] [PATCH 3/4] PowerPC: Augment XML schema to include 'ppc64le' arch and pseries* machine types.

2015-02-14 Thread Prerna Saxena
PowerPC: Augment XML schema to include 'ppc64le' arch and newer pseries-2.* machine types. Signed-off-by: Prerna Saxena pre...@linux.vnet.ibm.com --- docs/schemas/basictypes.rng | 1 + docs/schemas/domaincommon.rng | 7 ++- 2 files changed, 7 insertions(+), 1 deletion(-)

[libvirt] [libvirt-test-API][PATCH 0/2] Add freepages test cases

2015-02-14 Thread Jincheng Miao
Add freepages test cases. Jincheng Miao (2): Add freepage test Add freepage test case to test_connection.conf cases/test_connection.conf |6 +++ repos/virconn/free_pages.py | 97 +++ 2 files changed, 103 insertions(+), 0 deletions(-) create

[libvirt] [libvirt-test-API][PATCH 2/2] Add cases to basic_network.conf

2015-02-14 Thread Jincheng Miao
Signed-off-by: Jincheng Miao jm...@redhat.com --- cases/basic_network.conf | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/cases/basic_network.conf b/cases/basic_network.conf index e9abd57..18997a2 100644 --- a/cases/basic_network.conf +++

Re: [libvirt] Fwd: libvirt 1.2.10 and latest EL6 qemu-kvm

2015-02-14 Thread Pavel Hrdina
On Fri, Feb 13, 2015 at 05:32:36PM +0100, Franky Van Liedekerke wrote: Since there was no reaction in the user list, I'm posting it in the devel in the hope for some guidance to the problem mentioned below (sorry about this). Franky -- Forwarded message -- From: Franky

Re: [libvirt] [PATCH 2/2] libxl: Resolve Coverity CHECKED_RETURN

2015-02-14 Thread Pavel Hrdina
On Fri, Feb 13, 2015 at 03:21:40PM -0500, John Ferlan wrote: Periodically my Coverity scan will return a checked_return failure for libxlDomainShutdownThread call to libxlDomainStart. Followed the libxlAutostartDomain example in order to check the status, emit a message, and continue on.

Re: [libvirt] [PATCH v2] Comment out variables/functions that are unused.

2015-02-14 Thread Pavel Hrdina
On Fri, Feb 13, 2015 at 10:18:40PM +, Gary R Hook wrote: Avoids complaints when the compiler is configured to warn-unused. A few files contain unnecessary code that results in the compiler erroring out when -Wunused* options are used. Comment out the code until such time as it is needed.

Re: [libvirt] [PATCH 1/2] security: Resolve Coverity RESOURCE_LEAK

2015-02-14 Thread Pavel Hrdina
On Fri, Feb 13, 2015 at 03:21:39PM -0500, John Ferlan wrote: Introduced by commit id 'c3d9d3bb' - return from virSecurityManagerCheckModel wasn't VIR_FREE()'ing the virSecurityManagerGetNested allocated memory. Signed-off-by: John Ferlan jfer...@redhat.com ---

Re: [libvirt] Tunnelled post-copy live migration - support of bidirectional communication over the tunnel

2015-02-14 Thread Vojtech Cima
On 15 Jan 2015, at 14:56, Daniel P. Berrange berra...@redhat.com wrote: On Thu, Jan 15, 2015 at 02:45:13PM +0100, Vojtech Cima wrote: Hello everyone, we are very interested about the post-copy live migration mechanism in libvirt [1] using QEMU. Mentioning post-copy in this context means

Re: [libvirt] [PATCH 3/3] Add fsfreeze fsthaw test case to linux_domain

2015-02-14 Thread hongming
On 02/04/2015 05:26 PM, Jincheng Miao wrote: Signed-off-by: Jincheng Miao jm...@redhat.com --- cases/linux_domain.conf | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/cases/linux_domain.conf b/cases/linux_domain.conf index 515858a..37d 100644

[libvirt] [PATCH 4/4] PowerPC : Do not allow floppy disks in domain XML.

2015-02-14 Thread Prerna Saxena
Subject: [PATCH 4/4] PowerPC : Do not allow floppy disks in domain XML. PowerKVM does not support floppy disks. Ensure that libvirt honours this. Fixes : https://bugzilla.redhat.com/show_bug.cgi?id=1180486 Signed-off-by: Prerna Saxena pre...@linux.vnet.ibm.com --- src/conf/domain_conf.c | 8

[libvirt] [PATCH 1/4] PowerPC : Make 'qemu-system-ppc64' the default emulator on ppc64[le].

2015-02-14 Thread Prerna Saxena
PowerPC : Explicitly associate 'qemu-system-ppc64' as the default emulator for all 64-bit PowerPC guests ( both Big Little Endian ) Signed-off-by: Prerna Saxena pre...@linux.vnet.ibm.com --- src/qemu/qemu_capabilities.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git