On 31.07.2025 11:27, Petr Beneš wrote: > From: Petr Beneš <w1be...@gmail.com> > > 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 altp2m is disabled. > - do_altp2m_op() returns EOPNOTSUPP when altp2m is disabled. > - struct hvm_vcpu, arch_domain, and hvm_function_table only define altp2m > fields when the feature is enabled. > - Moved several declarations under #ifdef CONFIG_ALTP2M in p2m.h to avoid > polluting builds that don't require the feature. > > Signed-off-by: Petr Beneš <w1be...@gmail.com>
Reviewed-by: Jan Beulich <jbeul...@suse.com>