diff options
author | Sean Christopherson <seanjc@google.com> | 2021-06-22 23:05:12 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-06-24 11:31:17 +0300 |
commit | 96d41cfd1bb9964602fabea9c7e72ca723f749db (patch) | |
tree | c246228c1d9261b8b0dbcf0cf948088f6fe5eb37 /tools | |
parent | ecc3a92c6f4953c134a9590c762755e6593f507c (diff) | |
download | linux-96d41cfd1bb9964602fabea9c7e72ca723f749db.tar.xz |
KVM: selftests: Zero out the correct page in the Hyper-V features test
Fix an apparent copy-paste goof in hyperv_features where hcall_page
(which is two pages, so technically just the first page) gets zeroed
twice, and hcall_params gets zeroed none times.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210622200529.3650424-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/kvm/x86_64/hyperv_features.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/kvm/x86_64/hyperv_features.c b/tools/testing/selftests/kvm/x86_64/hyperv_features.c index 9947ef63dfa1..030c9447cb90 100644 --- a/tools/testing/selftests/kvm/x86_64/hyperv_features.c +++ b/tools/testing/selftests/kvm/x86_64/hyperv_features.c @@ -630,7 +630,7 @@ int main(void) memset(addr_gva2hva(vm, hcall_page), 0x0, 2 * getpagesize()); hcall_params = vm_vaddr_alloc(vm, getpagesize(), 0x20000, 0, 0); - memset(addr_gva2hva(vm, hcall_page), 0x0, getpagesize()); + memset(addr_gva2hva(vm, hcall_params), 0x0, getpagesize()); vcpu_args_set(vm, VCPU_ID, 2, addr_gva2gpa(vm, hcall_page), hcall_params); vcpu_enable_cap(vm, VCPU_ID, &cap); |