mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 15:45:05 +00:00
hv: xsave: remove is_xsave_supported
Update X86_FEATURE_OSXSAVE when enabled and replace is_xsave_supported with cpu_has_cap(X86_FEATURE_OSXSAVE). Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -933,7 +933,7 @@ static void init_exec_ctrl(struct vcpu *vcpu)
|
||||
exec_vmwrite(VMX_TPR_THRESHOLD, 0);
|
||||
}
|
||||
|
||||
if (is_xsave_supported()) {
|
||||
if (cpu_has_cap(X86_FEATURE_OSXSAVE)) {
|
||||
exec_vmwrite64(VMX_XSS_EXITING_BITMAP_FULL, 0);
|
||||
value32 |= VMX_PROCBASED_CTLS2_XSVE_XRSTR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user