]> xenbits.xensource.com Git - people/andrewcoop/xen-test-framework.git/commitdiff
hvm32: Fill in tss.cr3 for the default task
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 1 Jun 2017 11:15:22 +0000 (12:15 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 6 Jul 2017 15:52:18 +0000 (16:52 +0100)
This is necessary for 32bit tests in, which end up task switching back to the
default task.  %cr3 gets reloaded as part of a task switch, which causes a
triple fault for 32bit paged environments.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
arch/x86/hvm/traps.c

index 899b686c26145474ca712a1338e083a26cd496c7..042afe002274d58ec92047b9f14e65f75b10e3d9 100644 (file)
@@ -36,6 +36,8 @@ env_tss tss __aligned(16) =
     .esp0 = _u(&boot_stack[2 * PAGE_SIZE]),
     .ss0  = __KERN_DS,
 
+    .cr3  = _u(cr3_target),
+
 #elif defined(__x86_64__)
 
     .rsp0 =   _u(&boot_stack[2 * PAGE_SIZE]),