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:
Zhibin Li 2026-01-29 18:06:08 +08:00 committed by Rob Bradford
parent 2da05d4258
commit 28686bba46

View file

@ -2516,7 +2516,7 @@ impl Vm {
#[cfg(not(target_arch = "riscv64"))]
{
#[cfg(not(feature = "sev_snp"))]
#[cfg(not(any(feature = "sev_snp", feature = "tdx")))]
assert!(rsdp_addr.is_some());
// Configure shared state based on loaded kernel
if let Some(rsdp_adr) = rsdp_addr {