]> 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)
commit0e6deca96a020208858e5cdccb6d3fe9bd793969
tree524b67edcf082a249f2ec8951e8aecad85b30074
parent40855cf706b0c0655865f21247857624ca4d419e
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: 4b71aea20b78 ("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