KVM: selftests: fix hyperv_clock test
authorMaxim Levitsky <mlevitsk@redhat.com>
Wed, 4 Aug 2021 11:20:57 +0000 (14:20 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 4 Aug 2021 13:43:03 +0000 (09:43 -0400)
commit13c2c3cfe01952575b1dd5e24d450fcccff93bc0
treef9296ad799b1d138ce0c7ebb52aaae47df26be51
parentbb2baeb214a71cda47d50dce80414016117ddda0
KVM: selftests: fix hyperv_clock test

The test was mistakenly using addr_gpa2hva on a gva and that happened
to work accidentally.  Commit 106a2e766eae ("KVM: selftests: Lower the
min virtual address for misc page allocations") revealed this bug.

Fixes: 2c7f76b4c42b ("selftests: kvm: Add basic Hyper-V clocksources tests", 2021-03-18)
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20210804112057.409498-1-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86_64/hyperv_clock.c