From 28686bba46b4d62a9a220cc66e667b32bac5a957 Mon Sep 17 00:00:00 2001 From: Zhibin Li Date: Thu, 29 Jan 2026 18:06:08 +0800 Subject: [PATCH] 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 --- vmm/src/vm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmm/src/vm.rs b/vmm/src/vm.rs index d6f6b93e7..4ed3a1f3d 100644 --- a/vmm/src/vm.rs +++ b/vmm/src/vm.rs @@ -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 {