This patch ensures xen vmm has exclusive access of vt-d hw by zapping
authorKeir Fraser <keir@xensource.com>
Thu, 4 Oct 2007 08:40:31 +0000 (09:40 +0100)
committerKeir Fraser <keir@xensource.com>
Thu, 4 Oct 2007 08:40:31 +0000 (09:40 +0100)
vt-d "DMAR" ACPI table signature after xen has finished using it.

Signed-off-by: Allen Kay <allen.m.kay@intel.com>
xen/arch/x86/hvm/vmx/vtd/dmar.c

index 44ca487bdb4011914f34c6698dd887e6dec51621..7103994ff6f37133ded4d58d916eb77bfa1df2d9 100644 (file)
@@ -483,6 +483,10 @@ acpi_parse_dmar(unsigned long phys_addr, unsigned long size)
 
         entry_header = ((void *)entry_header + entry_header->length);
     }
+
+    /* Zap APCI DMAR signature to prevent dom0 using vt-d HW. */
+    dmar->header.signature[0] = '\0';
+
     return ret;
 }