Re: [libvirt] [PATCH 1/3] util: Add virProcessSetScheduler() function for scheduler settings

2015-01-19 Thread Martin Kletzander
On Mon, Jan 19, 2015 at 10:12:34PM -0500, John Ferlan wrote: On 01/13/2015 02:57 AM, Martin Kletzander wrote: This function uses sched_setscheduler() function so it works with processes and threads as well (even threads not created by us, which is what we'll need in the future). Signed-off-by

Re: [libvirt] glibc detected invalid pointer

2015-01-19 Thread Michal Privoznik
On 20.01.2015 04:46, shaowt wrote: > hi Michal Privoznik: > my env is qemu 1.4.2 libvirt 1.0.5 > this is my vm log: > *** glibc detected *** /usr/bin/qemu-system-x86_64: double free or corruption > (out): 0x7f8be03090b0 *** > === Backtrace: = > /lib64/libc.so.6(+0x

Re: [libvirt] [PATCH v2] network: Let domains be restricted to local DNS

2015-01-19 Thread Laine Stump
I had forgotten about this patch during the holidays until John Ferlan reminded me a few days ago. On 12/03/2014 07:01 PM, Josh Stone wrote: > This adds a new "localOnly" attribute on the domain element of the > network xml. With this set to "yes", DNS requests under that domain > will only be re

Re: [libvirt] glibc detected invalid pointer

2015-01-19 Thread shaowt
hi Michal Privoznik: my env is qemu 1.4.2 libvirt 1.0.5 this is my vm log: *** glibc detected *** /usr/bin/qemu-system-x86_64: double free or corruption (out): 0x7f8be03090b0 *** === Backtrace: = /lib64/libc.so.6(+0x760e6)[0x7f8d180750e6] /lib64/libc.so.6(+0x78c13)

Re: [libvirt] [PATCH 3/3] qemu: Add support for setting vCPU and I/O thread scheduler setting

2015-01-19 Thread John Ferlan
On 01/13/2015 02:57 AM, Martin Kletzander wrote: > Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1178986 Could use a bit more details here. > > Signed-off-by: Martin Kletzander > --- > src/qemu/qemu_driver.c | 7 - > src/qemu/qemu_process.c | 76 > +

Re: [libvirt] [PATCH 2/3] docs, schema, conf: Add support for setting scheduler parameters of guest threads

2015-01-19 Thread John Ferlan
On 01/13/2015 02:57 AM, Martin Kletzander wrote: > In order for QEMU vCPU (and other) threads to run with RT scheduler, > libvirt needs to take care of that so QEMU doesn't have to run privileged. > > Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1178986 > > Signed-off-by: Martin Kletza

Re: [libvirt] [PATCH 1/3] util: Add virProcessSetScheduler() function for scheduler settings

2015-01-19 Thread John Ferlan
On 01/13/2015 02:57 AM, Martin Kletzander wrote: > This function uses sched_setscheduler() function so it works with > processes and threads as well (even threads not created by us, which is > what we'll need in the future). > > Signed-off-by: Martin Kletzander > --- > src/libvirt_private.syms

[libvirt] [PATCH 0/3] Update example apparmor profile

2015-01-19 Thread Mike Latimer
The apparmor profile example for libvirtd is rather outdated. The changes in this patch series are intended to bring this sample up to date with the latest working configuration. This series addresses issues applicable to general libvirt, Xen and libvirt-TCK operations - each in their own patch. M

[libvirt] [PATCH 1/3] Fix apparmor issues for Xen

2015-01-19 Thread Mike Latimer
In order for apparmor to work properly in Xen environments, the following access rights need to be allowed: - Allow CAP_SYS_PACCT, which is required when resetting some multi-port Broadcom cards by writting to the PCI config space - Allow CAP_IPC_LOCK, which is required to lock/unlock memory

[libvirt] [PATCH 2/3] Grant access to helpers

2015-01-19 Thread Mike Latimer
Apparmor must not prevent access to required helper programs. The following helpers should be allowed to run in unconfined execution mode: - libvirt_parthelper - libvirt_iohelper --- examples/apparmor/usr.sbin.libvirtd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/apparmor/usr

[libvirt] [PATCH 3/3] Fix apparmor issues for tck

2015-01-19 Thread Mike Latimer
The network and nwfilter tests contained in the libvirt-TCK testkit can fail unless access to raw network packets is granted. Without this access, the following apparmor error can be seen while running the tests: apparmor="DENIED" operation="create" parent=1 profile="/usr/sbin/libvirtd" pid=94

Re: [libvirt] [PATCH] virsh: report 0-length active block-commit job status

2015-01-19 Thread John Ferlan
On 01/12/2015 05:54 PM, Eric Blake wrote: > At least with live block commit, it is possible to have a block > job that reports 0 status: namely, when the active image contains > no sectors that differ from the backing image it is being committed > into [1]. I'm not sure if that represents a qemu

[libvirt] [PATCH] network: verify proper address family in updates to and

2015-01-19 Thread Laine Stump
By specifying parentIndex in a call to virNetworkUpdate(), it was possible to direct libvirt to add a dhcp range or static host of a non-matching address family to the element of an . For example, given: you could provide a static host entry with an IPv4 address, and specify that it be added

Re: [libvirt] [PATCH] qemu: Propagate storage errors on migration

2015-01-19 Thread John Ferlan
On 01/09/2015 07:22 AM, Michal Privoznik wrote: > There's one bug that got more visible with my patches that > automatically precreate storage on migration. The problem is, if > there's not enough disk space on destination, we successfully finish > the migration instead of failing. > > Firstly,

[libvirt] [java] [PATCH] JNA: add missing flags parameter to wrapped functions

2015-01-19 Thread Claudio Bley
Some functions of the Libvirt interface were missing a required flags parameter as defined by the libvirt C API, namely: * virInterfaceCreate * virInterfaceDestroy * virNodeDeviceGetXMLDesc Calling these functions without the flags parameter would result in undefined behaviour, at best in an "

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

2015-01-19 Thread Michal Privoznik
On 19.01.2015 16:12, liede...@telenet.be wrote: > Hi all, > > I had libvirt 1.2.10 running without issues together with the qemu package > qemu-kvm-0.12.1.2-2.415.el6_5.14.x86_64.rpm > > Now, after updating my server, qemu-kvm became version > qemu-kvm-0.12.1.2-2.448.el6_6.x86_64 > > And as a r

[libvirt] [PATCH 1/2] util: Functions for getting/setting device options

2015-01-19 Thread akrowiak
From: Tony Krowiak This patch provides the utility functions needed to synchronize the rxfilter changes made to a guest domain with the corresponding macvtap devices on the host: * Get/set PROMISC flag * Get/set ALLMULTI, MULTICAST Signed-off-by: Tony Krowiak --- src/libvirt_private.syms |

[libvirt] [PATCH 2/2] qemu: change macvtap device options in response to NIC_RX_FILTER_CHANGED

2015-01-19 Thread akrowiak
From: Tony Krowiak This patch supplies the funtionality of synchronizing the host macvtap device options with the guest device's in response to the NIC_RX_FILTER_CHANGED event. The following device options will be synchronized: * PROMISC * MULTICAST * ALLMULTI Signed-off-by: Tony Krowiak ---

[libvirt] [PATCH 0/2] Sync macvtap device modes when guest rxfilter changes

2015-01-19 Thread akrowiak
From: Tony Krowiak This patch set provides the code to synchonize some macvtap device modes when the values are changed on the guest's network device. The following modes will by synchronized: * PROMISC * MULTICAST * ALLMULTI Tony Krowiak (2): util: Functions for getting/setting device opti

[libvirt] [python PATCH] sanitytest: fix mapping test for virDomainDefineXMLFlags

2015-01-19 Thread Pavel Hrdina
The libvirt API has in the name "virDomain" but it's correctly mapped into "virConnect" class. Create an exception in the sanity test. Signed-off-by: Pavel Hrdina --- Pushed as build(test) breaker. sanitytest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanitytest.py

[libvirt] libvirt 1.2.10 and latest EL6 qemu-kvm

2015-01-19 Thread liedekef
Hi all, I had libvirt 1.2.10 running without issues together with the qemu package qemu-kvm-0.12.1.2-2.415.el6_5.14.x86_64.rpm Now, after updating my server, qemu-kvm became version qemu-kvm-0.12.1.2-2.448.el6_6.x86_64 And as a result, when doing 'virsh start' (virsh define worked ok), the

Re: [libvirt] glibc detected invalid pointer

2015-01-19 Thread Michal Privoznik
On 19.01.2015 14:07, shaowt wrote: > hi all: > when i use vnc to connect VM, sometimes in libvirt logs, > i found > glibc detected invalid pointer error,and then this vm will be > shutdown . The best would be to run libvirtd under valgrind to see the backtrace that lead t

Re: [libvirt] [PATCH v2] Make ZFS storage pool XML tests optional

2015-01-19 Thread Michal Privoznik
On 16.01.2015 18:38, Gary R Hook wrote: > From: Gary R Hook > > Do not run ZFS tests when ZFS is unsupported in the environment. > > The recent patch b4af40226d09adeaf9e33a1d6594c4e8ce7f771d adds tests > to storagepoolxml2xmltest for the optional ZFS feature. When ZFS is > not included in the co

Re: [libvirt] [PATCH] systemd: fix build without dbus

2015-01-19 Thread Daniel P. Berrange
On Mon, Jan 19, 2015 at 02:50:19PM +0100, Martin Kletzander wrote: > On Mon, Jan 19, 2015 at 01:28:15PM +, Daniel P. Berrange wrote: > >On Mon, Jan 19, 2015 at 02:13:12PM +0100, Martin Kletzander wrote: > >>On Mon, Jan 19, 2015 at 12:34:52PM +, Daniel P. Berrange wrote: > >>>The virDBusMeth

Re: [libvirt] [PATCH] systemd: fix build without dbus

2015-01-19 Thread Martin Kletzander
On Mon, Jan 19, 2015 at 01:28:15PM +, Daniel P. Berrange wrote: On Mon, Jan 19, 2015 at 02:13:12PM +0100, Martin Kletzander wrote: On Mon, Jan 19, 2015 at 12:34:52PM +, Daniel P. Berrange wrote: >The virDBusMethodCall method has a DBusError as one of its >parameters. If the caller wants

[libvirt] [PATCH v2] systemd: fix build without dbus

2015-01-19 Thread Daniel P. Berrange
The virDBusMethodCall method has a DBusError as one of its parameters. If the caller wants to pass a non-NULL value for this, it immediately makes the calling code require DBus at build time. This has led to breakage of non-DBus builds several times. It is desirable that only the virdbus.c file sho

Re: [libvirt] [PATCH] systemd: fix build without dbus

2015-01-19 Thread Daniel P. Berrange
On Mon, Jan 19, 2015 at 02:24:34PM +0100, Martin Kletzander wrote: > On Mon, Jan 19, 2015 at 02:13:12PM +0100, Martin Kletzander wrote: > >On Mon, Jan 19, 2015 at 12:34:52PM +, Daniel P. Berrange wrote: > >>The virDBusMethodCall method has a DBusError as one of its > >>parameters. If the caller

Re: [libvirt] [PATCH] systemd: fix build without dbus

2015-01-19 Thread Daniel P. Berrange
On Mon, Jan 19, 2015 at 02:13:12PM +0100, Martin Kletzander wrote: > On Mon, Jan 19, 2015 at 12:34:52PM +, Daniel P. Berrange wrote: > >The virDBusMethodCall method has a DBusError as one of its > >parameters. If the caller wants to pass a non-NULL value > >for this, it immediately makes the ca

Re: [libvirt] [PATCH] systemd: fix build without dbus

2015-01-19 Thread Martin Kletzander
On Mon, Jan 19, 2015 at 02:13:12PM +0100, Martin Kletzander wrote: On Mon, Jan 19, 2015 at 12:34:52PM +, Daniel P. Berrange wrote: The virDBusMethodCall method has a DBusError as one of its parameters. If the caller wants to pass a non-NULL value for this, it immediately makes the calling co

Re: [libvirt] [PATCH] systemd: fix build without dbus

2015-01-19 Thread Martin Kletzander
On Mon, Jan 19, 2015 at 12:34:52PM +, Daniel P. Berrange wrote: The virDBusMethodCall method has a DBusError as one of its parameters. If the caller wants to pass a non-NULL value for this, it immediately makes the calling code require DBus at build time. This has led to breakage of non-DBus

[libvirt] glibc detected invalid pointer

2015-01-19 Thread shaowt
hi all: when i use vnc to connect VM, sometimes in libvirt logs, i found glibc detected invalid pointer error,and then this vm will be shutdown . “The information (including any attachments) contained in this e-mail is confidential and may be le

Re: [libvirt] [PATCH] docs: Fix docs about python bindings package

2015-01-19 Thread Michal Privoznik
On 19.01.2015 11:04, Martin Kletzander wrote: > Since the day we removed python bindings from the core repository, the > documentation was missing that information. > > Reported-by: Lingyu Zhu > Signed-off-by: Martin Kletzander > --- > docs/bindings.html.in | 6 -- > 1 file changed, 4 inser

Re: [libvirt] [PATCH] qemu_conf: check for duplicate security drivers

2015-01-19 Thread Michal Privoznik
On 19.01.2015 12:51, Ján Tomko wrote: > Using the same driver multiple times is pointless and > it can result in confusing errors: > > $ virsh start test > error: Failed to start domain test > error: internal error: security label already defined for VM > > https://bugzilla.redhat.com/show_bug.cg

[libvirt] [PATCH] systemd: fix build without dbus

2015-01-19 Thread Daniel P. Berrange
The virDBusMethodCall method has a DBusError as one of its parameters. If the caller wants to pass a non-NULL value for this, it immediately makes the calling code require DBus at build time. This has led to breakage of non-DBus builds several times. It is desirable that only the virdbus.c file sho

[libvirt] [PATCH] qemu_conf: check for duplicate security drivers

2015-01-19 Thread Ján Tomko
Using the same driver multiple times is pointless and it can result in confusing errors: $ virsh start test error: Failed to start domain test error: internal error: security label already defined for VM https://bugzilla.redhat.com/show_bug.cgi?id=1153891 --- src/qemu/qemu_conf.c | 9 -

[libvirt] [PATCH] docs: Fix docs about python bindings package

2015-01-19 Thread Martin Kletzander
Since the day we removed python bindings from the core repository, the documentation was missing that information. Reported-by: Lingyu Zhu Signed-off-by: Martin Kletzander --- docs/bindings.html.in | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/bindings.html.in b

Re: [libvirt] [Xen-devel] [libvirt bisection] complete build-armhf-libvirt

2015-01-19 Thread Ian Campbell
On Mon, 2015-01-19 at 09:37 +, Ian Campbell wrote: > On Mon, 2015-01-19 at 04:48 +, xen.org wrote: > > branch xen-unstable > > xen branch xen-unstable > > job build-armhf-libvirt > > test libvirt-build > > > > Tree: libvirt git://libvirt.org/libvirt.git > > Tree: qemuu git://xenbits.xen.or

Re: [libvirt] [PATCH 1/4] Add support for systemd-machined CreateMachineWithNetwork

2015-01-19 Thread Daniel P. Berrange
On Mon, Jan 19, 2015 at 09:56:35AM +0800, Zhu Guihua wrote: > Hi Daniel, > > On Wed, 2015-01-14 at 14:05 +, Daniel P. Berrange wrote: > > systemd-machined introduced a new method CreateMachineWithNetwork > > that obsoletes CreateMachine. It expects to be given a list of > > VETH/TAP device ind

Re: [libvirt] [PATCH 2/2] storage: try to perform btrfs COW copy if possible

2015-01-19 Thread Chen, Hanxiao
> -Original Message- > From: Ján Tomko [mailto:jto...@redhat.com] > Sent: Friday, January 16, 2015 10:22 PM > To: Chen, Hanxiao/陈 晗霄; libvir-list@redhat.com > Subject: Re: [libvirt] [PATCH 2/2] storage: try to perform btrfs COW copy if > possible > > On 01/13/2015 09:18 AM, Chen Hanxiao