]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
xen/xenstored: Handle xenstored daemon in HVM domain
authorJulien Grall <julien.grall@linaro.org>
Mon, 16 Jun 2014 19:31:36 +0000 (20:31 +0100)
committerJulien Grall <julien.grall@citrix.com>
Mon, 5 Oct 2015 17:55:47 +0000 (18:55 +0100)
sys/dev/xen/xenstore/xenstored_dev.c

index ae24085dc80918a193a16634469de68661c4efe1..9d0f41b7e2344f7cf8c82c2e7a05fa219f313714 100644 (file)
@@ -42,6 +42,7 @@ __FBSDID("$FreeBSD$");
 #include <xen/xen-os.h>
 
 #include <xen/hypervisor.h>
+#include <xen/hvm.h>
 #include <xen/xenstore/xenstorevar.h>
 #include <xen/xenstore/xenstore_internal.h>
 
@@ -103,9 +104,10 @@ xsd_dev_mmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr,
 static void
 xsd_dev_identify(driver_t *driver __unused, device_t parent)
 {
-
-       if (!xen_pv_domain())
+       if (!xen_domain())
                return;
+
+       /* TODO FIXME */
        if (HYPERVISOR_start_info->store_mfn != 0)
                return;