Reset stack pointer to zero on S3 resume before jumping to resume vector
to prevent tpr patching on boot CPU during resume.

Signed-off-by: Gleb Natapov <g...@redhat.com>
---

 bios/rombios.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/bios/rombios.c b/bios/rombios.c
index b7a240f..54c94bf 100644
--- a/bios/rombios.c
+++ b/bios/rombios.c
@@ -2225,6 +2225,7 @@ s3_resume()
     BX_INFO("S3 resume jump to %x:%x\n", (s3_wakeup_vector >> 4),
                    (s3_wakeup_vector & 0xF));
 ASM_START
+    mov sp, #0 ;; disable tpr patching on boot CPU
     jmpf [0x04b6]
 ASM_END
     return 1;

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to