[libvirt] [RFC PATCH v1 0/4] Add cpu hotplug support to libvirt.

2012-09-03 Thread Tang Chen
It seems that libvirt is not cpu hotplug aware. Please refer to the following problem. 1. At first, we have 2 cpus. # cat /cgroup/cpuset/cpuset.cpus 0-1 # cat /cgroup/cpuset/libvirt/qemu/cpuset.cpus 0-1 2. And we have a vm1 with following configuration. cputune vcpupin vcpu='0'

[libvirt] [RFC PATCH v1 3/4] Register cpu hotplug netlink handler for qemu driver.

2012-09-03 Thread Tang Chen
Signed-off-by: Tang Chen tangc...@cn.fujitsu.com --- src/qemu/qemu_driver.c |8 1 file changed, 8 insertions(+) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 64c407d..509cdd7 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -92,6 +92,7 @@

[libvirt] [RFC PATCH v1 4/4] Register cpu hotplug netlink handler for lxc driver.

2012-09-03 Thread Tang Chen
Signed-off-by: Tang Chen tangc...@cn.fujitsu.com --- src/lxc/lxc_driver.c |8 1 file changed, 8 insertions(+) diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c index ff11c2c..45f6cc0 100644 --- a/src/lxc/lxc_driver.c +++ b/src/lxc/lxc_driver.c @@ -63,6 +63,7 @@ #include

[libvirt] [RFC PATCH v1 2/4] Register cpu hotplug netlink handler for libvirtd.

2012-09-03 Thread Tang Chen
Signed-off-by: Tang Chen tangc...@cn.fujitsu.com --- daemon/libvirtd.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/daemon/libvirtd.c b/daemon/libvirtd.c index 19dd26b..e71cd79 100644 --- a/daemon/libvirtd.c +++ b/daemon/libvirtd.c @@ -56,6 +56,8 @@ #include uuid.h

[libvirt] [RFC PATCH v1 1/4] Add cpu hotplug handler for netlink service.

2012-09-03 Thread Tang Chen
This patch adds a callback for cpu hotplug event. The cpu hotplug netlink message is of the following format: {online|offline}@/devices/system/cpu/cpuxx (xx is cpuid) When a cpu online message is received, the callback will get the new added cpuid from the message, and adds it to the

[libvirt] [PATCH V4] implement offline migration

2012-09-03 Thread liguang
allow migration even domain isn't active by inserting some stubs to tunnel migration path. Signed-off-by: liguang lig.f...@cn.fujitsu.com --- src/qemu/qemu_driver.c|2 +- src/qemu/qemu_migration.c | 181 +++-- src/qemu/qemu_migration.h |3 +-

Re: [libvirt] Heads up 0.10.1 release on Friday

2012-09-03 Thread Guido Günther
On Fri, Aug 31, 2012 at 02:36:07PM +0800, Daniel Veillard wrote: On Thu, Aug 30, 2012 at 08:44:57PM +0200, Guido Günther wrote: On Wed, Aug 29, 2012 at 11:19:42PM +0800, Daniel Veillard wrote: I was a bit afraid of the .0 effect on release name, but we really have a number of problem

Re: [libvirt] [PATCH v4 1/3] Add per-guest S3/S4 state configuration

2012-09-03 Thread Martin Kletzander
On 08/31/2012 07:42 PM, Eric Blake wrote: On 08/31/2012 07:59 AM, Martin Kletzander wrote: There is a new pm/ element implemented that can control what ACPI sleeping states will be advertised by BIOS and allowed to be switched to by libvirt. The default keeps defaults on hypervisor, otherwise

Re: [libvirt] [PATCH v4 3/3] tests: Add tests for qemu S3/S4 state configuration

2012-09-03 Thread Martin Kletzander
On 08/31/2012 08:01 PM, Eric Blake wrote: On 08/31/2012 07:59 AM, Martin Kletzander wrote: Few tests were added which are checking whether the parsing of the xml and command-line arguments is working and compatible with each other. --- tests/qemuargv2xmltest.c | 3

Re: [libvirt] [PATCH v4 2/3] qemu: Add support for S3/S4 state configuration

2012-09-03 Thread Martin Kletzander
On 08/31/2012 07:49 PM, Eric Blake wrote: On 08/31/2012 07:59 AM, Martin Kletzander wrote: This patch adds support for running qemu guests with the required parameters to forcefully enable or disable BIOS advertising of S3 and S4 states. The support for this is added to capabilities and there

Re: [libvirt] Heads up 0.10.1 release on Friday

2012-09-03 Thread Daniel Veillard
On Mon, Sep 03, 2012 at 08:37:13AM +0200, Guido Günther wrote: On Fri, Aug 31, 2012 at 02:36:07PM +0800, Daniel Veillard wrote: On Thu, Aug 30, 2012 at 08:44:57PM +0200, Guido Günther wrote: On Wed, Aug 29, 2012 at 11:19:42PM +0800, Daniel Veillard wrote: I was a bit afraid of the .0

Re: [libvirt] [RFC PATCH v1 0/4] Add cpu hotplug support to libvirt.

2012-09-03 Thread Viktor Mihajlovski
On 09/03/2012 08:06 AM, Tang Chen wrote: It seems that libvirt is not cpu hotplug aware. Please refer to the following problem. 1. At first, we have 2 cpus. # cat /cgroup/cpuset/cpuset.cpus 0-1 # cat /cgroup/cpuset/libvirt/qemu/cpuset.cpus 0-1 2. And we have a vm1 with following configuration.

[libvirt] [PATCH] pci: Save and restore each devices/functions behind the bus

2012-09-03 Thread Osier Yang
Previously it refuses to do the secondary bus reset as long as there is(are) devices/functions behind the same bus, regardless of whether the devices/functions are being used or not. And it only save and restore the device itself's PCI config space. But later it was changed to allow the secondary

Re: [libvirt] [PATCH] pci: Read bridge control register from the bridge

2012-09-03 Thread Osier Yang
On 2012年09月01日 02:16, Eric Blake wrote: On 08/31/2012 07:17 AM, Osier Yang wrote: Though I don't quite understand it well enough, but it looks wrong to read the control register from the device, and then write to its parent twice, while doing the secondary bus reset. --- src/util/pci.c |2

Re: [libvirt] [RFC PATCH v1 0/4] Add cpu hotplug support to libvirt.

2012-09-03 Thread Tang Chen
On 09/03/2012 04:42 PM, Viktor Mihajlovski wrote: Hi, this approach requires that libvirtd keeps running through the entire lifecycle of a guest. That is something that cannot be safely assumed and therefore hotplug events can be missed. That means that libvirt must synchronize the hypervisors

Re: [libvirt] [PATCH 2/4 v2] conf: Parse and format disk wwn

2012-09-03 Thread Osier Yang
On 2012年08月31日 22:37, Eric Blake wrote: On 08/31/2012 04:10 AM, Osier Yang wrote: Validates the wwn while parsing, error out if it's malformed. * src/util/util.h: Declare virValidateWWN * src/util/util.c: Implement virValidateWWN * src/libvirt_private.syms: Export virValidateWWN. *

[libvirt] [PATCH v3] conf: Parse and format disk wwn

2012-09-03 Thread Osier Yang
Validates the wwn while parsing, error out if it's malformed. * src/util/util.h: Declare virValidateWWN * src/util/util.c: Implement virValidateWWN * src/libvirt_private.syms: Export virValidateWWN. * src/conf/domain_conf.h: New member 'wwn' for disk def. * src/conf/domain_conf.c: Parse and

Re: [libvirt] [libvirt-perl PATCH] Fix several APIs

2012-09-03 Thread Osier Yang
On 2012年08月29日 14:44, Daniel P. Berrange wrote: On Wed, Aug 29, 2012 at 01:29:37AM -0400, Alex Jia wrote: ACK. -- Regards, Alex - Original Message - From: Osier Yangjy...@redhat.com To: libvir-list@redhat.com Sent: Tuesday, August 28, 2012 11:52:24 PM Subject: [libvirt] [libvirt-perl

Re: [libvirt] [libvirt-tck PATCH] New test to test numa parameters tuning APIs

2012-09-03 Thread Osier Yang
On 2012年08月29日 16:15, Guannan Ren wrote: On 08/29/2012 12:01 AM, Osier Yang wrote: To make sure the domain config is not broken after the API calls. --- This depends on https://www.redhat.com/archives/libvir-list/2012-August/msg01792.html --- scripts/domain/202-numa-set-parameters.t | 99

[libvirt] about open vswitch supporting?

2012-09-03 Thread yue wang
Hi: i used to use linux bridge and specify interfaces by 'Generic ethernet connection' mode,after reading this page: http://libvirt.org/formatdomain.html#elementsNICS i am not sure if i need to change to another mode(eg:'virtual network') to specify interfaces when switching linux bridge to open

[libvirt] [PATCH v0] qemu: Add sandbox support.

2012-09-03 Thread Ján Tomko
QEMU (since 1.2-rc0) supports setting up a syscall whitelist through libseccomp on linux kernel from 3.5-rc1. This is enabled by specifying -sandbox on on qemu command line. This patch detects this capability by searching for -sandbox in qemu help output and runs qemu with -sandbox on if sandbox

[libvirt] Fwd: Compiling a simple code which include libvirt

2012-09-03 Thread Rahul Bansal
I ran 'sudo make install' in /path/to/libvirt. But same error is coming. Maybe following will be helpful: - I extracted the libvirt.0.10.1 in ~/Downloads - And I am running the code in ~/Downloads/libvirt-0.10.1 - I ran 'sudo make install' in the above directory. On 2 September 2012 16:24,

Re: [libvirt] Fwd: Compiling a simple code which include libvirt

2012-09-03 Thread Eric Blake
On 09/03/2012 06:39 AM, Rahul Bansal wrote: [Please don't top-post on technical lists.] I ran 'sudo make install' in /path/to/libvirt. But same error is coming. Maybe following will be helpful: - I extracted the libvirt.0.10.1 in ~/Downloads - And I am running the code in

[libvirt] [PATCH] qemu: Don't update graphic definitions on password change failure

2012-09-03 Thread Peter Krempa
When the password change failed we updated the graphic definition anyways, which is not desired. --- src/qemu/qemu_hotplug.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c index 1251d6b..a8a904c 100644 --- a/src/qemu/qemu_hotplug.c +++

[libvirt] make check failure

2012-09-03 Thread Shradha Shah
Hello All, I wanted to ask a question regarding the tests that are run during make check. If a particular test fails when running make check, how do we which test failed and why? Is there a log that helps when debugging such errors? -- Many Thanks, Regards, Shradha Shah -- libvir-list

[libvirt] None seclabel question

2012-09-03 Thread Marcelo Cerri
Hi, I was discussing with Jiri Denemark about the current behavior of none seclabels with multiple security drivers and I'd like to hear more opinions about how this should work. Currently, a none security label can be defined specifically to each enabled security driver. For example, using

Re: [libvirt] make check failure

2012-09-03 Thread Laine Stump
On 09/03/2012 11:52 AM, Shradha Shah wrote: Hello All, I wanted to ask a question regarding the tests that are run during make check. If a particular test fails when running make check, how do we which test failed and why? The test(s) that failed can be found by searching through the make

Re: [libvirt] [PATCH v0] qemu: Add sandbox support.

2012-09-03 Thread Doug Goldstein
On Mon, Sep 3, 2012 at 7:03 AM, Ján Tomko jto...@redhat.com wrote: QEMU (since 1.2-rc0) supports setting up a syscall whitelist through libseccomp on linux kernel from 3.5-rc1. This is enabled by specifying -sandbox on on qemu command line. snip There's a big push to not rely on -help

[libvirt] [PATCH 2/4] Fixup some headers in virnetdevbridge.c, needed for OpenBSD.

2012-09-03 Thread Jasper Lievisse Adriaanse
--- src/util/virnetdevbridge.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/util/virnetdevbridge.c b/src/util/virnetdevbridge.c index 7b11bee..8559223 100644 --- a/src/util/virnetdevbridge.c +++ b/src/util/virnetdevbridge.c @@ -30,6 +30,15 @@ #include

[libvirt] [PATCH 0/4] Initial OpenBSD support

2012-09-03 Thread Jasper Lievisse Adriaanse
Hi, Here are some patches to get libvirt building on OpenBSD. I tested basic functionality with virt-manager though there appear to be some rough edges to fix/polish (could also be in virt-manager). At least basic libvirt usage should work on OpenBSD now. Jasper Lievisse Adriaanse (4):

[libvirt] [PATCH 1/4] Define DYNLIB_NAME on OpenBSD.

2012-09-03 Thread Jasper Lievisse Adriaanse
--- src/vbox/vbox_XPCOMCGlue.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/vbox/vbox_XPCOMCGlue.c b/src/vbox/vbox_XPCOMCGlue.c index e7e9c37..63470ae 100644 --- a/src/vbox/vbox_XPCOMCGlue.c +++ b/src/vbox/vbox_XPCOMCGlue.c @@ -48,7 +48,7 @@

[libvirt] [PATCH 3/4] Check for sys/ucred.h and adjust virnetsocket.c for OpenBSD compilation.

2012-09-03 Thread Jasper Lievisse Adriaanse
--- configure.ac |2 +- src/rpc/virnetsocket.c | 10 ++ 2 files changed, 11 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index e0d00d5..7ba1e9c 100644 --- a/configure.ac +++ b/configure.ac @@ -197,7 +197,7 @@ dnl Availability of various common

[libvirt] [PATCH 4/4] There's no librt on OpenBSD.

2012-09-03 Thread Jasper Lievisse Adriaanse
--- configure.ac |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index 7ba1e9c..701ab50 100644 --- a/configure.ac +++ b/configure.ac @@ -188,7 +188,13 @@ RT_LIBS= LIBS=$LIBS $LIB_PTHREAD -lrt AC_CHECK_FUNC([clock_gettime],[