]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: selftests: Add a testcase for disabling feature MSRs init quirk
authorSean Christopherson <seanjc@google.com>
Fri, 2 Aug 2024 18:55:11 +0000 (11:55 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 1 Nov 2024 16:22:36 +0000 (09:22 -0700)
commit0581dfbad9542061406c40eccab9037e59ea62c8
tree5b57032f9393b6c9174d06face6613f66e14b340
parentb799e3e7da2c8b2ae03c977307b2f082fac6140e
KVM: selftests: Add a testcase for disabling feature MSRs init quirk

Expand and rename the feature MSRs test to verify KVM's ABI and quirk
for initializing feature MSRs.

Exempt VM_CR{0,4}_FIXED1 from most tests as KVM intentionally takes full
control of the MSRs, e.g. to prevent L1 from running L2 with bogus CR0
and/or CR4 values.

Link: https://lore.kernel.org/r/20240802185511.305849-10-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/x86_64/feature_msrs_test.c [new file with mode: 0644]
tools/testing/selftests/kvm/x86_64/get_msr_index_features.c [deleted file]