From 441b58437f1b095b5a834fd317897f585b164525 Mon Sep 17 00:00:00 2001 From: Jinank Jain Date: Tue, 6 Feb 2024 16:11:14 +0530 Subject: [PATCH] vmm: Don't configure vcpu in case of SEV-SNP Traditional way to configure vcpu don't work for sev-snp guests. All the vCPU configuration for SEV-SNP guest is provided via VMSA. Signed-off-by: Jinank Jain Signed-off-by: Muminul Islam --- vmm/src/cpu.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vmm/src/cpu.rs b/vmm/src/cpu.rs index f36db223c..aa3589f64 100644 --- a/vmm/src/cpu.rs +++ b/vmm/src/cpu.rs @@ -829,7 +829,12 @@ impl CpuManager { kernel_entry_point.entry_addr.0 / crate::igvm::HV_PAGE_SIZE, )?; } + + // Traditional way to configure vcpu doesn't work for SEV-SNP guests. + // All the vCPU configuration for SEV-SNP guest is provided via VMSA. + return Ok(()); } + #[cfg(target_arch = "x86_64")] assert!(!self.cpuid.is_empty());