Re: [PATCH 5/5] x86/Hyper-V: Add Hyper-V specific hvcall to set backing page
From: Borislav Petkov
Date: Thu Sep 18 2025 - 16:00:28 EST
On Fri, Sep 19, 2025 at 01:11:02AM +0800, Tianyu Lan wrote:
> Could I move the check into savic_register_gpa() or add a stub function
> to check guest runs on Hyper-V or not and then call associated function
> to register APIC backing page?
You probably should do
static struct apic apic_x2apic_savic_hyperv
and copy the apic_x2apic_savic contents into it and overwrite the .setup
function with your variant.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette