]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commitfc79ef3e7b7590e42fe01bc9d9e2635413905716
tree524b67edcf082a249f2ec8951e8aecad85b30074
parenta685d99208621b39dd0764e2bfdddfd19bb080f2
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: 8d4e7e80838f ("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