mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 05:35:20 +00:00
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:
parent
829d310c57
commit
441b58437f
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user