KVM: selftests: nSVM: Set up MSR-Bitmap for SVM guests
authorVitaly Kuznetsov <vkuznets@redhat.com>
Thu, 3 Feb 2022 10:46:18 +0000 (11:46 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 18:50:47 +0000 (13:50 -0500)
commit0b815117da63ba71e06faffc7b9b43e49b08bfea
tree66f80220544279534a37137379038b372403beca
parent70e477d996c88d3915d0a870bada29ecf55e45fc
KVM: selftests: nSVM: Set up MSR-Bitmap for SVM guests

Similar to VMX, allocate memory for MSR-Bitmap and fill in 'msrpm_base_pa'
in VMCB. To use it, tests will need to set INTERCEPT_MSR_PROT interception
along with the required bits in the MSR-Bitmap.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20220203104620.277031-5-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/x86_64/svm_util.h
tools/testing/selftests/kvm/lib/x86_64/svm.c