Re: [PATCH 33/43] KVM: VMX: Refresh list of user return MSRs after setting guest CPUID

From: Reiji Watanabe
Date: Wed May 19 2021 - 01:46:20 EST


On Fri, Apr 23, 2021 at 5:55 PM Sean Christopherson <seanjc@xxxxxxxxxx> wrote:
>
> After a CPUID update, refresh the list of user return MSRs that are
> loaded into hardware when running the vCPU. This is necessary to handle
> the oddball case where userspace exposes X86_FEATURE_RDTSCP to the guest
> after the vCPU is running.
>
> Fixes: 0023ef39dc35 ("kvm: vmx: Set IA32_TSC_AUX for legacy mode guests")
> Fixes: 4e47c7a6d714 ("KVM: VMX: Add instruction rdtscp support for guest")
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>

Reviewed-by: Reiji Watanabe <reijiw@xxxxxxxxxx>