From 8f640c61ae62ef4fd5d7c822d2a33a0d0286bf61 Mon Sep 17 00:00:00 2001 From: Yifan Liu Date: Wed, 26 May 2021 02:05:38 +0900 Subject: [PATCH] hv: restore the hypervisor 64-bit entry address for efi-stub EFI-stub is required again to support secure boot on certain platform. Tracked-On: #6078 Signed-off-by: Toshiki Nishioka Signed-off-by: Yifan Liu --- hypervisor/arch/x86/boot/cpu_primary.S | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hypervisor/arch/x86/boot/cpu_primary.S b/hypervisor/arch/x86/boot/cpu_primary.S index 11d08155c..140d4d3f4 100644 --- a/hypervisor/arch/x86/boot/cpu_primary.S +++ b/hypervisor/arch/x86/boot/cpu_primary.S @@ -216,7 +216,15 @@ jmpbuf_32: /* 0x0008 = HOST_GDT_RING0_CODE_SEL */ .word 0x0008 -.code64 + .org 0x200 + .code64 + .global cpu_primary_start_64 + +cpu_primary_start_64: + lea boot_regs(%rip), %rax + movl %edi, (%rax) + movl %esi, 4(%rax) + primary_start_long_mode: /* Initialize temporary stack pointer, size = 0x1000 */