From 6c90623c8ed0f4116ce53f0f89682b126d6ba7bc Mon Sep 17 00:00:00 2001 From: Jinank Jain Date: Thu, 23 May 2024 08:41:26 +0530 Subject: [PATCH] hypervisor: mshv: Only perform SNP operation for x86 partition SEV-SNP partitions are only supported on x86 architecture. Signed-off-by: Jinank Jain --- hypervisor/src/mshv/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/hypervisor/src/mshv/mod.rs b/hypervisor/src/mshv/mod.rs index 879695e18..0e605b50b 100644 --- a/hypervisor/src/mshv/mod.rs +++ b/hypervisor/src/mshv/mod.rs @@ -273,6 +273,7 @@ impl hypervisor::Hypervisor for MshvHypervisor { } // Set additional partition property for SEV-SNP partition. + #[cfg(target_arch = "x86_64")] if mshv_vm_type == VmType::Snp { let snp_policy = snp::get_default_snp_guest_policy(); let vmgexit_offloads = snp::get_default_vmgexit_offload_features();