diff options
author | Sean Christopherson <seanjc@google.com> | 2021-05-04 20:17:27 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-05-07 13:06:17 +0300 |
commit | b6194b94a2ca4affce5aab1bbf773a977ad73671 (patch) | |
tree | e5c51250dedd32acc79e4e04f0f62e197b2bd38a /lib/mpi/mpi-add.c | |
parent | 36fa06f9ff39f23e03cd8206dc6bbb7711c23be6 (diff) | |
download | linux-b6194b94a2ca4affce5aab1bbf773a977ad73671.tar.xz |
KVM: VMX: Configure list of user return MSRs at module init
Configure the list of user return MSRs that are actually supported at
module init instead of reprobing the list of possible MSRs every time a
vCPU is created. Curating the list on a per-vCPU basis is pointless; KVM
is completely hosed if the set of supported MSRs changes after module init,
or if the set of MSRs differs per physical PCU.
The per-vCPU lists also increase complexity (see __vmx_find_uret_msr()) and
creates corner cases that _should_ be impossible, but theoretically exist
in KVM, e.g. advertising RDTSCP to userspace without actually being able to
virtualize RDTSCP if probing MSR_TSC_AUX fails.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210504171734.1434054-9-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions