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:
parent
2da05d4258
commit
28686bba46
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue