From: Andrew Cooper Date: Thu, 1 Jun 2017 11:15:22 +0000 (+0100) Subject: hvm32: Fill in tss.cr3 for the default task X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=424a269d48386f53c81600620ef3ea1c3b78dbce;p=people%2Fandrewcoop%2Fxen-test-framework.git hvm32: Fill in tss.cr3 for the default task 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 --- diff --git a/arch/x86/hvm/traps.c b/arch/x86/hvm/traps.c index 899b686..042afe0 100644 --- a/arch/x86/hvm/traps.c +++ b/arch/x86/hvm/traps.c @@ -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]),