Skip to content
Commit b5e66df3 authored by Sean Christopherson's avatar Sean Christopherson
Browse files

KVM: selftests: Add helpers for safe and safe+forced RDMSR, RDPMC, and XGETBV



Add helpers for safe and safe-with-forced-emulations versions of RDMSR,
RDPMC, and XGETBV.  Use macro shenanigans to eliminate the rather large
amount of boilerplate needed to get values in and out of registers.

Tested-by: default avatarDapeng Mi <dapeng1.mi@linux.intel.com>
Link: https://lore.kernel.org/r/20240109230250.424295-29-seanjc@google.com
Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent ab3b6a7d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment