[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v10 4/9] x86/altp2m: Remove p2m_altp2m_check stubs from unsupported architectures



On Tue, Jul 22, 2025 at 4:56 PM Jan Beulich <jbeulich@xxxxxxxx> wrote:
> Hmm, using IS_ENABLED() would certainly be preferred.

Why? Very similar usage is a few lines above, with #ifdef
CONFIG_MEM_PAGING and CONFIG_MEM_SHARING.

> That would apparently require ...
> ... the declaration to be generally visible (likely also outside of x86).

With all the other changes in this series, it seems like it only makes
sense to guard p2m_altp2m_check with CONFIG_ALTP2M.

"Having the declaration to be generally visible" is exactly what I was
trying to avoid.

P.



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.