]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdd1e6383bfaf9ea21c3662da7ba5100587f5b1a8
tree73793f653cc9bad48925948cc682ef5604721fdf
parent3eb2d1265a3f5b3a467891b3acdb6b31b0e3ced4
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