Re: [PATCH 5/5] x86/Hyper-V: Add Hyper-V specific hvcall to set backing page

Borislav Petkov
2025-09-18T20:00:28Z

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.