diff options
author | Peter Xu <peterx@redhat.com> | 2018-08-22 15:19:59 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-08-22 16:48:38 +0200 |
commit | aee41be5933fdd1cd6fbd80b31954585e3520d98 (patch) | |
tree | 66aa31aa3139475eb5241f0ba830f369ae8393fd /tools/testing/selftests/kvm/include | |
parent | kvm: selftest: include the tools headers (diff) | |
download | linux-dev-aee41be5933fdd1cd6fbd80b31954585e3520d98.tar.xz linux-dev-aee41be5933fdd1cd6fbd80b31954585e3520d98.zip |
kvm: selftest: pass in extra memory when create vm
This information can be used to decide the size of the default memory
slot, which will need to cover the extra pages with page tables.
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/include')
-rw-r--r-- | tools/testing/selftests/kvm/include/kvm_util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/kvm/include/kvm_util.h b/tools/testing/selftests/kvm/include/kvm_util.h index d8ca48687e35..bd06d63a8fdf 100644 --- a/tools/testing/selftests/kvm/include/kvm_util.h +++ b/tools/testing/selftests/kvm/include/kvm_util.h @@ -127,7 +127,8 @@ kvm_get_supported_cpuid_entry(uint32_t function) return kvm_get_supported_cpuid_index(function, 0); } -struct kvm_vm *vm_create_default(uint32_t vcpuid, void *guest_code); +struct kvm_vm *vm_create_default(uint32_t vcpuid, uint64_t extra_mem_size, + void *guest_code); void vm_vcpu_add_default(struct kvm_vm *vm, uint32_t vcpuid, void *guest_code); typedef void (*vmx_guest_code_t)(vm_vaddr_t vmxon_vaddr, |