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 nics */ | |||||
| extern int xen_disable_pv_nics; | |||||
| static inline bool | |||||
| xen_pv_nics_disabled(void) | |||||
royger: After PVHv1 removal every supported guest is HVM, so we can remove the check (will do that on a… | |||||
| { | |||||
| 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_ */ | ||||
After PVHv1 removal every supported guest is HVM, so we can remove the check (will do that on a different commit), and get away with the HVM vs PV difference in the code.