Skip to contentSkip to conversation

x86/dmar: zap DMAR signature for dom0 once in TBOOT case

PATCH Zhenzhong Duan 1 participant 1 message Aug 28, 2018

lore
Share & tools
lore
#0 lore raw

Hi Maintainer,

Any comments?

Thanks
Zhenzhong
----- [email protected] wrote:

Quoted 40 lines

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.

---
v4: fixup description per Jan

 xen/arch/x86/tboot.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
xen/arch/x86/tboot.c +0 -2
index d5a5292..1006f95 100644
@@ -461,8 +461,6 @@ int __init
 tboot_parse_dmar_table(acpi_table_handler dmar_handler)
     if ( txt_heap_base == 0 )
         return 1;
 
-    /* map TXT heap into Xen addr space */
-
     /* walk heap to SinitMleData */
     pa = txt_heap_base;
     /* skip BiosData */
xen/arch/x86/tboot.c +0 -4
@@ -490,10 +488,6 @@ int __init
 tboot_parse_dmar_table(acpi_table_handler dmar_handler)
     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;
Quoted 4 lines

}

Signature · 1 line
1.7.3

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel