kvm: selftests: x86_64: dirty_log_test: fix -t
authorAndrew Jones <drjones@redhat.com>
Tue, 6 Nov 2018 13:57:06 +0000 (14:57 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Dec 2018 10:28:27 +0000 (11:28 +0100)
Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
tools/testing/selftests/kvm/dirty_log_test.c

index 4629c7ccfa283137561c35c508acd46deaf1bb28..3be1539bbd4f6000831a021b949ee70449f153f8 100644 (file)
@@ -255,6 +255,15 @@ static void run_test(enum vm_guest_mode mode, unsigned long iterations,
 
        DEBUG("Testing guest mode: %s\n", vm_guest_mode_string(mode));
 
+#ifdef __x86_64__
+       /*
+        * FIXME
+        * The x86_64 kvm selftests framework currently only supports a
+        * single PML4 which restricts the number of physical address
+        * bits we can change to 39.
+        */
+       guest_pa_bits = 39;
+#endif
        max_gfn = (1ul << (guest_pa_bits - guest_page_shift)) - 1;
        guest_page_size = (1ul << guest_page_shift);
        /* 1G of guest page sized pages */