aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kvm/cpuid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c
index 644bfe828ce1..8a80737ee6e6 100644
--- a/arch/x86/kvm/cpuid.c
+++ b/arch/x86/kvm/cpuid.c
@@ -464,6 +464,8 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,
464 u64 supported = kvm_supported_xcr0(); 464 u64 supported = kvm_supported_xcr0();
465 465
466 entry->eax &= supported; 466 entry->eax &= supported;
467 entry->ebx = xstate_required_size(supported, false);
468 entry->ecx = entry->ebx;
467 entry->edx &= supported >> 32; 469 entry->edx &= supported >> 32;
468 entry->flags |= KVM_CPUID_FLAG_SIGNIFCANT_INDEX; 470 entry->flags |= KVM_CPUID_FLAG_SIGNIFCANT_INDEX;
469 if (!supported) 471 if (!supported)