]> git.itanic.dy.fi Git - linux-stable/commit
KVM: selftests: Don't set reserved bits for invalid Hyper-V hypercall number
authorVitaly Kuznetsov <vkuznets@redhat.com>
Thu, 22 Sep 2022 08:39:41 +0000 (10:39 +0200)
committerSean Christopherson <seanjc@google.com>
Wed, 28 Sep 2022 19:47:20 +0000 (12:47 -0700)
commit31d3b871f5ee9b195d90b4d14b74a7864209c6e8
tree328559826fbc4770ef10b1ea23c1273f5a69237b
parentdfb45db43e9f6283a79230c8ea9cb589f14791b0
KVM: selftests: Don't set reserved bits for invalid Hyper-V hypercall number

Bits 27 through 31 in Hyper-V hypercall 'control' are reserved (see
HV_HYPERCALL_RSVD0_MASK) but '0xdeadbeef' includes them. This causes
KVM to return HV_STATUS_INVALID_HYPERCALL_INPUT instead of the expected
HV_STATUS_INVALID_HYPERCALL_CODE.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Link: https://lore.kernel.org/all/87fsgjol20.fsf@redhat.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86_64/hyperv_features.c