]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: Check for control_d string to decide about dom0
authorStefan Bader <stefan.bader@canonical.com>
Wed, 12 Mar 2014 12:03:26 +0000 (13:03 +0100)
committerJim Fehlig <jfehlig@suse.com>
Thu, 13 Mar 2014 00:41:11 +0000 (18:41 -0600)
commit8c869ad9f9c5d57ba0ef516835a08afdba7ad828
treeaf74e43c453bfd2e442d98fe9d4195c036e2ca55
parent03fc0c626d9fa91219442bec274db432d8f413f6
libxl: Check for control_d string to decide about dom0

As soon as any guest mounts xenfs to /proc/xen, there is a capabilities
file in that directory. However it returns nothing when reading from it.
Change the test to actually check the contents of the file.

BugLink: http://bugs.launchpad.net/bugs/1248025
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
src/libxl/libxl_driver.c