]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: Use id from virDomainObj inside the driver
authorStefan Bader <stefan.bader@canonical.com>
Thu, 27 Mar 2014 16:55:02 +0000 (17:55 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 3 Apr 2014 15:27:46 +0000 (17:27 +0200)
commit0e0c1a7489a6a04c5060d0fe7fad6337ed98ec01
tree73a2dbf24b1a255bc269351c664e452d6f8e1ea8
parentc9123fbe85430dab5e737b20f5657aab650a5d45
libxl: Use id from virDomainObj inside the driver

There is a domain id in the virDomain structure as well as in the
virDomainObj structure. While the former can become stale the latter
is kept up to date. So it is safer to always (virDomainObjPtr)->def->id
internally.

This will fix issues seen when managing Xen guests through libvirt from
virt-manager (not being able to get domain info after define or reboot).
This was caused both though libxlDomainGetInfo() only but there were
a lot of places that might potentially cause issues, too.

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
src/libxl/libxl_driver.c