aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/vmx_tsc_adjust_test.c
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2018-08-22 15:19:59 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2018-08-22 16:48:38 +0200
commitaee41be5933fdd1cd6fbd80b31954585e3520d98 (patch)
tree66aa31aa3139475eb5241f0ba830f369ae8393fd /tools/testing/selftests/kvm/vmx_tsc_adjust_test.c
parentkvm: selftest: include the tools headers (diff)
downloadlinux-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 '')
-rw-r--r--tools/testing/selftests/kvm/vmx_tsc_adjust_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/kvm/vmx_tsc_adjust_test.c b/tools/testing/selftests/kvm/vmx_tsc_adjust_test.c
index 4ddae120a9ea..49bcc68b0235 100644
--- a/tools/testing/selftests/kvm/vmx_tsc_adjust_test.c
+++ b/tools/testing/selftests/kvm/vmx_tsc_adjust_test.c
@@ -137,7 +137,7 @@ int main(int argc, char *argv[])
exit(KSFT_SKIP);
}
- vm = vm_create_default(VCPU_ID, (void *) l1_guest_code);
+ vm = vm_create_default(VCPU_ID, 0, (void *) l1_guest_code);
vcpu_set_cpuid(vm, VCPU_ID, kvm_get_supported_cpuid());
/* Allocate VMX pages and shared descriptors (vmx_pages). */