On 09.07.2024 07:52, Sergiy Kibrik wrote:
> Add new option to make altp2m code inclusion optional.
> Currently altp2m implemented for Intel EPT only, so option is dependant on 
> VMX.
> Also the prompt itself depends on EXPERT=y, so that option is available
> for fine-tuning, if one want to play around with it.
> 
> Use this option instead of more generic CONFIG_HVM option.
> That implies the possibility to build hvm code without altp2m support,
> hence we need to declare altp2m routines for hvm code to compile successfully
> (altp2m_vcpu_initialise(), altp2m_vcpu_destroy(), altp2m_vcpu_enable_ve())
> 
> Also guard altp2m routines, so that they can be disabled completely in the
> build -- when target platform does not actually support altp2m
> (AMD-V & ARM as of now).
> 
> Signed-off-by: Sergiy Kibrik <[email protected]>

Reviewed-by: Jan Beulich <[email protected]>



Reply via email to