Skip to content

Commit 4c282e5

Browse files
Like Xubonzini
authored andcommitted
KVM: x86: Update vCPU's runtime CPUID on write to MSR_IA32_XSS
Do a runtime CPUID update for a vCPU if MSR_IA32_XSS is written, as the size in bytes of the XSAVE area is affected by the states enabled in XSS. Fixes: 2030009 ("kvm: vmx: add MSR logic for XSAVES") Cc: [email protected] Signed-off-by: Like Xu <[email protected]> [sean: split out as a separate patch, adjust Fixes tag] Signed-off-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent be4f3b3 commit 4c282e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/kvm/x86.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3535,6 +3535,7 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
35353535
if (data & ~supported_xss)
35363536
return 1;
35373537
vcpu->arch.ia32_xss = data;
3538+
kvm_update_cpuid_runtime(vcpu);
35383539
break;
35393540
case MSR_SMI_COUNT:
35403541
if (!msr_info->host_initiated)

0 commit comments

Comments
 (0)