Add a dependency on 4K page size in Kconfig of MSHV_VTL
to support any assumptions that may be present in the code.
x86 anyways supports 4K page size only, and for arm64, higher
page size support is not validated. Remove this dependency as
and when this feature is supported.

Signed-off-by: Naman Jain <[email protected]>
---
 drivers/hv/Kconfig | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/hv/Kconfig b/drivers/hv/Kconfig
index 7937ac0cbd0f..115821cc535c 100644
--- a/drivers/hv/Kconfig
+++ b/drivers/hv/Kconfig
@@ -96,6 +96,11 @@ config MSHV_VTL
        # MTRRs are controlled by VTL0, and are not specific to individual VTLs.
        # Therefore, do not attempt to access or modify MTRRs here.
        depends on !MTRR
+       # The hypervisor interface operates on 4k pages. Enforcing it here
+       # simplifies many assumptions in the mshv_vtl code.
+       # VTL0 VMs can still support higher page size in ARM64 and is not 
limited
+       # by this setting.
+       depends on PAGE_SIZE_4KB
        select CPUMASK_OFFSTACK
        select VIRT_XFER_TO_GUEST_WORK
        default n
-- 
2.43.0


Reply via email to