mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 13:37:36 +02:00
KVM: x86: Update vCPU's runtime CPUID on write to MSR_IA32_XSS
commit4c282e51e4upstream. 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:203000993d("kvm: vmx: add MSR logic for XSAVES") Cc: stable@vger.kernel.org Signed-off-by: Like Xu <likexu@tencent.com> [sean: split out as a separate patch, adjust Fixes tag] Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20220126172226.2298529-3-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6b55af102b
commit
e92cac1dd8
|
|
@ -3171,6 +3171,7 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
|
||||||
if (data & ~supported_xss)
|
if (data & ~supported_xss)
|
||||||
return 1;
|
return 1;
|
||||||
vcpu->arch.ia32_xss = data;
|
vcpu->arch.ia32_xss = data;
|
||||||
|
kvm_update_cpuid_runtime(vcpu);
|
||||||
break;
|
break;
|
||||||
case MSR_SMI_COUNT:
|
case MSR_SMI_COUNT:
|
||||||
if (!msr_info->host_initiated)
|
if (!msr_info->host_initiated)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user