mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-01 16:14:13 +08:00
3be1bc2fe9
Virtual Trust Levels (VTL) helps enable Hyper-V Virtual Secure Mode (VSM) feature. VSM is a set of hypervisor capabilities and enlightenments offered to host and guest partitions which enable the creation and management of new security boundaries within operating system software. VSM achieves and maintains isolation through VTLs. Add early initialization for Virtual Trust Levels (VTL). This includes initializing the x86 platform for VTL and enabling boot support for secondary CPUs to start in targeted VTL context. For now, only enable the code for targeted VTL level as 2. When starting an AP at a VTL other than VTL0, the AP must start directly in 64-bit mode, bypassing the usual 16-bit -> 32-bit -> 64-bit mode transition sequence that occurs after waking up an AP with SIPI whose vector points to the 16-bit AP startup trampoline code. Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com> Reviewed-by: Michael Kelley <mikelley@microsoft.com> Reviewed-by: Stanislav Kinsburskii <stanislav.kinsburskii@gmail.com> Link: https://lore.kernel.org/r/1681192532-15460-6-git-send-email-ssengar@linux.microsoft.com Signed-off-by: Wei Liu <wei.liu@kernel.org>
9 lines
257 B
Makefile
9 lines
257 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
obj-y := hv_init.o mmu.o nested.o irqdomain.o ivm.o
|
|
obj-$(CONFIG_X86_64) += hv_apic.o hv_proc.o
|
|
obj-$(CONFIG_HYPERV_VTL_MODE) += hv_vtl.o
|
|
|
|
ifdef CONFIG_X86_64
|
|
obj-$(CONFIG_PARAVIRT_SPINLOCKS) += hv_spinlock.o
|
|
endif
|