summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/set_sregs_test.c
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2018-08-22 10:19:59 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2018-08-22 17:48:38 +0300
commitaee41be5933fdd1cd6fbd80b31954585e3520d98 (patch)
tree66aa31aa3139475eb5241f0ba830f369ae8393fd /tools/testing/selftests/kvm/set_sregs_test.c
parentbc8eb2fe2eefbcf66c947daebce7055a4110c66c (diff)
downloadlinux-aee41be5933fdd1cd6fbd80b31954585e3520d98.tar.xz
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/set_sregs_test.c')
-rw-r--r--tools/testing/selftests/kvm/set_sregs_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/kvm/set_sregs_test.c b/tools/testing/selftests/kvm/set_sregs_test.c
index 090fd3f19352..881419d5746e 100644
--- a/tools/testing/selftests/kvm/set_sregs_test.c
+++ b/tools/testing/selftests/kvm/set_sregs_test.c
@@ -36,7 +36,7 @@ int main(int argc, char *argv[])
setbuf(stdout, NULL);
/* Create VM */
- vm = vm_create_default(VCPU_ID, NULL);
+ vm = vm_create_default(VCPU_ID, 0, NULL);
vcpu_sregs_get(vm, VCPU_ID, &sregs);
sregs.apic_base = 1 << 10;