Changeset View
Changeset View
Standalone View
Standalone View
sys/x86/include/xen/xen-os.h
Show All 33 Lines | |||||
#define VM_MEMATTR_XEN_SHARED VM_MEMATTR_DEFAULT | #define VM_MEMATTR_XEN_SHARED VM_MEMATTR_DEFAULT | ||||
/* Everything below this point is not included by assembler (.S) files. */ | /* Everything below this point is not included by assembler (.S) files. */ | ||||
#ifndef __ASSEMBLY__ | #ifndef __ASSEMBLY__ | ||||
/* If non-zero, the hypervisor has been configured to use a direct vector */ | /* If non-zero, the hypervisor has been configured to use a direct vector */ | ||||
extern int xen_vector_callback_enabled; | extern int xen_vector_callback_enabled; | ||||
/* tunable for disabling PV disks */ | |||||
extern int xen_disable_pv_disks; | |||||
static inline bool | static inline bool | ||||
xen_support_evtchn_rebind(void) | xen_support_evtchn_rebind(void) | ||||
{ | { | ||||
return (!xen_hvm_domain() || xen_vector_callback_enabled); | return (!xen_hvm_domain() || xen_vector_callback_enabled); | ||||
} | |||||
static inline bool | |||||
xen_pv_disks_disabled(void) | |||||
{ | |||||
return (xen_hvm_domain() && xen_disable_pv_disks != 0); | |||||
} | } | ||||
#endif /* !__ASSEMBLY__ */ | #endif /* !__ASSEMBLY__ */ | ||||
#endif /* _MACHINE_X86_XEN_XEN_OS_H_ */ | #endif /* _MACHINE_X86_XEN_XEN_OS_H_ */ |