Re: [XEN PATCH v2 03/15] x86/p2m: guard altp2m routines

2024-05-16 Thread Jan Beulich
On 15.05.2024 11:03, Sergiy Kibrik wrote: > --- a/xen/arch/x86/mm/p2m-basic.c > +++ b/xen/arch/x86/mm/p2m-basic.c > @@ -126,13 +126,15 @@ int p2m_init(struct domain *d) > return rc; > } > > -rc = p2m_init_altp2m(d); > -if ( rc ) > +if ( hvm_altp2m_supported() ) > {

Re: [XEN PATCH v2 03/15] x86/p2m: guard altp2m routines

2024-05-15 Thread Stefano Stabellini
On Wed, 15 May 2024, Sergiy Kibrik wrote: > Initialize and bring down altp2m only when it is supported by the platform, > e.g. VMX. Also guard p2m_altp2m_propagate_change(). > The puspose of that is the possiblity to disable altp2m support and exclude > its > code from the build completely, when i