]> xenbits.xensource.com Git - libvirt.git/commit
libxl: load on FreeBSD
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Sun, 24 May 2015 15:42:41 +0000 (18:42 +0300)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Mon, 1 Jun 2015 12:50:25 +0000 (15:50 +0300)
commitf57842ecfda1ece8c59718e62464e17f75a27062
tree27421759319070093905e8bede7b89784d67ce41
parent0a33bba1aeec04ccf6963b6942bac4586f04dda7
libxl: load on FreeBSD

The libxl tries to check if it's running in dom0 by parsing
/proc/xen/capabilities and if that fails it doesn't load.

There's no procfs interface in Xen on FreeBSD, so this check always
fails.

In addition to checking procfs, check if /dev/xen/xenstored, that's enough to
check if we're running in dom0 in FreeBSD case.
src/libxl/libxl_driver.c