KVM: selftests: Add test for user space MSR handling
authorAlexander Graf <graf@amazon.com>
Fri, 25 Sep 2020 14:34:22 +0000 (16:34 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:58:45 +0000 (07:58 -0400)
commitd468706e313ca3ec85b0e6e71a960ee0bbadd9f3
treefe3eb3db82169c096b2c636602d78a98f0bc32c8
parent1a155254ff937ac92cf9940d273ea597b2c667a2
KVM: selftests: Add test for user space MSR handling

Now that we have the ability to handle MSRs from user space and also to
select which ones we do want to prevent in-kernel KVM code from handling,
let's add a selftest to show case and verify the API.

Signed-off-by: Alexander Graf <graf@amazon.com>
Message-Id: <20200925143422.21718-9-graf@amazon.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/.gitignore
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/x86_64/user_msr_test.c [new file with mode: 0644]