]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Don't treat pci_system_init failure as fatal if no PCI bus is present
authorSoren Hansen <soren@linux2go.dk>
Mon, 5 Sep 2011 19:29:06 +0000 (21:29 +0200)
committerEric Blake <eblake@redhat.com>
Thu, 8 Sep 2011 10:36:18 +0000 (11:36 +0100)
commit9c7283166f667967d9d435ba233178f07af2eee0
tree704a679120236cca16f6d464512d9742eab001dc
parent9acaca7c24b3c8b14bcba9b92acac70bcaf6139b
Don't treat pci_system_init failure as fatal if no PCI bus is present

Xen PV domU's have no PCI bus. node_device_udev.c calls pci_system_init
which looks for /sys/bus/pci. If it does not find /sys/bus/pci (which it
won't in a Xen PV domU) it returns unsuccesfully (ENOENT), which libvirt
considers fatal. This makes libvirt unusable in this environment, even
though there are plenty of valid virtualisation options that work
there (LXC, UML, and QEmu spring to mind)

https://bugzilla.redhat.com/show_bug.cgi?id=709471

Signed-off-by: Soren Hansen <soren@linux2go.dk>
src/node_device/node_device_udev.c