vmx_set_msr_intercept(v, msr, VMX_MSR_W);
}
-static bool_t vmx_is_singlestep_supported(void)
-{
- return !!cpu_has_monitor_trap_flag;
-}
-
static void vmx_vcpu_update_eptp(struct vcpu *v)
{
struct domain *d = v->domain;
.nhvm_domain_relinquish_resources = nvmx_domain_relinquish_resources,
.nhvm_hap_walk_L1_p2m = nvmx_hap_walk_L1_p2m,
.enable_msr_interception = vmx_enable_msr_interception,
- .is_singlestep_supported = vmx_is_singlestep_supported,
.altp2m_vcpu_update_p2m = vmx_vcpu_update_eptp,
.altp2m_vcpu_update_vmfunc_ve = vmx_vcpu_update_vmfunc_ve,
.altp2m_vcpu_emulate_ve = vmx_vcpu_emulate_ve,
return NULL;
}
+ vmx_function_table.singlestep_supported = cpu_has_monitor_trap_flag;
+
if ( cpu_has_vmx_dt_exiting )
vmx_function_table.set_descriptor_access_exiting =
vmx_set_descriptor_access_exiting;
/* Necessary hardware support for alternate p2m's? */
bool altp2m_supported;
+ bool singlestep_supported;
/* Hardware virtual interrupt delivery enable? */
bool virtual_intr_delivery_enabled;
uint8_t *p2m_acc, struct npfec npfec);
void (*enable_msr_interception)(struct domain *d, uint32_t msr);
- bool_t (*is_singlestep_supported)(void);
/* Alternate p2m */
void (*altp2m_vcpu_update_p2m)(struct vcpu *v);
alternative_vcall(hvm_funcs.enable_msr_interception, d, msr);
}
-static inline bool_t hvm_is_singlestep_supported(void)
+static inline bool hvm_is_singlestep_supported(void)
{
- return (hvm_funcs.is_singlestep_supported &&
- alternative_call(hvm_funcs.is_singlestep_supported));
+ return hvm_funcs.singlestep_supported;
}
static inline bool hvm_hap_supported(void)