diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2022-11-01 17:54:23 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-11-21 14:42:39 +0300 |
commit | 75ee7505feae16bbfbed62115e04f762047c4765 (patch) | |
tree | 4c9736db3fe72e9034784ac4544bc944502de587 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 8fda37cf3d41f1dfb0667c4b10e3dd01d17735b8 (diff) | |
download | linux-75ee7505feae16bbfbed62115e04f762047c4765.tar.xz |
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 <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20221101145426.251680-46-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions