diff options
author | Saurabh Sengar <ssengar@linux.microsoft.com> | 2023-04-11 08:55:31 +0300 |
---|---|---|
committer | Wei Liu <wei.liu@kernel.org> | 2023-04-18 20:29:52 +0300 |
commit | d01b9a9f2d0131e1e249177a70e6b80d146d16d2 (patch) | |
tree | 8a10d8cefc7994e1121535bb75b6b46e3ab03c69 /drivers/hv/Kconfig | |
parent | 0a7a00580a4fad9a6cd28c2d825e0e5ae917e59e (diff) | |
download | linux-d01b9a9f2d0131e1e249177a70e6b80d146d16d2.tar.xz |
Drivers: hv: Kconfig: Add HYPERV_VTL_MODE
Add HYPERV_VTL_MODE Kconfig flag for VTL mode.
Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/1681192532-15460-5-git-send-email-ssengar@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'drivers/hv/Kconfig')
-rw-r--r-- | drivers/hv/Kconfig | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/hv/Kconfig b/drivers/hv/Kconfig index 94982f08b661..00242107d62e 100644 --- a/drivers/hv/Kconfig +++ b/drivers/hv/Kconfig @@ -13,6 +13,30 @@ config HYPERV Select this option to run Linux as a Hyper-V client operating system. +config HYPERV_VTL_MODE + bool "Enable Linux to boot in VTL context" + depends on X86_64 && HYPERV + default n + help + Virtual Secure Mode (VSM) is a set of hypervisor capabilities and + enlightenments offered to host and guest partitions which enables + the creation and management of new security boundaries within + operating system software. + + VSM achieves and maintains isolation through Virtual Trust Levels + (VTLs). Virtual Trust Levels are hierarchical, with higher levels + being more privileged than lower levels. VTL0 is the least privileged + level, and currently only other level supported is VTL2. + + Select this option to build a Linux kernel to run at a VTL other than + the normal VTL0, which currently is only VTL2. This option + initializes the x86 platform for VTL2, and adds the ability to boot + secondary CPUs directly into 64-bit context as required for VTLs other + than 0. A kernel built with this option must run at VTL2, and will + not run as a normal guest. + + If unsure, say N + config HYPERV_TIMER def_bool HYPERV && X86 |