microsoft / OHCL-Linux-Kernel

Underhill Linux Kernel
Other
10 stars 3 forks source link

x86/hyperv: Set the VTL2 realmode header on hv_vtl_init_platform #18

Closed yjiang5 closed 3 months ago

yjiang5 commented 3 months ago

For the VTL2 hyperv guest, currently the hv_vtl_init_platform() clears x86_platform.realmode_reserve/init while the hv_vtl_early_init() sets the real_mode_header.

Set the real_mode_header together with x86_platform.realmode_reserve/init in hv_vtl_init_platform(). This is ok because x86_platform.realmode_init() is invoked from an early initcall while hv_vtl_init_platform() is called during early boot.

Suggested-by: Thomas Gleixner tglx@linutronix.de Link: https://lore.kernel.org/lkml/87a5ho2q6x.ffs@tglx/

chris-oo commented 3 months ago

Works fine on SNP