[libvirt] [PATCH] Use AC_PATH_PROG to search for dmidecode

2014-01-17 Thread Roman Bogorodskiy
This is useful in certain circumstances, for example when libvirtd is being executed by FreeBSD rc script, it cannot find dmidecode installed from FreeBSD ports because it doesn't have /usr/local (default prefix for ports) in PATH. --- configure.ac | 4 src/util/virsysinfo.c | 2 +-

[libvirt] Exposing and calculating CPU APIC IDs (was Re: [Qemu-devel] [RFC 1/3] target-i386: moving registers of vmstate from cpu_exec_init() to x86_cpu_realizefn())

2014-01-17 Thread Eduardo Habkost
On Wed, Jan 15, 2014 at 03:37:04PM +0100, Igor Mammedov wrote: > On Wed, 15 Jan 2014 20:24:01 +0800 > Chen Fan wrote: > > On Tue, 2014-01-14 at 11:40 +0100, Igor Mammedov wrote: > > > On Tue, 14 Jan 2014 17:27:20 +0800 > > > Chen Fan wrote: > > > > > > > the intend of this patch is to register c

Re: [libvirt] [PATCH glib] Switch over to using standard gobject introspection macros

2014-01-17 Thread Christophe Fergeau
ACK On Fri, Jan 17, 2014 at 04:56:27PM +, Daniel P. Berrange wrote: > Remove hand crafted configure.ac and Makefile.am rules in > favour of the standard macros. > > Signed-off-by: Daniel P. Berrange > --- > configure.ac| 25 +--- > libvirt-gconfig/Makefile.am | 7

[libvirt] [PATCH] doc: Add missing space in documentation

2014-01-17 Thread Christophe Fergeau
--- Pushed under the trivial rule. docs/formatdomain.html.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 68860ef..80d9495 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -1348,7 +1348,7

[libvirt] [PATCH glib] Switch over to using standard gobject introspection macros

2014-01-17 Thread Daniel P. Berrange
Remove hand crafted configure.ac and Makefile.am rules in favour of the standard macros. Signed-off-by: Daniel P. Berrange --- configure.ac| 25 +--- libvirt-gconfig/Makefile.am | 71 - libvirt-glib/Makefile.am| 51 +

Re: [libvirt] [PATCH] build: add $(prefix) to SYSTEMD_UNIT_DIR

2014-01-17 Thread Eric Blake
On 01/17/2014 05:34 AM, Laine Stump wrote: > I noticed this problem when adding systemd support to netcf, because I > setup the configure.ac to automatically prefer using systemd over > initscripts when possible - although I had copied the > install-data-local target from the example of libvirt's >

[libvirt] [PATCH 0/4] qemu: export disk snapshot capability

2014-01-17 Thread Francesco Romani
This patch series extend the QEMU capabilities XML to report if the underlying QEMU binary supports, or not, the live disk snapshotting. Without this patch series, the only way to know if QEMU has this support is to actually request a disk snapshot and to see what happens. The change is split in

[libvirt] [PATCH 2/4] qemu: add function to fill capabilities cache

2014-01-17 Thread Francesco Romani
extract and export the code to add the capabilities for a given QEMU binary in the capabilities cache. The intended use case is for testing, and make writing more test easier. --- src/qemu/qemu_capabilities.c | 31 +-- src/qemu/qemu_capabilities.h | 2 ++ 2 files chan

Re: [libvirt] [PATCH 1/9] pci: Make reattach work for unbound devices

2014-01-17 Thread Jiri Denemark
On Fri, Jan 17, 2014 at 15:29:27 +0100, Michal Privoznik wrote: > On 17.01.2014 11:39, Jiri Denemark wrote: > > https://bugzilla.redhat.com/show_bug.cgi?id=1046919 > > > > When a PCI device is not bound to any driver, reattach should just > > trigger driver probe rather than failing with > > > >

Re: [libvirt] [libvirt-security-notice PATCH] templates: Include charset info in

2014-01-17 Thread Michal Privoznik
On 17.01.2014 16:48, Daniel P. Berrange wrote: > On Fri, Jan 17, 2014 at 04:42:02PM +0100, Michal Privoznik wrote: >> Signed-off-by: Michal Privoznik >> --- >> templates/lsn2html.xsl | 3 ++- >> templates/lsn2indexhtml.xsl | 3 ++- >> 2 files changed, 4 insertions(+), 2 deletions(-) >> >> di

Re: [libvirt] [libvirt-security-notice PATCH] templates: Include charset info in

2014-01-17 Thread Daniel P. Berrange
On Fri, Jan 17, 2014 at 04:42:02PM +0100, Michal Privoznik wrote: > Signed-off-by: Michal Privoznik > --- > templates/lsn2html.xsl | 3 ++- > templates/lsn2indexhtml.xsl | 3 ++- > 2 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/templates/lsn2html.xsl b/templates/lsn2html.

Re: [libvirt] [PATCH 1/9] pci: Make reattach work for unbound devices

2014-01-17 Thread Michal Privoznik
On 17.01.2014 16:34, Jiri Denemark wrote: > On Fri, Jan 17, 2014 at 15:29:27 +0100, Michal Privoznik wrote: >> On 17.01.2014 11:39, Jiri Denemark wrote: >>> https://bugzilla.redhat.com/show_bug.cgi?id=1046919 >>> >>> When a PCI device is not bound to any driver, reattach should just >>> trigger dri

[libvirt] [libvirt-security-notice PATCH] templates: Include charset info in

2014-01-17 Thread Michal Privoznik
Signed-off-by: Michal Privoznik --- templates/lsn2html.xsl | 3 ++- templates/lsn2indexhtml.xsl | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/lsn2html.xsl b/templates/lsn2html.xsl index aaac6e8..46501ab 100644 --- a/templates/lsn2html.xsl +++ b/templates/l

[libvirt] [PATCH 1/4] qemu: export disk snapshot support in capabilities

2014-01-17 Thread Francesco Romani
This patch add an element to QEMU's capability XML, to show if the underlying QEMU binary supports the live disk snapshotting or not. This allow any client to know ahead of time if the feature is available. Without this information available, the only way to check for the snapshot support is to re

[libvirt] [PATCH 3/4] qemu: export the virQEMUCapsInitGuest function.

2014-01-17 Thread Francesco Romani
make the function public. the function is useful to XML capabilities unit test. --- src/qemu/qemu_capabilities.c | 2 +- src/qemu/qemu_capabilities.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 125869b..37c

[libvirt] [PATCH 4/4] qemu: add unit tests for the capabilities xml

2014-01-17 Thread Francesco Romani
the test is loosely inspired from qemucapabilitiestest and qemuxml2xmltest. Added a new test instead of extending an existing one because the feature being tested don't really fits nicely in any existing place. --- .gitignore | 1 + tests/Makefile.am

Re: [libvirt] Libvirt Security Notices

2014-01-17 Thread Daniel Veillard
On Fri, Jan 17, 2014 at 02:43:25PM +, Daniel P. Berrange wrote: > Hi Folks, > > After much work I've finally got a formal Libvirt Security Notice (LSN) > setup worked out. > > Every security issue that is reported & confirmed on the libvirt security > mailing list will have a formal LSN prepa

[libvirt] [libvirt-glib] Fix GVirConfigDomainTimerPit parent class/object

2014-01-17 Thread Christophe Fergeau
GVirConfigDomainTimerPit is correctly define as inheriting from GVirConfigDomainTimer in the G_DEFINE_TYPE macro, but it only embeds GVirConfigObject/GVirConfigObjectClass structs. This is an ABI break as this changes the size of the GVirConfigDomainTimerPit/GVirConfigDomainTimerPitClass structs H

Re: [libvirt] [libvirt-glib 4/4] Add GVirConfigDomainTimerHpet

2014-01-17 Thread Christophe Fergeau
On Fri, Jan 17, 2014 at 02:33:55PM +, Zeeshan Ali (Khattak) wrote: > On Fri, Jan 17, 2014 at 2:11 PM, Christophe Fergeau > wrote: > > +struct _GVirConfigDomainTimerHpet > > +{ > > +GVirConfigObject parent; > > Shouldn't this be GVirConfigDomainTimer? Yes, great catch! Fixed. This file i

[libvirt] Libvirt Security Notices

2014-01-17 Thread Daniel P. Berrange
Hi Folks, After much work I've finally got a formal Libvirt Security Notice (LSN) setup worked out. Every security issue that is reported & confirmed on the libvirt security mailing list will have a formal LSN prepared. This is a simple XML document containing metadata & other information about t

Re: [libvirt] [PATCH 4/9] virpcitest: Show PCI device tested by each test

2014-01-17 Thread Michal Privoznik
On 17.01.2014 11:39, Jiri Denemark wrote: > For example: > > ... > 5) testVirPCIDeviceIsAssignable(0005:90:01.0) ... OK > 6) testVirPCIDeviceIsAssignable(0001:01:00.0) ... OK > > Signed-off-by: Jiri Denemark > --- > tests/virpcitest.c | 9 - > 1 file changed, 8 insertions(+

Re: [libvirt] [libvirt-glib 2/4] Add getters for some GVirConfigDomainGraphics* attributes

2014-01-17 Thread Zeeshan Ali (Khattak)
On Fri, Jan 17, 2014 at 2:11 PM, Christophe Fergeau wrote: > Now that there is a gvir_config_object_get_attribute_boolean(), these > are trivial to implement. > --- ACK -- Regards, Zeeshan Ali (Khattak) FSF member#5124 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/

Re: [libvirt] [PATCH 5/9] pci: Publish some internal code for virpcitest

2014-01-17 Thread Michal Privoznik
On 17.01.2014 11:39, Jiri Denemark wrote: > Signed-off-by: Jiri Denemark > --- > src/libvirt_private.syms | 2 ++ > src/util/virpci.c| 71 > > src/util/virpci.h| 5 > 3 files changed, 49 insertions(+), 29 deletions(-) > AC

Re: [libvirt] [PATCH 8/9] virpcimock: Add PCI driver which always fails

2014-01-17 Thread Michal Privoznik
On 17.01.2014 11:39, Jiri Denemark wrote: > Such driver can be used to make sure PCI APIs fail properly. > > Signed-off-by: Jiri Denemark > --- > tests/virpcimock.c | 33 + > 1 file changed, 21 insertions(+), 12 deletions(-) > > diff --git a/tests/virpcimock.c b/

Re: [libvirt] [libvirt-glib 1/4] Implement gvir_config_object_get_attribute_boolean()

2014-01-17 Thread Zeeshan Ali (Khattak)
On Fri, Jan 17, 2014 at 2:11 PM, Christophe Fergeau wrote: > gvir_config_object_set_attribute() converts (TRUE, FALSE) to ("yes", "no"), > but we don't have the corresponding getter. This commit adds this. > --- ACK -- Regards, Zeeshan Ali (Khattak) FSF member#5124 -- libvir-list mailing list

Re: [libvirt] [PATCH 1/9] pci: Make reattach work for unbound devices

2014-01-17 Thread Michal Privoznik
On 17.01.2014 11:39, Jiri Denemark wrote: > https://bugzilla.redhat.com/show_bug.cgi?id=1046919 > > When a PCI device is not bound to any driver, reattach should just > trigger driver probe rather than failing with > > Invalid device :00:19.0 driver file > /sys/bus/pci/devices/:00

Re: [libvirt] [PATCH 9/9] virpcitest: Test virPCIDeviceDetach failure

2014-01-17 Thread Michal Privoznik
On 17.01.2014 11:39, Jiri Denemark wrote: > Signed-off-by: Jiri Denemark > --- > tests/virpcitest.c | 33 + > 1 file changed, 33 insertions(+) > > diff --git a/tests/virpcitest.c b/tests/virpcitest.c > index 848014d..6a2291d 100644 > --- a/tests/virpcitest.c > +++

Re: [libvirt] [PATCH 6/9] virpcimock: Mock /sys/bus/pci/drivers_probe

2014-01-17 Thread Michal Privoznik
On 17.01.2014 11:39, Jiri Denemark wrote: > This file is used by PCI detach and reattach APIs to probe for a driver > that handles a specific device. > > Signed-off-by: Jiri Denemark > --- > tests/virpcimock.c | 40 +--- > 1 file changed, 29 insertions(+), 11

Re: [libvirt] [libvirt-glib 2/4] Implement gvir_config_domain_disk_[gs]et_driver()

2014-01-17 Thread Christophe Fergeau
On Fri, Jan 17, 2014 at 02:27:02PM +, Zeeshan Ali (Khattak) wrote: > On Fri, Jan 17, 2014 at 2:15 PM, Christophe Fergeau > wrote: > > On Thu, Jan 16, 2014 at 07:48:31PM +, Zeeshan Ali (Khattak) wrote: > >> On Fri, Dec 6, 2013 at 11:13 AM, Christophe Fergeau > >> wrote: > >> > G_BEGIN_D

Re: [libvirt] [libvirt-glib 4/4] Add GVirConfigDomainTimerHpet

2014-01-17 Thread Zeeshan Ali (Khattak)
On Fri, Jan 17, 2014 at 2:11 PM, Christophe Fergeau wrote: > This will be needed in order to solve > https://bugzilla.gnome.org/show_bug.cgi?id=722293 > --- > libvirt-gconfig/Makefile.am| 2 + > .../libvirt-gconfig-domain-timer-hpet.c| 75 > ++

Re: [libvirt] [PATCH 2/9] pci: Fix failure paths in detach

2014-01-17 Thread Michal Privoznik
On 17.01.2014 11:39, Jiri Denemark wrote: > https://bugzilla.redhat.com/show_bug.cgi?id=1046919 > > Since commit v0.9.0-47-g4e8969e (released in 0.9.1) some failures during > device detach were reported to callers of virPCIDeviceBindToStub as > success. For example, even though a device seemed to

Re: [libvirt] [PATCH 7/9] virpcitest: More tests for device detach and reattach

2014-01-17 Thread Michal Privoznik
On 17.01.2014 11:39, Jiri Denemark wrote: > Especially for devices that are not bound to any driver. > > Signed-off-by: Jiri Denemark > --- > tests/virpcimock.c | 3 + > tests/virpcitest.c | 157 > - > 2 files changed, 159 insertions(+), 1 d

Re: [libvirt] [PATCH 3/9] qemu: Don't detach devices if passthrough doesn't work

2014-01-17 Thread Michal Privoznik
On 17.01.2014 11:39, Jiri Denemark wrote: > From: Jincheng Miao > > https://bugzilla.redhat.com/show_bug.cgi?id=1046919 > > If none (KVM, VFIO) of the supported PCI passthrough methods is known to > work on a host, it's better to fail right away with a nice error message > rather than letting at

Re: [libvirt] [libvirt-glib 2/4] Implement gvir_config_domain_disk_[gs]et_driver()

2014-01-17 Thread Zeeshan Ali (Khattak)
On Fri, Jan 17, 2014 at 2:15 PM, Christophe Fergeau wrote: > On Thu, Jan 16, 2014 at 07:48:31PM +, Zeeshan Ali (Khattak) wrote: >> On Fri, Dec 6, 2013 at 11:13 AM, Christophe Fergeau >> wrote: >> > G_BEGIN_DECLS >> > >> > +/* These enum definitions are needed by >> > libvirt-gconfig-domain

Re: [libvirt] [libvirt-glib 3/4] Add gvir_config_domain_timer_[gs]et_present()

2014-01-17 Thread Zeeshan Ali (Khattak)
On Fri, Jan 17, 2014 at 2:11 PM, Christophe Fergeau wrote: > --- ACK -- Regards, Zeeshan Ali (Khattak) FSF member#5124 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [libvirt-glib 2/4] Implement gvir_config_domain_disk_[gs]et_driver()

2014-01-17 Thread Christophe Fergeau
On Thu, Jan 16, 2014 at 07:48:31PM +, Zeeshan Ali (Khattak) wrote: > On Fri, Dec 6, 2013 at 11:13 AM, Christophe Fergeau > wrote: > > G_BEGIN_DECLS > > > > +/* These enum definitions are needed by > > libvirt-gconfig-domain-disk-driver.h */ > > Why not just move these enums to that header

[libvirt] [libvirt-glib 2/4] Add getters for some GVirConfigDomainGraphics* attributes

2014-01-17 Thread Christophe Fergeau
Now that there is a gvir_config_object_get_attribute_boolean(), these are trivial to implement. --- .../libvirt-gconfig-domain-graphics-desktop.c | 24 +- .../libvirt-gconfig-domain-graphics-desktop.h | 4 +++- .../libvirt-gconfig-domain-graphics-rdp.c | 24

[libvirt] [libvirt-glib 4/4] Add GVirConfigDomainTimerHpet

2014-01-17 Thread Christophe Fergeau
This will be needed in order to solve https://bugzilla.gnome.org/show_bug.cgi?id=722293 --- libvirt-gconfig/Makefile.am| 2 + .../libvirt-gconfig-domain-timer-hpet.c| 75 ++ .../libvirt-gconfig-domain-timer-hpet.h| 67 +++

[libvirt] [libvirt-glib 0/4] Add API to build

2014-01-17 Thread Christophe Fergeau
This series allows to generate using libvirt-gconfig. This is a prerequisite for fixing this Boxes bug https://bugzilla.gnome.org/show_bug.cgi?id=722293 Patch 2/4 doesn't anything to do in this series, but this was easy to implement after 1/4 so I slipped it there. Christophe -- libvir-list m

[libvirt] [libvirt-glib 1/4] Implement gvir_config_object_get_attribute_boolean()

2014-01-17 Thread Christophe Fergeau
gvir_config_object_set_attribute() converts (TRUE, FALSE) to ("yes", "no"), but we don't have the corresponding getter. This commit adds this. --- libvirt-gconfig/libvirt-gconfig-object-private.h | 4 libvirt-gconfig/libvirt-gconfig-object.c | 20 2 files changed

[libvirt] [libvirt-glib 3/4] Add gvir_config_domain_timer_[gs]et_present()

2014-01-17 Thread Christophe Fergeau
--- libvirt-gconfig/libvirt-gconfig-domain-timer.c | 26 +- libvirt-gconfig/libvirt-gconfig-domain-timer.h | 4 +++- libvirt-gconfig/libvirt-gconfig.sym| 3 +++ libvirt-gconfig/tests/test-domain-create.c | 2 ++ 4 files changed, 33 insertions(+), 2 deleti

Re: [libvirt] [libvirt-glib 1/4] Add GVirConfigDomainDiskDriver

2014-01-17 Thread Christophe Fergeau
On Thu, Jan 16, 2014 at 07:44:56PM +, Zeeshan Ali (Khattak) wrote: > > + > > +void gvir_config_domain_disk_driver_set_name(GVirConfigDomainDiskDriver > > *driver, > > + const char *name) > > Since libvirt support only specific drivers and they are i

Re: [libvirt] [PATCH 2/2] qemu: Don't fail if the SCSI host device is shareable between domains

2014-01-17 Thread John Ferlan
On 01/17/2014 02:06 AM, Osier Yang wrote: <...snip...> > > As a conclusion, I think the only concern from you is about the problem > on the running domain of an old libvirt (without these 2 patches). Right? > If so, my thought is to add document somewhere, though I have not > much idea about wh

Re: [libvirt] [PATCH] virSecuritySELinuxSetFileconHelper: Don't fail on read-only NFS

2014-01-17 Thread Jiri Denemark
On Fri, Jan 17, 2014 at 13:43:40 +0100, Michal Privoznik wrote: > https://bugzilla.redhat.com/show_bug.cgi?id=996543 > > When starting up a domain, the SELinux labeling is done depending on > current configuration. If the labeling fails we check for possible > causes, as not all labeling failures

[libvirt] [PATCH] virSecuritySELinuxSetFileconHelper: Don't fail on read-only NFS

2014-01-17 Thread Michal Privoznik
https://bugzilla.redhat.com/show_bug.cgi?id=996543 When starting up a domain, the SELinux labeling is done depending on current configuration. If the labeling fails we check for possible causes, as not all labeling failures are fatal. For example, if the labeled file is on NFS which lacks SELinux

[libvirt] [PATCH] build: add $(prefix) to SYSTEMD_UNIT_DIR

2014-01-17 Thread Laine Stump
I noticed this problem when adding systemd support to netcf, because I setup the configure.ac to automatically prefer using systemd over initscripts when possible - although I had copied the install-data-local target from the example of libvirt's "libvirt-guests" service more or less verbatim, "mak

Re: [libvirt] [PATCH v2] BSD: implement nodeGetCPUStats

2014-01-17 Thread Daniel P. Berrange
On Wed, Jan 15, 2014 at 10:42:41PM +0400, Roman Bogorodskiy wrote: > Implementation obtains CPU usage information using > kern.cp_time and kern.cp_times sysctl(8)s and reports > CPU utilization. > --- > include/libvirt/libvirt.h.in | 8 > src/nodeinfo.c | 104 > ++

Re: [libvirt] [PATCH v2] bhyve: add a basic driver

2014-01-17 Thread Daniel P. Berrange
On Thu, Jan 02, 2014 at 12:27:52PM +0400, Roman Bogorodskiy wrote: > At this point it has a limited functionality and is highly > experimental. Supported domain operations are: > * define > * start > * destroy > > It's only possible to have only one disk device and only one > network, which

[libvirt] [PATCH 4/9] virpcitest: Show PCI device tested by each test

2014-01-17 Thread Jiri Denemark
For example: ... 5) testVirPCIDeviceIsAssignable(0005:90:01.0) ... OK 6) testVirPCIDeviceIsAssignable(0001:01:00.0) ... OK Signed-off-by: Jiri Denemark --- tests/virpcitest.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/virpcitest.c b/tests/virp

[libvirt] [PATCH 9/9] virpcitest: Test virPCIDeviceDetach failure

2014-01-17 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- tests/virpcitest.c | 33 + 1 file changed, 33 insertions(+) diff --git a/tests/virpcitest.c b/tests/virpcitest.c index 848014d..6a2291d 100644 --- a/tests/virpcitest.c +++ b/tests/virpcitest.c @@ -258,6 +258,37 @@ cleanup: } st

[libvirt] [PATCH 8/9] virpcimock: Add PCI driver which always fails

2014-01-17 Thread Jiri Denemark
Such driver can be used to make sure PCI APIs fail properly. Signed-off-by: Jiri Denemark --- tests/virpcimock.c | 33 + 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/tests/virpcimock.c b/tests/virpcimock.c index f8ea9c7..b514619 100644 --- a/tes

[libvirt] [PATCH 5/9] pci: Publish some internal code for virpcitest

2014-01-17 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/libvirt_private.syms | 2 ++ src/util/virpci.c| 71 src/util/virpci.h| 5 3 files changed, 49 insertions(+), 29 deletions(-) diff --git a/src/libvirt_private.syms b/src/libvirt_private.sy

[libvirt] [PATCH 2/9] pci: Fix failure paths in detach

2014-01-17 Thread Jiri Denemark
https://bugzilla.redhat.com/show_bug.cgi?id=1046919 Since commit v0.9.0-47-g4e8969e (released in 0.9.1) some failures during device detach were reported to callers of virPCIDeviceBindToStub as success. For example, even though a device seemed to be detached virsh # nodedev-detach pci__07_

[libvirt] [PATCH 6/9] virpcimock: Mock /sys/bus/pci/drivers_probe

2014-01-17 Thread Jiri Denemark
This file is used by PCI detach and reattach APIs to probe for a driver that handles a specific device. Signed-off-by: Jiri Denemark --- tests/virpcimock.c | 40 +--- 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/tests/virpcimock.c b/tests/vi

[libvirt] [PATCH 0/9] Fix corner cases in nodedev detach and reattach

2014-01-17 Thread Jiri Denemark
https://bugzilla.redhat.com/show_bug.cgi?id=1046919 The first two patches fix bugs in PCI device handling code, the third patch provides a nice error message when nodedev detach is not supported and the rest are tests for testing the bugs fixed in the first two patches. Jincheng Miao (1): qemu:

[libvirt] [PATCH 1/9] pci: Make reattach work for unbound devices

2014-01-17 Thread Jiri Denemark
https://bugzilla.redhat.com/show_bug.cgi?id=1046919 When a PCI device is not bound to any driver, reattach should just trigger driver probe rather than failing with Invalid device :00:19.0 driver file /sys/bus/pci/devices/:00:19.0/driver is not a symlink While virPCIDeviceGetDriv

[libvirt] [PATCH 3/9] qemu: Don't detach devices if passthrough doesn't work

2014-01-17 Thread Jiri Denemark
From: Jincheng Miao https://bugzilla.redhat.com/show_bug.cgi?id=1046919 If none (KVM, VFIO) of the supported PCI passthrough methods is known to work on a host, it's better to fail right away with a nice error message rather than letting attachment fail with a more cryptic message such as F

[libvirt] [PATCH 7/9] virpcitest: More tests for device detach and reattach

2014-01-17 Thread Jiri Denemark
Especially for devices that are not bound to any driver. Signed-off-by: Jiri Denemark --- tests/virpcimock.c | 3 + tests/virpcitest.c | 157 - 2 files changed, 159 insertions(+), 1 deletion(-) diff --git a/tests/virpcimock.c b/tests/virpcim

[libvirt] On Archbsd which uses Freebsd10 kernel and world the libvirt-glib with enable-introspection does not compile (using gcc or clang)

2014-01-17 Thread Claudiu Traistaru
I have already posted a bug request about this. https://bugzilla.redhat.com/show_bug.cgi?id=1054657 The issue appears when trying to build with --enable-introspections flag. I think it would be super if somebody had a solution for this, because virt-manager is an nice tool to have. -- libvir-list