Re: [libvirt] about open vswitch supporting?

2012-09-04 Thread yue wang
it seems the 'generic ethernet connection' network doesn't have the 'virtualport ' element, so there is no way to associate it with an interface's uuid. are there any workaround? On Mon, Sep 3, 2012 at 6:41 PM, yue wang heuye.w...@gmail.com wrote: Hi: i used to use linux bridge and specify

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

2012-09-04 Thread Michal Privoznik
On 03.09.2012 17:07, Peter Krempa wrote: 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(+) ACK Michal -- libvir-list mailing list libvir-list@redhat.com

Re: [libvirt] make check failure

2012-09-04 Thread Michal Privoznik
On 03.09.2012 20:49, Laine Stump wrote: 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

[libvirt] Problen in cloning of thin LVM

2012-09-04 Thread Pankaj Rawat
Hi all, I have create a Thin lvm and installed a guest os on it, Now when i cloned that lvm using virt-clone # virt-clone --prompt --force --original lvm_thin1 --name lvm_thin2 --file /dev/volgrp/lvm_thin2 The cloned Disk lvm_thin2 size is fully expanded , But I want a thin Lvm cloned

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

2012-09-04 Thread Peter Krempa
On 09/04/12 09:03, Michal Privoznik wrote: On 03.09.2012 17:07, Peter Krempa wrote: 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(+) ACK Pushed. Thanks! Peter --

Re: [libvirt] VM Migration with IEEE802.1Qbh and IEEE802.1Qbg

2012-09-04 Thread Martin Kletzander
On 09/02/2012 01:53 PM, Jagath Weerasinghe wrote: Hi All, Can a VM connected as IEEE802.1Qbh be migrated to a destination host as it were connected as IEEE802.1Qbg? What I wanted to know is, is it possible to change the configuration from IEEE802.1Qbh to IEEE802.1Qbg on the fly? IIUC,

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

2012-09-04 Thread Tang Chen
This patch sets cpuset.cpus to the lastest value for lxc driver when the driver is being initialized, and registers 2 cpu hotplug handlers for lxc driver: - lxcNetlinkCpuHotplugHandleCallback() - lxcNetlinkCpuHotplugRemoveCallback() Signed-off-by: Tang Chen tangc...@cn.fujitsu.com ---

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

2012-09-04 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] [PATCH v2 1/4] Add helpers to support cpu hotplug in libvirt.

2012-09-04 Thread Tang Chen
This patch adds some helpers to support cpu hotplug in libvirt. virHotplugGetCpuidFromMsg(): Get cpuid from cpu hotplug netlink message. The message is of the following format: {online|offline}@/devices/system/cpu/cpuxx (xx is cpuid) virHotplugUpdateCgroupCpuset(): Update the

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

2012-09-04 Thread Tang Chen
This patch sets cpuset.cpus to lastest for qemu driver when the driver is being initialized, and then registers 2 cpu hotplug events handlers for qemu driver: - qemuNetlinkCpuHotplugHandleCallback() - qemuNetlinkCpuHotplugRemoveCallback() Signed-off-by: Tang Chen tangc...@cn.fujitsu.com

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

2012-09-04 Thread Tang Chen
This patch first sets cpuset.cpus to lastest value for libvirtd, and then registers 2 callback for cpu hotplug event for libvirtd: - daemonNetlinkCpuHotplugHandleCallback() - daemonNetlinkCpuHotplugRemoveCallback() Signed-off-by: Tang Chen tangc...@cn.fujitsu.com --- daemon/libvirtd.c

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

2012-09-04 Thread Daniel P. Berrange
On Mon, Sep 03, 2012 at 06:29:47PM +0800, Osier Yang wrote: 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:

Re: [libvirt] None seclabel question

2012-09-04 Thread Daniel P. Berrange
On Mon, Sep 03, 2012 at 12:57:50PM -0300, Marcelo Cerri wrote: 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

Re: [libvirt] None seclabel question

2012-09-04 Thread Jiri Denemark
On Tue, Sep 04, 2012 at 10:22:56 +0100, Daniel P. Berrange wrote: On Mon, Sep 03, 2012 at 12:57:50PM -0300, Marcelo Cerri wrote: 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

Re: [libvirt] None seclabel question

2012-09-04 Thread Daniel P. Berrange
On Tue, Sep 04, 2012 at 11:28:19AM +0200, Jiri Denemark wrote: On Tue, Sep 04, 2012 at 10:22:56 +0100, Daniel P. Berrange wrote: On Mon, Sep 03, 2012 at 12:57:50PM -0300, Marcelo Cerri wrote: Hi, I was discussing with Jiri Denemark about the current behavior of none seclabels with

[libvirt] error: Failed to start pool (already mounted)

2012-09-04 Thread Ragnar Skúlason
Hi everyone, I'm not sure if this belongs here, I sent a question to the users list yesterday without getting a response, so I'm trying here. I have storage-pool that for some reason became inactive (possibly due to an error with pool-refresh in an old version of a Java API binding). I want to

Re: [libvirt] None seclabel question

2012-09-04 Thread Jiri Denemark
On Tue, Sep 04, 2012 at 10:31:54 +0100, Daniel P. Berrange wrote: On Tue, Sep 04, 2012 at 11:28:19AM +0200, Jiri Denemark wrote: On Tue, Sep 04, 2012 at 10:22:56 +0100, Daniel P. Berrange wrote: On Mon, Sep 03, 2012 at 12:57:50PM -0300, Marcelo Cerri wrote: So, my question is:

Re: [libvirt] None seclabel question

2012-09-04 Thread Daniel P. Berrange
On Tue, Sep 04, 2012 at 12:00:33PM +0200, Jiri Denemark wrote: On Tue, Sep 04, 2012 at 10:31:54 +0100, Daniel P. Berrange wrote: On Tue, Sep 04, 2012 at 11:28:19AM +0200, Jiri Denemark wrote: On Tue, Sep 04, 2012 at 10:22:56 +0100, Daniel P. Berrange wrote: On Mon, Sep 03, 2012 at

Re: [libvirt] [PATCH V4] implement offline migration

2012-09-04 Thread Daniel P. Berrange
On Mon, Sep 03, 2012 at 02:23:24PM +0800, liguang wrote: 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

[libvirt] [PATCH] qemu: Fix reboot with guest agent

2012-09-04 Thread Jiri Denemark
When reboot using qemu guest agent was requested, qemu driver kept waiting for SHUTDOWN event from qemu. However, such event is never emitted during guest reboot and qemu driver would keep waiting forever. --- src/qemu/qemu_agent.c | 5 - src/qemu/qemu_agent.h | 3 ++-

Re: [libvirt] error: Failed to start pool (already mounted)

2012-09-04 Thread Ragnar Skúlason
Hi, We found the problem, and the solution as well. The problem was that there was inconsistency in the gluster storage volume which was underneath the libvirt storage pool. One file in multiple locations with different sizes. After this fixing those inconsistencies pool-start worked correctly.

Re: [libvirt] [PATCH] qemu: Fix reboot with guest agent

2012-09-04 Thread Michal Privoznik
On 04.09.2012 13:14, Jiri Denemark wrote: When reboot using qemu guest agent was requested, qemu driver kept waiting for SHUTDOWN event from qemu. However, such event is never emitted during guest reboot and qemu driver would keep waiting forever. --- src/qemu/qemu_agent.c | 5 -

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

2012-09-04 Thread Eric Blake
On 09/03/2012 03:07 PM, Doug Goldstein wrote: 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

[libvirt] Compile libvirt on Solaris

2012-09-04 Thread Yang Zhou (yangzho)
Hi Experts, I am compiling libvirt 0.9.9 on Solaris 9. But got following errors when run ./configure --with-esx --with-qemu --- checking for library containing dlopen... -ldl checking for

[libvirt] NFS over RDMA small block DIRECT_IO bug

2012-09-04 Thread Andrew Holway
Hello. # Avi Kivity avi(a)redhat recommended I copy kvm in on this. It would also seem relevent to libvirt. # I have a Centos 6.2 server and Centos 6.2 client. [root@store ~]# cat /etc/exports /dev/shm 10.149.0.0/16(rw,fsid=1,no_root_squash,insecure)(I have

Re: [libvirt] None seclabel question

2012-09-04 Thread Jiri Denemark
On Tue, Sep 04, 2012 at 11:14:35 +0100, Daniel P. Berrange wrote: On Tue, Sep 04, 2012 at 12:00:33PM +0200, Jiri Denemark wrote: I don't think that description of existing behaviour is accurate. With old libvirt you have one seclabel (for SELinux/AppArmour), but secretly there are 2 security

Re: [libvirt] None seclabel question

2012-09-04 Thread Daniel P. Berrange
On Tue, Sep 04, 2012 at 01:43:43PM +0200, Jiri Denemark wrote: On Tue, Sep 04, 2012 at 11:14:35 +0100, Daniel P. Berrange wrote: On Tue, Sep 04, 2012 at 12:00:33PM +0200, Jiri Denemark wrote: I don't think that description of existing behaviour is accurate. With old libvirt you have one

Re: [libvirt] [PATCH 1/2] conf: Support for Block Device IO Limits

2012-09-04 Thread Viktor Mihajlovski
On 08/31/2012 03:33 PM, Viktor Mihajlovski wrote: On 08/30/2012 07:37 PM, Daniel P. Berrange wrote: How about using this: blockio logical_size='512' physical_size='4096'/ Regards, Daniel That is perfectly fine with me. Any other suggestions for a v2 patch? Hi Daniel, since the

Re: [libvirt] [PATCH 1/2] conf: Support for Block Device IO Limits

2012-09-04 Thread Daniel P. Berrange
On Tue, Sep 04, 2012 at 01:57:00PM +0200, Viktor Mihajlovski wrote: On 08/31/2012 03:33 PM, Viktor Mihajlovski wrote: On 08/30/2012 07:37 PM, Daniel P. Berrange wrote: How about using this: blockio logical_size='512' physical_size='4096'/ Regards, Daniel That is perfectly fine

Re: [libvirt] NFS over RDMA small block DIRECT_IO bug

2012-09-04 Thread Myklebust, Trond
On Tue, 2012-09-04 at 11:31 +0200, Andrew Holway wrote: Hello. # Avi Kivity avi(a)redhat recommended I copy kvm in on this. It would also seem relevent to libvirt. # I have a Centos 6.2 server and Centos 6.2 client. [root@store ~]# cat /etc/exports /dev/shm

Re: [libvirt] [PATCH] nwfilter: drop use of awk

2012-09-04 Thread Daniel Veillard
On Fri, Aug 31, 2012 at 03:56:58PM -0700, Eric Blake wrote: Commit 2a41bc9 dropped a dependency on gawk, but we can go one step further and avoid awk altogether. * src/nwfilter/nwfilter_ebiptables_driver.c (iptablesLinkIPTablesBaseChain): Simplify command. (ebiptablesDriverInit,

Re: [libvirt] None seclabel question

2012-09-04 Thread Jiri Denemark
On Tue, Sep 04, 2012 at 12:50:55 +0100, Daniel P. Berrange wrote: When I think of upgrade issues, i consider the scenario where the new libvirt is configured in the same way as the old livirt, and we need to make sure the guest behaviour remains the same. This scenario you describe obviously

Re: [libvirt] [PATCH] qemu: Fix reboot with guest agent

2012-09-04 Thread Jiri Denemark
On Tue, Sep 04, 2012 at 13:46:05 +0200, Michal Privoznik wrote: On 04.09.2012 13:14, Jiri Denemark wrote: When reboot using qemu guest agent was requested, qemu driver kept waiting for SHUTDOWN event from qemu. However, such event is never emitted during guest reboot and qemu driver would

[libvirt] [libvirt-glib 2/4] config: Improve documentation of GVirConfigDomain::set_memory

2012-09-04 Thread Christophe Fergeau
Explicit the fact that it sets the maximum domain memory. --- libvirt-gconfig/libvirt-gconfig-domain.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libvirt-gconfig/libvirt-gconfig-domain.c b/libvirt-gconfig/libvirt-gconfig-domain.c index 2ca478f..e6f22bd 100644 ---

[libvirt] [libvirt-glib 1/4] config: Allow NULL node name to gvir_config_object_set_content

2012-09-04 Thread Christophe Fergeau
This is useful when you want to set the content of the current node. --- libvirt-gconfig/libvirt-gconfig-object.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libvirt-gconfig/libvirt-gconfig-object.c b/libvirt-gconfig/libvirt-gconfig-object.c index

[libvirt] [libvirt-glib 3/4] config: Handle units in gvir_config_[gs]et_memory

2012-09-04 Thread Christophe Fergeau
gvir_config_[gs]et_memory have an optional 'unit' attribute which indicates the unit used to express the memory size. This commit adds support for parsing this unit, and adjusting the returned value accordingly. --- libvirt-gconfig/libvirt-gconfig-domain.c | 81 ++-- 1

[libvirt] [libvirt-glib 4/4] config: Add gvir_config_domain_[gs]et_current_memory

2012-09-04 Thread Christophe Fergeau
libvirt will insert a currentMemory node when setting the domain maximum memory. If we want to be able to later increase the domain maximum memory, libvirt-gconfig needs to be able to set this currentMemory node as well, otherwise this will cap the available memory in the domain. ---

Re: [libvirt] NFS over RDMA small block DIRECT_IO bug

2012-09-04 Thread Andrew Holway
That is expected behaviour. DIRECT_IO over RDMA needs to be page aligned so that it can use the more efficient RDMA READ and RDMA WRITE memory semantics (instead of the SEND/RECEIVE channel semantics). Yes, I think I am understanding that now. I need to find a way of getting around the

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

2012-09-04 Thread Daniel P. Berrange
On Tue, Sep 04, 2012 at 04:45:16PM +0800, 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

[libvirt] [PATCH 2/2] qemu: Add range checking for scheduler tunables

2012-09-04 Thread Peter Krempa
The quota and period tunables for cpu scheduler accept only a certain range of values. When changing the live configuration invalid values get rejected. This check is not performed when changing persistent config. This patch adds a separate range check, that improves error messages when changing

[libvirt] [PATCH 1/2] qemu: clean up qemuSetSchedulerParametersFlags()

2012-09-04 Thread Peter Krempa
This patch tries to clean the code up a little bit and shorten very long lines. --- src/qemu/qemu_driver.c | 69 +++--- 1 file changed, 31 insertions(+), 38 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index

[libvirt] [PATCH 0/2] Add range checking for scheduler tunables

2012-09-04 Thread Peter Krempa
Peter Krempa (2): qemu: clean up qemuSetSchedulerParametersFlags() qemu: Add range checking for scheduler tunables src/qemu/qemu_driver.c | 96 ++ 1 file changed, 58 insertions(+), 38 deletions(-) -- 1.7.12 -- libvir-list mailing list

[libvirt] [PATCH] conf: describe security_driver behavior

2012-09-04 Thread Martin Kletzander
As a request was raised for this, I added few lines in the Notes part of the security_driver comments about allowed values. --- The related bug for this patch is here: https://bugzilla.redhat.com/show_bug.cgi?id=853925 src/qemu/qemu.conf | 5 - 1 file changed, 4 insertions(+), 1 deletion(-)

[libvirt] [PATCH] docs: correct dompmwakeup description

2012-09-04 Thread Martin Kletzander
The command 'dompmwakeup' can wakeup any pmsuspended domain, not only domains suspended previously by dompmsuspend and this patch fixed the man page and help string for that. --- tools/virsh-domain.c | 6 +++--- tools/virsh.pod | 7 --- 2 files changed, 7 insertions(+), 6 deletions(-)

[libvirt] [PATCH] qemu: don't pin all the cpus

2012-09-04 Thread Martin Kletzander
This is another fix for the emulator-pin series. When going through the cputune pinning settings, the current code is trying to pin all the CPUs, even when not all of them are specified. This causes error in the subsequent function which, of course, cannot find the cpu to pin. Since it's enough to

[libvirt] [PATCH] Rename iolimit to blockio.

2012-09-04 Thread Viktor Mihajlovski
After discussion with DB we decided to rename the new iolimit element as it creates the impression it would be there to limit (i.e. throttle) I/O instead of specifying immutable characteristics of a block device. This is also backed by the fact that the term I/O Limits has vanished from newer

Re: [libvirt] [PATCH 1/2] qemu: clean up qemuSetSchedulerParametersFlags()

2012-09-04 Thread Eric Blake
On 09/04/2012 08:12 AM, Peter Krempa wrote: This patch tries to clean the code up a little bit and shorten very long lines. --- src/qemu/qemu_driver.c | 69 +++--- 1 file changed, 31 insertions(+), 38 deletions(-) diff --git

[libvirt] [PATCH] Pass a correct pointer type to localtime_r(3).

2012-09-04 Thread Jasper Lievisse Adriaanse
From b53dc971cc50b5ac397e4568449d25041477c8d6 Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse jas...@humppa.nl Date: Tue, 4 Sep 2012 16:47:26 +0200 Subject: [PATCH] Pass a correct pointer type to localtime_r(3). Fixes a warning: warning: passing argument 1 of 'localtime_r' from

Re: [libvirt] [PATCH] conf: describe security_driver behavior

2012-09-04 Thread Eric Blake
On 09/04/2012 08:23 AM, Martin Kletzander wrote: As a request was raised for this, I added few lines in the Notes part of the security_driver comments about allowed values. --- The related bug for this patch is here: https://bugzilla.redhat.com/show_bug.cgi?id=853925 src/qemu/qemu.conf |

[libvirt] [PATCH] Define DYNLIB_NAME on OpenBSD.

2012-09-04 Thread Jasper Lievisse Adriaanse
From 05dd99030d865127c874d1b489b9c17412bdbb3b Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse jas...@humppa.nl Date: Tue, 4 Sep 2012 16:48:51 +0200 Subject: [PATCH] Define DYNLIB_NAME on OpenBSD. --- src/vbox/vbox_XPCOMCGlue.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

Re: [libvirt] [PATCH] docs: correct dompmwakeup description

2012-09-04 Thread Eric Blake
On 09/04/2012 08:23 AM, Martin Kletzander wrote: The command 'dompmwakeup' can wakeup any pmsuspended domain, not only domains suspended previously by dompmsuspend and this patch fixed the man page and help string for that. --- tools/virsh-domain.c | 6 +++--- tools/virsh.pod | 7

Re: [libvirt] [PATCH] Rename iolimit to blockio.

2012-09-04 Thread Eric Blake
On 09/04/2012 08:30 AM, Viktor Mihajlovski wrote: After discussion with DB we decided to rename the new iolimit element as it creates the impression it would be there to limit (i.e. throttle) I/O instead of specifying immutable characteristics of a block device. This is also backed by the

Re: [libvirt] [PATCH] Pass a correct pointer type to localtime_r(3).

2012-09-04 Thread Jasper Lievisse Adriaanse
FYI, these patches and those I will send later supersede the previous patchsets I sent yesterday for fixing and making libvirt work on OpenBSD. On Tue, Sep 04, 2012 at 04:49:52PM +0200, Jasper Lievisse Adriaanse wrote: From b53dc971cc50b5ac397e4568449d25041477c8d6 Mon Sep 17 00:00:00 2001 From:

Re: [libvirt] about open vswitch supporting?

2012-09-04 Thread Laine Stump
On 09/04/2012 02:20 AM, yue wang wrote: it seems the 'generic ethernet connection' network doesn't have the 'virtualport ' element, so there is no way to associate it with an interface's uuid. are there any workaround? See the other reply I just sent (I thought I'd typed it up yesterday, but

Re: [libvirt] [PATCH 2/2] qemu: Add range checking for scheduler tunables

2012-09-04 Thread Eric Blake
On 09/04/2012 08:12 AM, Peter Krempa wrote: The quota and period tunables for cpu scheduler accept only a certain range of values. When changing the live configuration invalid values get rejected. This check is not performed when changing persistent config. This patch adds a separate range

[libvirt] [PATCH] Use sockpeercred on OpenBSD.

2012-09-04 Thread Jasper Lievisse Adriaanse
From 0f352c0577f76a64924636a8c9ba72de5862b6d6 Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse jas...@humppa.nl Date: Tue, 4 Sep 2012 16:59:55 +0200 Subject: [PATCH] Use sockpeercred on OpenBSD. --- src/rpc/virnetsocket.c |4 1 files changed, 4 insertions(+), 0 deletions(-)

[libvirt] [PATCH] Include some extra headers needed for OpenBSD.

2012-09-04 Thread Jasper Lievisse Adriaanse
From bafcb4ed2b90b5ba845ca6b61861e3caa548b16a Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse jas...@humppa.nl Date: Tue, 4 Sep 2012 16:57:09 +0200 Subject: [PATCH] Include some extra headers needed for OpenBSD. --- src/util/virnetdevbridge.c |9 + 1 files changed, 9

Re: [libvirt] [PATCH 00/45 v3] Atomic APIs to list objects

2012-09-04 Thread Peter Krempa
Now that we're after the release it would be time to get this series finished up. Could you please post a rebased version (There will be some problem probably after splitting virsh) so that we can get this wrapped up early in the devel phase. Also, I'd like to ask you to send it split by new

[libvirt] [PATCH] Don't link with -lrt on OpenBSD

2012-09-04 Thread Jasper Lievisse Adriaanse
From bdf3bce37531ec346474bc5c4f37a5d2985d1d35 Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse jas...@humppa.nl Date: Tue, 4 Sep 2012 17:03:43 +0200 Subject: [PATCH] Don't link with -lrt on OpenBSD --- configure.ac |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff

[libvirt] [PATCH] qemu: Do not require auth scheme in graphics events

2012-09-04 Thread Jiri Denemark
Only VNC_{{DIS,}CONNECTED,INITIALIZED} and SPICE_INITIALIZED events are documented to support server/auth field and even there it is marked as optional. Emit auth scheme in case QEMU didn't send it. --- src/qemu/qemu_monitor_json.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff

Re: [libvirt] about open vswitch supporting?

2012-09-04 Thread Laine Stump
On 09/03/2012 06:41 AM, yue wang wrote: Hi: i used to use linux bridge and specify interfaces by 'Generic ethernet connection' mode,after reading this page:

Re: [libvirt] [PATCH 00/45 v3] Atomic APIs to list objects

2012-09-04 Thread Osier Yang
On 2012年09月04日 23:04, Peter Krempa wrote: Now that we're after the release it would be time to get this series finished up. Could you please post a rebased version (There will be some problem probably after splitting virsh) so that we can get this wrapped up early in the devel phase. Actually

Re: [libvirt] VM Migration with IEEE802.1Qbh and IEEE802.1Qbg

2012-09-04 Thread Laine Stump
On 09/04/2012 04:29 AM, Martin Kletzander wrote: On 09/02/2012 01:53 PM, Jagath Weerasinghe wrote: Hi All, Can a VM connected as IEEE802.1Qbh be migrated to a destination host as it were connected as IEEE802.1Qbg? What I wanted to know is, is it possible to change the configuration from

Re: [libvirt] [PATCH] (updated) additional parameters needed for dnsmasq

2012-09-04 Thread Eric Blake
On 08/22/2012 11:47 AM, Eric Blake wrote: On 08/22/2012 11:39 AM, Eric Blake wrote: On 08/22/2012 10:59 AM, Gene Czarcinski wrote: As I said in a previous message, dnsmasq is forwarding a number of queries upstream that should not be done. There still remains an MX query for a plain name

[libvirt] [PATCH 02/10] list: Add helpers for listing storage pool objects

2012-09-04 Thread Osier Yang
src/conf/storage_conf.c: Add virStoragePoolMatch to filter the pools; Add virStoragePoolList to iterate over the pool objects with filter. src/conf/storage_conf.h: Declare virStoragePoolMatch, virStoragePoolList, and the macros for filters. src/libvirt_private.syms: Export helper

[libvirt] [PATCH v4 00/10] Atomic API to list storage pools

2012-09-04 Thread Osier Yang
Think the subject tells enough after 3 rounds, so ommits words here. v3 - v4: * Just rebase on the top: - Version changes - rebase after virsh split cleanups 1/10 ~ 2/10 are ACK'ed in v3, but for easy viewing, they are still posted. Osier Yang (10): list: Define new API

[libvirt] [PATCH 03/10] list: Implement the RPC calls for virConnectListAllStoragePools

2012-09-04 Thread Osier Yang
The RPC generator doesn't support returning list of object, this patch do the work manually. * daemon/remote.c: Implement the server side handler remoteDispatchConnectListAllStoragePools * src/remote/remote_driver.c: Add remote driver handler remoteConnectListAllStoragePools. *

[libvirt] [PATCH 05/10] list: Implement listAllStoragePools for test driver

2012-09-04 Thread Osier Yang
src/test/test_driver.c: Implement listAllStoragePools --- src/test/test_driver.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index aa4418a..1504251 100644 --- a/src/test/test_driver.c +++

Re: [libvirt] [PATCH] Include some extra headers needed for OpenBSD.

2012-09-04 Thread Eric Blake
On 09/04/2012 08:57 AM, Jasper Lievisse Adriaanse wrote: From bafcb4ed2b90b5ba845ca6b61861e3caa548b16a Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse jas...@humppa.nl Date: Tue, 4 Sep 2012 16:57:09 +0200 Subject: [PATCH] Include some extra headers needed for OpenBSD. ---

[libvirt] [PATCH 04/10] list: Implement listAllStoragePools for storage driver

2012-09-04 Thread Osier Yang
src/storage/storage_driver.c: Implement listAllStoragePools. --- src/storage/storage_driver.c | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c index 3dc66db..4f99eb9 100644 ---

[libvirt] [PATCH 08/10] list: Change MATCH for common use in virsh

2012-09-04 Thread Osier Yang
Move definition of MATCH from virsh-domain-monitor.c into virsh.h for further use. --- tools/virsh-domain-monitor.c |2 -- tools/virsh.h|2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/virsh-domain-monitor.c b/tools/virsh-domain-monitor.c index

[libvirt] [PATCH 01/10] list: Define new API virStorageListAllStoragePools

2012-09-04 Thread Osier Yang
This introduces a new API to list the storage pool objects, 4 groups of flags are provided to filter the returned pools: * Active or not * Autostarting or not * Persistent or not * And the pool type. include/libvirt/libvirt.h.in: New enum virConnectListAllStoragePoolFlags;

[libvirt] [PATCH 09/10] list: Use virConnectListAllStoragePools in virsh

2012-09-04 Thread Osier Yang
tools/virsh-pool.c: * vshStoragePoolSorter to sort the pool list by pool name. * struct vshStoragePoolList to present the pool list, pool info is collected by list-poolinfo if 'details' is specified by user. * vshStoragePoolListFree to free the pool list *

[libvirt] [PATCH 06/10] list: Add helper to convert strings separated by ', ' to array

2012-09-04 Thread Osier Yang
tools/virsh.c: New helper function vshStringToArray. tools/virsh.h: Declare vshStringToArray. tools/virsh-domain.c: use the helper in cmdUndefine. --- tools/virsh-domain.c | 19 ++- tools/virsh.c| 44 tools/virsh.h|

[libvirt] [PATCH 07/10] virsh: Fix the wrong doc for pool-list

2012-09-04 Thread Osier Yang
The storage pool's management doesn't relate with a domain, it probably was an intention, but not achieved yet. And the fact is only active pools are listed by default. --- tools/virsh.pod |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/virsh.pod

Re: [libvirt] [PATCH] Pass a correct pointer type to localtime_r(3).

2012-09-04 Thread Eric Blake
[adding bug-gnulib] On 09/04/2012 08:49 AM, Jasper Lievisse Adriaanse wrote: From b53dc971cc50b5ac397e4568449d25041477c8d6 Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse jas...@humppa.nl Date: Tue, 4 Sep 2012 16:47:26 +0200 Subject: [PATCH] Pass a correct pointer type to

[libvirt] [PATCH 10/10] python: Expose virStorageListAllStoragePools to python binding

2012-09-04 Thread Osier Yang
The implementation is done manually as the generator does not support wrapping lists of C pointers into Python objects. python/libvirt-override-api.xml: Document python/libvirt-override-virConnect.py: Add listAllStoragePools python/libvirt-override.c: Implementation for the wrapper. ---

Re: [libvirt] [PATCH] Don't link with -lrt on OpenBSD

2012-09-04 Thread Eric Blake
On 09/04/2012 09:04 AM, Jasper Lievisse Adriaanse wrote: From bdf3bce37531ec346474bc5c4f37a5d2985d1d35 Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse jas...@humppa.nl Date: Tue, 4 Sep 2012 17:03:43 +0200 Subject: [PATCH] Don't link with -lrt on OpenBSD --- configure.ac |8

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

2012-09-04 Thread Rahul Bansal
On 3 September 2012 20:05, Eric Blake ebl...@redhat.com wrote: 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

Re: [libvirt] [PATCH] Use sockpeercred on OpenBSD.

2012-09-04 Thread Eric Blake
On 09/04/2012 09:00 AM, Jasper Lievisse Adriaanse wrote: From 0f352c0577f76a64924636a8c9ba72de5862b6d6 Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse jas...@humppa.nl Date: Tue, 4 Sep 2012 16:59:55 +0200 Subject: [PATCH] Use sockpeercred on OpenBSD. --- src/rpc/virnetsocket.c |

[libvirt] [PATCH 6/6] list: Expose virStoragePoolListAllVolumes to Python binding

2012-09-04 Thread Osier Yang
The implementation is done manually as the generator does not support wrapping lists of C pointers into Python objects. python/libvirt-override-api.xml: Document python/libvirt-override-virStoragePool.py: * New file, includes implementation of listAllVolumes. python/libvirt-override.c:

[libvirt] [PATCH 2/6] list: Implemente RPC calls for virStoragePoolListAllVolumes

2012-09-04 Thread Osier Yang
The RPC generator doesn't returning support list of object, this patch do the work manually. * daemon/remote.c: Implemente the server side handler remoteDispatchStoragePoolListAllVolumes * src/remote/remote_driver.c: Add remote driver handler remoteStoragePoolListAllVolumes *

[libvirt] [PATCH 4/6] list: Implement virStoragePoolListAllVolumes for test driver

2012-09-04 Thread Osier Yang
src/test/test_driver.c: Implement poolListAllVolumes. --- src/test/test_driver.c | 67 1 files changed, 67 insertions(+), 0 deletions(-) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 1504251..8d93129 100644 ---

[libvirt] [PATCH 3/6] list: Implement virStoragePoolListAllVolumes for storage driver

2012-09-04 Thread Osier Yang
src/storage/storage_driver.c: Implement poolListAllVolumes. --- src/storage/storage_driver.c | 67 ++ 1 files changed, 67 insertions(+), 0 deletions(-) diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c index 4f99eb9..4f83348 100644

[libvirt] [PATCH 5/6] list: Use virStoragePoolListAllVolumes in virsh

2012-09-04 Thread Osier Yang
tools/virsh-volume.c: * vshStorageVolSorter to sort storage vols by name * vshStorageVolumeListFree to free the volume objects list * vshStorageVolumeListCollect to collect the volume objects, trying to use new API first, fall back to older APIs if it's not supported. ---

[libvirt] [PATCH 0/6 v4] Atomic API to list storage volumes

2012-09-04 Thread Osier Yang
v3 - v4: * Just rebase on the top, and split each API from the big set. Osier Yang (6): list: Define new API virStoragePoolListAllVolumes list: Implemente RPC calls for virStoragePoolListAllVolumes list: Implement virStoragePoolListAllVolumes for storage driver list: Implement

[libvirt] [PATCH 1/6] list: Define new API virStoragePoolListAllVolumes

2012-09-04 Thread Osier Yang
Simply returns the storage volume objects. No supported filter flags. include/libvirt/libvirt.h.in: Declare the API python/generator.py: Skip the function for generating. virStoragePool.py will be added in later patch. src/driver.h: virDrvStoragePoolListVolumesFlags

Re: [libvirt] [PATCH] qemu: Do not require auth scheme in graphics events

2012-09-04 Thread Eric Blake
On 09/04/2012 09:03 AM, Jiri Denemark wrote: Only VNC_{{DIS,}CONNECTED,INITIALIZED} and SPICE_INITIALIZED events are documented to support server/auth field and even there it is marked as optional. Emit auth scheme in case QEMU didn't send it. --- src/qemu/qemu_monitor_json.c | 5 +++-- 1

[libvirt] [PATCH 1/7] list: Define new API virConnectListAllNetworks

2012-09-04 Thread Osier Yang
This is to list the network objects, supported filtering flags are: active|inactive, persistent|transient, autostart|no-autostart. include/libvirt/libvirt.h.in: Declare enum virConnectListAllNetworkFlags and virConnectListAllNetworks. python/generator.py: Skip

[libvirt] [PATCH 3/7] list: Add helpers to list network objects

2012-09-04 Thread Osier Yang
src/conf/network_conf.c: Add virNetworkMatch to filter the networks; and virNetworkList to iterate over all the networks with the filter. src/conf/network_conf.h: Declare virNetworkList and define the macros for filters. src/libvirt_private.syms: Export virNetworkList. ---

[libvirt] [PATCH 4/7] list: Implement listAllNetworks for network driver

2012-09-04 Thread Osier Yang
src/network/bridge_driver.c: Implement listAllNetworks. --- src/network/bridge_driver.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c index 53eebed..73ad43f 100644 ---

[libvirt] [PATCH 5/7] list: Implement listAllNetworks for test driver

2012-09-04 Thread Osier Yang
src/test/test_driver.c: Implement listAllNetworks. --- src/test/test_driver.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 8d93129..821cf72 100644 --- a/src/test/test_driver.c +++

[libvirt] [PATCH 6/7] list: Use virConnectListAllNetworks in virsh

2012-09-04 Thread Osier Yang
tools/virsh-network.c: * vshNetworkSorter to sort networks by name * vshNetworkListFree to free the network objects list. * vshNetworkListCollect to collect the network objects, trying to use new API first, fall back to older APIs if it's not supported. * New options --persistent,

[libvirt] [PATCH 2/7] list: Implement RPC calls for virConnectListAllNetworks

2012-09-04 Thread Osier Yang
The RPC generator doesn't support returning list of object, this patch do the work manually. * daemon/remote.c: Implemente the server side handler remoteDispatchConnectListAllNetworks. * src/remote/remote_driver.c: Add remote driver handler remoteConnectListAllNetworks. *

[libvirt] [PATCH 0/7 v4] Atomic API to list networks

2012-09-04 Thread Osier Yang
v3 - v4: - Just rebase on top, and split the API from the big set Osier Yang (7): list: Define new API virConnectListAllNetworks list: Implement RPC calls for virConnectListAllNetworks list: Add helpers to list network objects list: Implement listAllNetworks for network driver list:

[libvirt] [PATCH 7/7] list: Expose virConnectListAllNetworks to Python binding

2012-09-04 Thread Osier Yang
The implementation is done manually as the generator does not support wrapping lists of C pointers into Python objects. python/libvirt-override-api.xml: Document python/libvirt-override-virConnect.py: Implement listAllNetworks. python/libvirt-override.c: Implementation for the wrapper. ---

[libvirt] [PATCH 0/5 v4] Atomic API to list host interfaces

2012-09-04 Thread Osier Yang
v3 - v4: - Just rebase on the top, split the API from v3's big set. Osier Yang (5): list: Define new API virConnectListAllInterfaces list: Implemente RPC calls for virConnectListAllInterfaces list: Implement listAllInterfaces list: Use virConnectListAllInterfaces in virsh list: Expose

[libvirt] [PATCH 3/5] list: Implement listAllInterfaces

2012-09-04 Thread Osier Yang
This is not that ideal as API for other objects, as it's still O(n). Because interface driver uses netcf APIs to manage the stuffs, instead of by itself. And netcf APIs don't return a object. It provides APIs like old libvirt APIs: ncf_number_of_interfaces ncf_list_interfaces

[libvirt] [PATCH 2/5] list: Implemente RPC calls for virConnectListAllInterfaces

2012-09-04 Thread Osier Yang
The RPC generator doesn't support returning list of object yet, this patch do the work manually. * daemon/remote.c: Implemente the server side handler remoteDispatchConnectListAllInterfaces. * src/remote/remote_driver.c: Add remote driver handler remoteConnectListAllInterfaces. *

[libvirt] [PATCH 5/5] list: Expose virConnectListAllInterfaces to Python binding

2012-09-04 Thread Osier Yang
The implementation is done manually as the generator does not support wrapping lists of C pointers into Python objects. python/libvirt-override-api.xml: Document python/libvirt-override-virConnect.py: * New file, includes implementation of listAllInterfaces. python/libvirt-override.c:

  1   2   >