KVM: selftests: Convert VMX's PMU capabilities test to printf guest asserts
authorSean Christopherson <seanjc@google.com>
Sat, 29 Jul 2023 00:36:39 +0000 (17:36 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 2 Aug 2023 21:43:15 +0000 (14:43 -0700)
commit30a6e0b4553dbf2d935d26945788d37ddb234fa7
tree4843fe50f7733aa3f0a2312d149813ff8d04923d
parent417bfd0c820f17f40572aca37e5134ed329b791f
KVM: selftests: Convert VMX's PMU capabilities test to printf guest asserts

Convert x86's VMX PMU capabilities test to use printf-based guest asserts.
Opportunstically add a helper to do the WRMSR+assert so as to reduce the
amount of copy+paste needed to spit out debug information.

Link: https://lore.kernel.org/r/20230729003643.1053367-31-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86_64/vmx_pmu_caps_test.c