From af194bcd00484030d7278fd8c7b9c1e7a27fa499 Mon Sep 17 00:00:00 2001 From: Victor Sun Date: Fri, 20 Jul 2018 19:04:10 +0800 Subject: [PATCH] HV: fix bug of restore rsp context We should use movq to restore rsp instead of mov. Signed-off-by: Victor Sun Acked-by: Anthony Xu --- hypervisor/arch/x86/wakeup.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypervisor/arch/x86/wakeup.S b/hypervisor/arch/x86/wakeup.S index 7b0c93155..3188a2511 100644 --- a/hypervisor/arch/x86/wakeup.S +++ b/hypervisor/arch/x86/wakeup.S @@ -135,7 +135,7 @@ restore_s3_context: *160=0xa0=CPU_CONTEXT_OFFSET_RSP */ mov 0x138 + cpu_ctx(%rip), %ss - mov 0xa0 + cpu_ctx(%rip), %rsp + movq 0xa0 + cpu_ctx(%rip), %rsp /*168U=0xa8=CPU_CONTEXT_OFFSET_RFLAGS*/ pushq 0xa8 + cpu_ctx(%rip)