]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Fix hex vs. decimal snafu in Xen test
authorSean Christopherson <seanjc@google.com>
Wed, 10 Feb 2021 18:26:07 +0000 (10:26 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Feb 2021 13:02:09 +0000 (08:02 -0500)
commitf4e0826221720f1305f0bdc9701990ed8ac02d05
tree524b67edcf082a249f2ec8951e8aecad85b30074
parenta70c84b9228c242116973d337bfa391fe204903c
KVM: selftests: Fix hex vs. decimal snafu in Xen test

The Xen shinfo selftest uses '40' when setting the GPA of the vCPU info
struct, but checks for the result at '0x40'.  Arbitrarily use the hex
version to resolve the bug.

Fixes: a19fb1ccaf41 ("KVM: x86: declare Xen HVM shared info capability and add test case")
Cc: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210210182609.435200-4-seanjc@google.com>
Reviewed-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c