xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 2/2] x86/dmar: zap DMAR signature for dom0 once in TBOOT case
@ 2018-08-21  9:11 Zhenzhong Duan
  2018-08-21 12:31 ` Jan Beulich
  0 siblings, 1 reply; 3+ messages in thread
From: Zhenzhong Duan @ 2018-08-21  9:11 UTC (permalink / raw)
  To: Xen-Devel
  Cc: kevin.tian, andrew.cooper3, srinivas.eeda, JBeulich, shane.wang,
	boris.ostrovsky, gang.wei

When TBOOT enabled, acpi_parse_dmar() called acpi_dmar_zap() to zap
DMAR table, then tboot_parse_dmar_table() called acpi_dmar_zap() to
zap it again. This is unnecessory, remove the second call.

Some stale comments not right for current code are also removed.
No functional change.

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com>
---
v3: fixup patch and description.

 xen/arch/x86/tboot.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/xen/arch/x86/tboot.c b/xen/arch/x86/tboot.c
index d5a5292..1006f95 100644
--- a/xen/arch/x86/tboot.c
+++ b/xen/arch/x86/tboot.c
@@ -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 */
@@ -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;
 }
 
-- 
1.7.3

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-08-22  2:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-21  9:11 [PATCH v3 2/2] x86/dmar: zap DMAR signature for dom0 once in TBOOT case Zhenzhong Duan
2018-08-21 12:31 ` Jan Beulich
2018-08-22  2:58   ` Tian, Kevin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).