]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix libvirtd restart for domains with PCI passthrough devices
authorChris Lalancette <clalance@redhat.com>
Fri, 22 Jan 2010 17:39:15 +0000 (18:39 +0100)
committerDaniel Veillard <veillard@redhat.com>
Fri, 22 Jan 2010 17:39:15 +0000 (18:39 +0100)
commitcdc42d0a4865199a941d330dbb6ca1ef426323ae
treedfc97d27ab272ac0bb75540052875aa3fc3c8756
parentbe34c3c7efbb1ea8999530f98b99c5dde3793f84
Fix libvirtd restart for domains with PCI passthrough devices

When libvirtd shuts down, it places a <state/> tag in the XML
state file it writes out for guests with PCI passthrough
devices.  For devices that are attached at bootup time, the
state tag is empty.  However, at libvirtd startup time, it
ignores anything with a <state/> tag in the XML, effectively
hiding the guest.
This patch remove the check for VIR_DOMAIN_XML_INTERNAL_STATUS
when parsing the XML.
* src/conf/domain_conf.c: remove VIR_DOMAIN_XML_INTERNAL_STATUS
  flag check in virDomainHostdevSubsysPciDefParseXML()
src/conf/domain_conf.c