Changeset View
Changeset View
Standalone View
Standalone View
sys/x86/include/xen/xen-os.h
Show All 37 Lines | |||||
#define VM_MEMATTR_XEN VM_MEMATTR_WRITE_BACK | #define VM_MEMATTR_XEN VM_MEMATTR_WRITE_BACK | ||||
/* 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; | |||||
/* tunable for disabling PV nics */ | /* tunable for disabling PV nics */ | ||||
extern int xen_disable_pv_nics; | extern int xen_disable_pv_nics; | ||||
static inline bool | |||||
xen_pv_disks_disabled(void) | |||||
{ | |||||
return (xen_hvm_domain() && xen_disable_pv_disks != 0); | |||||
} | |||||
static inline bool | static inline bool | ||||
xen_pv_nics_disabled(void) | xen_pv_nics_disabled(void) | ||||
{ | { | ||||
return (xen_hvm_domain() && xen_disable_pv_nics != 0); | return (xen_hvm_domain() && xen_disable_pv_nics != 0); | ||||
} | } | ||||
#endif /* !__ASSEMBLY__ */ | #endif /* !__ASSEMBLY__ */ | ||||
#endif /* _MACHINE_X86_XEN_XEN_OS_H_ */ | #endif /* _MACHINE_X86_XEN_XEN_OS_H_ */ |