Re: [PATCH v10 5/9] x86/altp2m: Wrap altp2m-specific code in #ifdef CONFIG_ALTP2M

2025-07-22 Thread Jan Beulich
On 16.07.2025 22:15, Petr Beneš wrote: > --- a/xen/arch/x86/hvm/emulate.c > +++ b/xen/arch/x86/hvm/emulate.c > @@ -2686,8 +2686,8 @@ static int cf_check hvmemul_tlb_op( > return rc; > } > > -static int cf_check hvmemul_vmfunc( > -struct x86_emulate_ctxt *ctxt) > +#ifdef CONFIG_ALTP2M >

[PATCH v10 5/9] x86/altp2m: Wrap altp2m-specific code in #ifdef CONFIG_ALTP2M

2025-07-16 Thread Petr Beneš
From: Petr Beneš This change consistently guards all altp2m-related functionality behind #ifdef CONFIG_ALTP2M, so that code and data structures related to alternate p2m views are only included when the feature is enabled. Apart from that: - hvmemul_vmfunc() returns X86EMUL_UNHANDLEABLE when altp