summaryrefslogtreecommitdiffstats
path: root/drivers/hv
diff options
context:
space:
mode:
authorTianyu Lan <tiala@microsoft.com>2023-08-18 06:29:11 -0400
committerWei Liu <wei.liu@kernel.org>2023-08-22 00:38:20 +0000
commitd6e2d652443751e290b2edb70173ec3c22f78fbe (patch)
tree3474f50f6559470984ae59cc5b077dfc430b0573 /drivers/hv
parent4f74fb30ea21d8b2d515f5929d2b46ad6834edba (diff)
downloadlinux-d6e2d652443751e290b2edb70173ec3c22f78fbe.tar.gz
linux-d6e2d652443751e290b2edb70173ec3c22f78fbe.tar.bz2
linux-d6e2d652443751e290b2edb70173ec3c22f78fbe.zip
x86/hyperv: Add sev-snp enlightened guest static key
Introduce static key isolation_type_en_snp for enlightened sev-snp guest check. Reviewed-by: Dexuan Cui <decui@microsoft.com> Reviewed-by: Michael Kelley <mikelley@microsoft.com> Signed-off-by: Tianyu Lan <tiala@microsoft.com> Signed-off-by: Wei Liu <wei.liu@kernel.org> Link: https://lore.kernel.org/r/20230818102919.1318039-2-ltykernel@gmail.com
Diffstat (limited to 'drivers/hv')
-rw-r--r--drivers/hv/hv_common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/hv/hv_common.c b/drivers/hv/hv_common.c
index 542a1d53b303..4b4aa53c34c2 100644
--- a/drivers/hv/hv_common.c
+++ b/drivers/hv/hv_common.c
@@ -502,6 +502,12 @@ bool __weak hv_isolation_type_snp(void)
}
EXPORT_SYMBOL_GPL(hv_isolation_type_snp);
+bool __weak hv_isolation_type_en_snp(void)
+{
+ return false;
+}
+EXPORT_SYMBOL_GPL(hv_isolation_type_en_snp);
+
void __weak hv_setup_vmbus_handler(void (*handler)(void))
{
}