From: Gleb Natapov <g...@redhat.com> 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> Signed-off-by: Avi Kivity <a...@redhat.com> 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-commits" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html