Skip to content

Commit d01b9a9

Browse files
Saurabh Sengarliuw
authored andcommitted
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>
1 parent 0a7a005 commit d01b9a9

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

drivers/hv/Kconfig

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,30 @@ config HYPERV
1313
Select this option to run Linux as a Hyper-V client operating
1414
system.
1515

16+
config HYPERV_VTL_MODE
17+
bool "Enable Linux to boot in VTL context"
18+
depends on X86_64 && HYPERV
19+
default n
20+
help
21+
Virtual Secure Mode (VSM) is a set of hypervisor capabilities and
22+
enlightenments offered to host and guest partitions which enables
23+
the creation and management of new security boundaries within
24+
operating system software.
25+
26+
VSM achieves and maintains isolation through Virtual Trust Levels
27+
(VTLs). Virtual Trust Levels are hierarchical, with higher levels
28+
being more privileged than lower levels. VTL0 is the least privileged
29+
level, and currently only other level supported is VTL2.
30+
31+
Select this option to build a Linux kernel to run at a VTL other than
32+
the normal VTL0, which currently is only VTL2. This option
33+
initializes the x86 platform for VTL2, and adds the ability to boot
34+
secondary CPUs directly into 64-bit context as required for VTLs other
35+
than 0. A kernel built with this option must run at VTL2, and will
36+
not run as a normal guest.
37+
38+
If unsure, say N
39+
1640
config HYPERV_TIMER
1741
def_bool HYPERV && X86
1842

0 commit comments

Comments
 (0)