[libvirt] [PATCH] Fix vm's outbound traffic control problem

2012-06-29 Thread Eiichi Tsukata
Hello, This is a patch to fix vm's outbound traffic control problem. Currently, vm's outbound traffic control by libvirt doesn't go well. This problem was previously discussed at libvir-list ML, however it seems that there isn't still any answer to the problem.

Re: [libvirt] [PATCH] build: define WITH_INTERFACE for the driver

2012-06-29 Thread Osier Yang
On 2012年06月29日 07:57, Eric Blake wrote: Our code was mistakenly relying on an undefined macro, WITH_INTERFACE, for determining whether to load the interface driver which wraps the netcf library. Clean this situation up by having only one automake conditional for the driver, and having both

Re: [libvirt] [PATCH] Fix vm's outbound traffic control problem

2012-06-29 Thread Michal Privoznik
On 29.06.2012 08:09, Eiichi Tsukata wrote: Hello, This is a patch to fix vm's outbound traffic control problem. Currently, vm's outbound traffic control by libvirt doesn't go well. This problem was previously discussed at libvir-list ML, however it seems that there isn't still any answer

Re: [libvirt] Entering freeze for libvirt-0.9.13

2012-06-29 Thread Guido Günther
On Mon, Jun 25, 2012 at 07:20:59PM +0800, Daniel Veillard wrote: I just tagged the git tree and I pushed the tarball for rc1: ftp://libvirt.org/libvirt/libvirt-0.9.13-rc1.tar.gz the rpms I build are coming along soon. Please give it a try, the basic seems okay to me (kvm driver seems

Re: [libvirt] Intend to add fuse filesystem support for libvirt lxc

2012-06-29 Thread Daniel P. Berrange
On Fri, Jun 29, 2012 at 11:05:33AM +0800, Gao feng wrote: Hi Everyone, Now I'm working on making the container's system info(such as /proc/meminfo,cpuinfo..) isolate from the host. I made a patch which implement showing the /proc/meminfo base on container's memcg, and sent it to the

Re: [libvirt] [PATCH] Fix vm's outbound traffic control problem

2012-06-29 Thread Daniel Veillard
On Fri, Jun 29, 2012 at 11:08:18AM +0200, Michal Privoznik wrote: On 29.06.2012 08:09, Eiichi Tsukata wrote: Hello, This is a patch to fix vm's outbound traffic control problem. Currently, vm's outbound traffic control by libvirt doesn't go well. This problem was previously

Re: [libvirt] Entering freeze for libvirt-0.9.13

2012-06-29 Thread Daniel Veillard
On Fri, Jun 29, 2012 at 11:15:02AM +0200, Guido Günther wrote: On Mon, Jun 25, 2012 at 07:20:59PM +0800, Daniel Veillard wrote: I just tagged the git tree and I pushed the tarball for rc1: ftp://libvirt.org/libvirt/libvirt-0.9.13-rc1.tar.gz the rpms I build are coming along soon.

[libvirt] [PATCH 0/6 v3] Support forward mode='hostdev' and interface pools

2012-06-29 Thread Shradha Shah
This patch series supports the forward mode='hostdev'. The functionality of this mode is the same as interface type='hostdev' but with the added benefit of using interface pools. The patch series also contains a patch to support use of interface names and PCI device addresses interchangeably in a

[libvirt] [PATCH 1/6 v3] Prerequisite Patch. virDomainDevicePCIAddress and respective functions moved to a new file called conf/device_conf.ch

2012-06-29 Thread Shradha Shah
Refactoring existing code without causing any functional changes to prepare for new code. This patch makes the code reusable. Signed-off-by: Shradha Shah ss...@solarflare.com --- include/libvirt/virterror.h |1 + src/Makefile.am |7 ++- src/conf/device_conf.c | 135

[libvirt] [PATCH 2/6 v3] Moved the code to create implicit interface pool from PF to a new function

2012-06-29 Thread Shradha Shah
Just code movement no functional changes here. This makes the code reusable Signed-off-by: Shradha Shah ss...@solarflare.com --- src/network/bridge_driver.c | 84 ++ 1 files changed, 52 insertions(+), 32 deletions(-) diff --git

[libvirt] [PATCH 3/6 v3] RNG updates, new xml parser/formatter code to support forward mode=hostdev

2012-06-29 Thread Shradha Shah
This patch introduces the new forward mode='hostdev' along with attribute managed Includes updates to the network RNG and new xml parser/formatter code. Signed-off-by: Shradha Shah ss...@solarflare.com --- docs/schemas/network.rng | 82 +++--

[libvirt] [PATCH 4/6 v3] Code to return interface name or pci_addr of the VF in actualDevice

2012-06-29 Thread Shradha Shah
The network pool should be able to keep track of both, network device names nad PCI addresses, and return the appropriate one in the actualDevice when networkAllocateActualDevice is called. Signed-off-by: Shradha Shah ss...@solarflare.com --- src/network/bridge_driver.c | 33

[libvirt] [PATCH 6/6 v3] Forward Mode 'Hostdev' qemu driver implementation

2012-06-29 Thread Shradha Shah
Signed-off-by: Shradha Shah ss...@solarflare.com --- src/qemu/qemu_command.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 93c018d..0f6b714 100644 --- a/src/qemu/qemu_command.c +++

[libvirt] [PATCH 5/6 v3] Forward Mode Hostdev network driver Implementation

2012-06-29 Thread Shradha Shah
This patch updates the network driver to properly utilize the new attributes/elements that are now in virNetworkDef Signed-off-by: Shradha Shah ss...@solarflare.com --- docs/formatnetwork.html.in | 62 + src/network/bridge_driver.c | 213

Re: [libvirt] availability of release candidate 2 of 0.9.13

2012-06-29 Thread Jim Fehlig
Daniel Veillard wrote: I just tagged the git tree and I pushed the tarball for rc2: ftp://libvirt.org/libvirt/libvirt-0.9.13-rc2.tar.gz the rpms are being built and will be pushed soon too I didn't get any feedback on other platforms or OSes for rc1, hopefully this will get a bit of

Re: [libvirt] [PATCH] qemu_agent: support guest-info command

2012-06-29 Thread Daniel P. Berrange
On Fri, Jun 29, 2012 at 01:58:05PM +0900, MATSUDA, Daiki wrote: diff -uNrp libvirt-0.9.13.orig/daemon/remote.c libvirt-0.9.13/daemon/remote.c --- libvirt-0.9.13.orig/daemon/remote.c 2012-06-25 16:06:18.0 +0900 +++ libvirt-0.9.13/daemon/remote.c2012-06-29 12:50:03.752806682

[libvirt] [PATCHv3 1/5] qemu: Extended qemuDomainAssignAddresses to be callable from everywhere.

2012-06-29 Thread Viktor Mihajlovski
This is in preparation of the enablement of s390 guests with virtio devices. The assignment of device addresses happens in different places, i.e. the qemu driver and process modules as well as in the unit tests in slightly different flavors. Currently, these are PPC spapr-vio and PCI devices,

[libvirt] [PATCHv3 0/5] Virtio support for S390

2012-06-29 Thread Viktor Mihajlovski
As 0.9.13 is stabilizing and I will not be available next week I am sending this reworked patch set already today, looking forward to comments. This series adds support for the s390 flavor of virtio devices. Since the s390 virtio devices are not implemented as PCI devices it is necessary to

[libvirt] [PATCHv3 2/5] qemu: Change tests to use (modified) qemuDomainAssignAddresses

2012-06-29 Thread Viktor Mihajlovski
Rewrote the device assignment parts in tests to use qemuDomainAssignAddresses. This way the tests will work for new device address types as they show up in the future (like s390 device types). Signed-off-by: Viktor Mihajlovski mihaj...@linux.vnet.ibm.com --- tests/qemuxml2argvtest.c | 12

[libvirt] [PATCHv3 4/5] S390: Domain Schema for s390-virtio machines.

2012-06-29 Thread Viktor Mihajlovski
Added s390-virtio machine type to the XML schema for domains in order to not fail the domain schema tests. Signed-off-by: Viktor Mihajlovski mihaj...@linux.vnet.ibm.com --- docs/schemas/domaincommon.rng | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git

[libvirt] [PATCHv3 5/5] S390: Adding testcases for s390

2012-06-29 Thread Viktor Mihajlovski
Add minimal s390-virtio domain testcase and testcases for virtio serial, net, disk for the virtio-s390 bus. Signed-off-by: Viktor Mihajlovski mihaj...@linux.vnet.ibm.com --- .../qemuxml2argv-console-virtio-s390.args |9 ++ .../qemuxml2argv-console-virtio-s390.xml |

[libvirt] [PATCHv3 3/5] S390: Add support for virtio-s390 devices.

2012-06-29 Thread Viktor Mihajlovski
The s390(x) architecture doesn't feature a PCI bus. For the purpose of supporting virtio devices a virtual bus called virtio-s390 is used. A new address type VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_S390 is used to distinguish the virtio devices on s390 from PCI-based virtio devices. V3 Change:

[libvirt] [PATCH] Remove sub-mounts under /dev when starting an LXC container

2012-06-29 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Since we are mounting a new /dev in the container, we must remove any sub-mounts like /dev/shm, /dev/mqueue, etc, otherwise they'll be recorded in /proc/mounts, but not be accessible to applications. --- src/lxc/lxc_container.c |7 --- 1 file

Re: [libvirt] Different mac address used in libvirtd

2012-06-29 Thread Daniel P. Berrange
On Wed, Jun 20, 2012 at 07:01:17PM +0800, Yong Sheng Gong wrote: Hi, I found libvirtd will create vnet0 with a different mac other than the one defined in domain file. The mac in Domain file will be used by qemu-kvm. I want to know how libvirtd decides the mac for vnet0, Who can give me a

Re: [libvirt] [PATCH] Remove sub-mounts under /dev when starting an LXC container

2012-06-29 Thread Eric Blake
On 06/29/2012 09:30 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com Since we are mounting a new /dev in the container, we must remove any sub-mounts like /dev/shm, /dev/mqueue, etc, otherwise they'll be recorded in /proc/mounts, but not be accessible to

Re: [libvirt] [PATCH] build: define WITH_INTERFACE for the driver

2012-06-29 Thread Eric Blake
On 06/29/2012 01:34 AM, Osier Yang wrote: On 2012年06月29日 07:57, Eric Blake wrote: Our code was mistakenly relying on an undefined macro, WITH_INTERFACE, for determining whether to load the interface driver which wraps the netcf library. Clean this situation up by having only one automake

Re: [libvirt] [PATCH] build: define WITH_INTERFACE for the driver

2012-06-29 Thread Daniel P. Berrange
On Fri, Jun 29, 2012 at 10:18:47AM -0600, Eric Blake wrote: On 06/29/2012 01:34 AM, Osier Yang wrote: On 2012年06月29日 07:57, Eric Blake wrote: Our code was mistakenly relying on an undefined macro, WITH_INTERFACE, for determining whether to load the interface driver which wraps the netcf

[libvirt] [Patch v2 2/3] Add -netdev bridge support

2012-06-29 Thread rmarwah
From: Richa Marwaha rmar...@linux.vnet.ibm.com This patch adds the support to run the QEMU network helper under unprivileged user. It also adds the support for attach-interface option in virsh to run under unprivileged user. Signed-off-by: Richa Marwaha rmar...@linux.vnet.ibm.com Signed-off-by:

[libvirt] [Patch v2 3/3] apparmor: QEMU bridge helper policy updates

2012-06-29 Thread rmarwah
From: Richa Marwaha rmar...@linux.vnet.ibm.com This patch provides AppArmor policy updates for the QEMU bridge helper. The QEMU bridge helper is a SUID executable exec'd by QEMU that drops capabilities to CAP_NET_ADMIN and adds a tap device to a network bridge. Signed-off-by: Richa Marwaha

[libvirt] [Patch v2 1/3] Add -netdev bridge capabilities

2012-06-29 Thread rmarwah
From: Richa Marwaha rmar...@linux.vnet.ibm.com This patch adds the capability in libvirt to check if -netdev bridge option is supported or not. Signed-off-by: Richa Marwaha rmar...@linux.vnet.ibm.com Signed-off-by: Corey Bryantcor...@linux.vnet.ibm.com --- v2 -This is a new patch that helps

[libvirt] [Patch v2 0/3] Add QEMU network helper support

2012-06-29 Thread rmarwah
From: Richa Marwaha rmar...@linux.vnet.ibm.com QEMU has a new feature which allows QEMU to execute under an unprivileged user ID and still be able to add a tap device to a Linux network bridge. Below is the link to the QEMU patches for the bridge helper feature:

Re: [libvirt] nwfilter: Fix memory leak

2012-06-29 Thread Stefan Berger
On 06/28/2012 09:41 PM, Eric Blake wrote: On 06/28/2012 06:38 PM, Stefan Berger wrote: Below patch fixes this coverity report: /libvirt/src/conf/nwfilter_conf.c:382: leaked_storage: Variable varAccess going out of scope leaks the storage it points to. --- src/conf/nwfilter_conf.c |1 +

Re: [libvirt] availability of release candidate 2 of 0.9.13

2012-06-29 Thread Ruben Kerkhof
On Thu, Jun 28, 2012 at 5:36 AM, Daniel Veillard veill...@redhat.com wrote:   I just tagged the git tree and I pushed the tarball for rc2:     ftp://libvirt.org/libvirt/libvirt-0.9.13-rc2.tar.gz Builds fine on OSX Lion. Regards, Ruben -- libvir-list mailing list libvir-list@redhat.com

Re: [libvirt] availability of release candidate 2 of 0.9.13

2012-06-29 Thread Jason Helfman
On Fri, Jun 29, 2012 at 10:27:22PM +0200, Ruben Kerkhof thus spake: On Thu, Jun 28, 2012 at 5:36 AM, Daniel Veillard veill...@redhat.com wrote:   I just tagged the git tree and I pushed the tarball for rc2:     ftp://libvirt.org/libvirt/libvirt-0.9.13-rc2.tar.gz Builds fine on OSX Lion.

Re: [libvirt] availability of release candidate 2 of 0.9.13

2012-06-29 Thread Eric Blake
On 06/29/2012 02:47 PM, Jason Helfman wrote: FreeBSD fails on this here: conf/domain_conf.c: In function 'virDomainFSDefParseXML': conf/domain_conf.c:4252: error: 'ULONG_LONG_MAX' undeclared (first use in this function) POSIX requires limits.h to spell it ULLONG_MAX, not ULONG_LONG_MAX.

[libvirt] [PATCH] build: use correct limit for unsigned long long

2012-06-29 Thread Eric Blake
Reported by Jason Helfman as a build-breaker on FreeBSD. * src/conf/domain_conf.c (virDomainFSDefParseXML): Use POSIX spelling. * src/openvz/openvz_conf.c (openvzReadFSConf): Likewise. --- Pushing under the build-breaker rule. src/conf/domain_conf.c |8 +++- src/openvz/openvz_conf.c

Re: [libvirt] [PATCH] build: use correct limit for unsigned long long

2012-06-29 Thread Jason Helfman
On Fri, Jun 29, 2012 at 03:11:41PM -0600, Eric Blake thus spake: Reported by Jason Helfman as a build-breaker on FreeBSD. Patch is good. It builds, now. Thanks! -jgh -- Jason Helfman System Administrator experts-exchange.com http://www.experts-exchange.com/M_4830110.html E4AD 7CF1 1396 27F6

[libvirt] compile option: --without-gnutls

2012-06-29 Thread Chris Van Heuveln
Hi libvirt-list, Full disclosure: this is the first open source project I've tried to contribute to and I'm still learning the process and tools. In any case, Mikhail Gusarov started a thread on this a while back and I've tried to take it to conclusion. I needed to remove tls for 0.8.4 so I

[libvirt] sanlock on F17

2012-06-29 Thread Dave Allan
I just tried to set up sanlock on F17 using the instructions at http://libvirt.org/locking.html, but libvirtd refuses to start with the sanlock error in the logs: Jun 29 19:56:20 nienna sanlock[8423]: 19846 open error -13 /var/lib/libvirt/sanlock/__LIBVIRT__DISKS__ I confirmed that user sanlock

Re: [libvirt] availability of release candidate 2 of 0.9.13

2012-06-29 Thread Jason Helfman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Fri, Jun 29, 2012 at 03:07:52PM -0600, Eric Blake thus spake: On 06/29/2012 02:47 PM, Jason Helfman wrote: FreeBSD fails on this here: conf/domain_conf.c: In function 'virDomainFSDefParseXML': conf/domain_conf.c:4252: error:

Re: [libvirt] availability of release candidate 2 of 0.9.13

2012-06-29 Thread Doug Goldstein
On Wed, Jun 27, 2012 at 10:36 PM, Daniel Veillard veill...@redhat.com wrote:   I just tagged the git tree and I pushed the tarball for rc2:     ftp://libvirt.org/libvirt/libvirt-0.9.13-rc2.tar.gz  the rpms are being built and will be pushed soon too I didn't get any feedback on other

Re: [libvirt] sanlock on F17

2012-06-29 Thread Dave Allan
On Fri, Jun 29, 2012 at 08:06:34PM -0400, Dave Allan wrote: I just tried to set up sanlock on F17 using the instructions at http://libvirt.org/locking.html, but libvirtd refuses to start with the sanlock error in the logs: Jun 29 19:56:20 nienna sanlock[8423]: 19846 open error -13