]> Gentwo Git Trees - linux/.git/commit
KVM: selftests: Add KVM_{G,S}ET_ONE_REG coverage to MSRs test
authorSean Christopherson <seanjc@google.com>
Fri, 19 Sep 2025 22:32:55 +0000 (15:32 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 23 Sep 2025 16:52:18 +0000 (09:52 -0700)
commit80c2b6d8e7bb194744f5fdfc4f0560e053ababda
treeb58e58c8ba7046a635b78cfcf44bad81e5438746
parenta8b9cca99cf454799ef799f8af9bdb55389cfd94
KVM: selftests: Add KVM_{G,S}ET_ONE_REG coverage to MSRs test

When KVM_{G,S}ET_ONE_REG are supported, verify that MSRs can be accessed
via ONE_REG and through the dedicated MSR ioctls.  For simplicity, run
the test twice, e.g. instead of trying to get MSR values into the exact
right state when switching write methods.

Reviewed-by: Chao Gao <chao.gao@intel.com>
Link: https://lore.kernel.org/r/20250919223258.1604852-49-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86/msrs_test.c