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:
@@ -356,7 +356,7 @@ void guest_cpuid(struct vcpu *vcpu,
|
||||
break;
|
||||
|
||||
case 0x0d:
|
||||
if (!is_xsave_supported()) {
|
||||
if (!cpu_has_cap(X86_FEATURE_OSXSAVE)) {
|
||||
*eax = 0;
|
||||
*ebx = 0;
|
||||
*ecx = 0;
|
||||
|
||||
Reference in New Issue
Block a user