Re: [libvirt] [PATCH] libxl: load on FreeBSD

2015-05-24 Thread Roman Bogorodskiy
Martin Kletzander wrote: > On Sat, May 23, 2015 at 09:15:08PM +0300, Roman Bogorodskiy wrote: > >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 > >

Re: [libvirt] [PATCH] libxl: load on FreeBSD

2015-05-23 Thread Martin Kletzander
On Sat, May 23, 2015 at 09:15:08PM +0300, Roman Bogorodskiy wrote: 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. Instead of using procfs, check if /

[libvirt] [PATCH] libxl: load on FreeBSD

2015-05-23 Thread Roman Bogorodskiy
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. Instead of using procfs, check if /dev/xen/xenstored, that's enough to check if we're running in dom0 in