diff options
| author | Roger Pau Monné <royger@FreeBSD.org> | 2014-03-11 10:07:55 +0000 |
|---|---|---|
| committer | Roger Pau Monné <royger@FreeBSD.org> | 2014-03-11 10:07:55 +0000 |
| commit | 6f4246bce191e5491dcdaf61df18efa2c9a38a6a (patch) | |
| tree | df32f34312cccca9645eeb3c79e89b68002da4e3 /sys/xen/xen-os.h | |
| parent | 1a9cdd373a6a40539668898b8b32d5cb16103149 (diff) | |
Notes
Diffstat (limited to 'sys/xen/xen-os.h')
| -rw-r--r-- | sys/xen/xen-os.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/xen/xen-os.h b/sys/xen/xen-os.h index c7474d80da74b..62b5bf65c7607 100644 --- a/sys/xen/xen-os.h +++ b/sys/xen/xen-os.h @@ -82,6 +82,13 @@ xen_hvm_domain(void) return (xen_domain_type == XEN_HVM_DOMAIN); } +static inline bool +xen_initial_domain(void) +{ + return (xen_domain() && HYPERVISOR_start_info != NULL && + (HYPERVISOR_start_info->flags & SIF_INITDOMAIN) != 0); +} + #ifndef xen_mb #define xen_mb() mb() #endif |
