mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: fix rsdp_addr assertion for TDX
TDX builds its own ACPI tables in `create_acpi_tables_tdx` so it will return None in the standard `create_acpi_tables` function and the assertion for `rsdp_addr` will fail. Signed-off-by: Zhibin Li <banlu.lzb@antgroup.com>
This commit is contained in:
+1
-1
@@ -2516,7 +2516,7 @@ impl Vm {
|
|||||||
|
|
||||||
#[cfg(not(target_arch = "riscv64"))]
|
#[cfg(not(target_arch = "riscv64"))]
|
||||||
{
|
{
|
||||||
#[cfg(not(feature = "sev_snp"))]
|
#[cfg(not(any(feature = "sev_snp", feature = "tdx")))]
|
||||||
assert!(rsdp_addr.is_some());
|
assert!(rsdp_addr.is_some());
|
||||||
// Configure shared state based on loaded kernel
|
// Configure shared state based on loaded kernel
|
||||||
if let Some(rsdp_adr) = rsdp_addr {
|
if let Some(rsdp_adr) = rsdp_addr {
|
||||||
|
|||||||
Reference in New Issue
Block a user