Commit
6c298ecc1f ("vtd: Reinstate ACPI DMAR on system shutdown or
S3/S4/S5") did everything for acpi_dmar_zap() call to be unnecessary,
except for invoking the function from acpi_parse_dmar(), which
123c779379 ("VTd/dmar: Tweak how the DMAR table is clobbered")
added several years later.
Some stale comments are also removed, No functional change.
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com>
if ( txt_heap_base == 0 )
return 1;
- /* map TXT heap into Xen addr space */
-
/* walk heap to SinitMleData */
pa = txt_heap_base;
/* skip BiosData */
rc = dmar_handler(dmar_table);
xfree(dmar_table);
- /* acpi_parse_dmar() zaps APCI DMAR signature in TXT heap table */
- /* but dom0 will read real table, so must zap it there too */
- acpi_dmar_zap();
-
return rc;
}