KVM: selftests: Harden and comment XSS / KVM_SET_MSRS interaction
authorSean Christopherson <seanjc@google.com>
Thu, 2 Jun 2022 21:12:22 +0000 (14:12 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:46:27 +0000 (11:46 -0400)
commit0ce74180f306981534d023199017a90b77a92004
tree73793f653cc9bad48925948cc682ef5604721fdf
parentc095cb609b3aa56fd24e2907556c24fef88b9180
KVM: selftests: Harden and comment XSS / KVM_SET_MSRS interaction

Assert that KVM_SET_MSRS returns '0' or '1' when setting XSS to a
non-zero value.  The ioctl() itself should "succeed", its only the
setting of the XSS MSR that should fail/fault.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86_64/xss_msr_test.c