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:
parent
94fe22da62
commit
6c90623c8e
1 changed files with 1 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue