diff options
author | Ricardo Koller <ricarkol@google.com> | 2021-07-02 13:10:42 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-07-15 10:19:41 -0400 |
commit | 6f2f86ec28fb68cf6a342767a35f7b13703aa96f (patch) | |
tree | 1d5c3e3d313728fd49dfb58db6057c7491eab9c2 | |
parent | 004d62eb4e57db3c391ed0df007cc11c93b6fbeb (diff) | |
download | linux-6f2f86ec28fb68cf6a342767a35f7b13703aa96f.tar.bz2 |
KVM: selftests: Address extra memslot parameters in vm_vaddr_alloc
Commit a75a895e6457 ("KVM: selftests: Unconditionally use memslot 0 for
vaddr allocations") removed the memslot parameters from vm_vaddr_alloc.
It addressed all callers except one under lib/aarch64/, due to a race
with commit e3db7579ef35 ("KVM: selftests: Add exception handling
support for aarch64")
Fix the vm_vaddr_alloc call in lib/aarch64/processor.c.
Reported-by: Zenghui Yu <yuzenghui@huawei.com>
Signed-off-by: Ricardo Koller <ricarkol@google.com>
Message-Id: <20210702201042.4036162-1-ricarkol@google.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | tools/testing/selftests/kvm/lib/aarch64/processor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/kvm/lib/aarch64/processor.c b/tools/testing/selftests/kvm/lib/aarch64/processor.c index 9f49f6caafe5..632b74d6b3ca 100644 --- a/tools/testing/selftests/kvm/lib/aarch64/processor.c +++ b/tools/testing/selftests/kvm/lib/aarch64/processor.c @@ -401,7 +401,7 @@ unexpected_exception: void vm_init_descriptor_tables(struct kvm_vm *vm) { vm->handlers = vm_vaddr_alloc(vm, sizeof(struct handlers), - vm->page_size, 0, 0); + vm->page_size); *(vm_vaddr_t *)addr_gva2hva(vm, (vm_vaddr_t)(&exception_handlers)) = vm->handlers; } |