diff options
author | Vitaly Kuznetsov <[email protected]> | 2022-11-01 15:54:23 +0100 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2022-11-21 06:42:39 -0500 |
commit | 75ee7505feae16bbfbed62115e04f762047c4765 (patch) | |
tree | 4c9736db3fe72e9034784ac4544bc944502de587 /lib/mpi/mpi-sub-ui.c | |
parent | 8fda37cf3d41f1dfb0667c4b10e3dd01d17735b8 (diff) |
KVM: selftests: Introduce rdmsr_from_l2() and use it for MSR-Bitmap tests
Hyper-V MSR-Bitmap tests do RDMSR from L2 to exit to L1. While 'evmcs_test'
correctly clobbers all GPRs (which are not preserved), 'hyperv_svm_test'
does not. Introduce a more generic rdmsr_from_l2() to avoid code
duplication and remove hardcoding of MSRs. Do not put it in common code
because it is really just a selftests bug rather than a processor
feature that requires it.
Signed-off-by: Vitaly Kuznetsov <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions