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 <jinankjain@microsoft.com>
Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
Jinank Jain 2024-02-06 16:11:14 +05:30 committed by Bo Chen
parent 829d310c57
commit 441b58437f

View File

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