hypervisor: mshv: Only perform SNP operation for x86 partition

SEV-SNP partitions are only supported on x86 architecture.

Signed-off-by: Jinank Jain <jinankjain@microsoft.com>
This commit is contained in:
Jinank Jain 2024-05-23 08:41:26 +05:30 committed by Rob Bradford
parent 94fe22da62
commit 6c90623c8e

View File

@ -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();