[PATCH 2/2] Drivers: hv: Kconfig: Add HYPERV_VTL_MODE dependencies

From: Saurabh Sengar
Date: Thu May 11 2023 - 10:56:42 EST


MTRRs are not per-VTL and are controlled by VTL0, make sure it
is disabled for all other VTLs.

X86_MPPARSE scans low memory for MP tables, which is not required
for Hyper-V VTL platforms.

Signed-off-by: Saurabh Sengar <ssengar@xxxxxxxxxxxxxxxxxxx>
---
drivers/hv/Kconfig | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/hv/Kconfig b/drivers/hv/Kconfig
index 00242107d62e..c8d443886b9d 100644
--- a/drivers/hv/Kconfig
+++ b/drivers/hv/Kconfig
@@ -16,6 +16,8 @@ config HYPERV
config HYPERV_VTL_MODE
bool "Enable Linux to boot in VTL context"
depends on X86_64 && HYPERV
+ depends on !MTRR
+ depends on !X86_MPPARSE
default n
help
Virtual Secure Mode (VSM) is a set of hypervisor capabilities and
--
2.34.1