On 2025-11-14 09:44, Grygorii Strashko wrote:
From: Grygorii Strashko <[email protected]>

Now Xen supports only two paging modes: HAP and SHADOW, so
!paging_mode_hap() is actually means paging_mode_shadow().

For an abstract, future case of there being a 3rd paging mode it is also
better to explicitly mention checked paging mode (SHADOW) instead of using
negative check of another paging mode (HAP).

Hence, s/!paging_mode_hap()/paging_mode_shadow() which also allows DCE drop
unused code when SHADOW_PAGING=n.
The !paging_mode_hap() in hap.c not changed as HAP is checking for itself
to be enabled.

Inspired by [1].

[1] 
https://patchwork.kernel.org/project/xen-devel/patch/[email protected]/
Signed-off-by: Grygorii Strashko <[email protected]>

Reviewed-by: Jason Andryuk <[email protected]>

Reply via email to