debuggers.hg

changeset 20970:8616a82df1c0

VT-d: ensure zapping ACPI DMAR signature in acpi_parse_dmar

VT-d is owned by Xen hypervisor. Xen zaps ACPI DMAR signature to
prevent dom0 to use VT-d. This patch changes the direct return when
DMAR width is zero, instead zaps ACPI DMAR signature before return.

Signed-off-by: Weidong Han <weidong.han@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Feb 11 19:48:58 2010 +0000 (2010-02-11)
parents b4ad00da6960
children f5da4b37f9ca
files xen/drivers/passthrough/vtd/dmar.c
line diff
     1.1 --- a/xen/drivers/passthrough/vtd/dmar.c	Wed Feb 10 13:30:57 2010 +0000
     1.2 +++ b/xen/drivers/passthrough/vtd/dmar.c	Thu Feb 11 19:48:58 2010 +0000
     1.3 @@ -623,7 +623,8 @@ static int __init acpi_parse_dmar(struct
     1.4      if ( !dmar->width )
     1.5      {
     1.6          dprintk(XENLOG_WARNING VTDPREFIX, "Zero: Invalid DMAR width\n");
     1.7 -        return -EINVAL;
     1.8 +        ret = -EINVAL;
     1.9 +        goto out;
    1.10      }
    1.11  
    1.12      dmar_host_address_width = dmar->width + 1;