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:
Li, Fei1
2018-04-09 10:20:03 +08:00
committed by Jack Ren
parent 6560ff367c
commit d7d2ef8c88
4 changed files with 12 additions and 15 deletions

View File

@@ -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;