[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] VT-d: ensure zapping ACPI DMAR signature in acpi_parse_dmar
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1265917738 0 # Node ID 8616a82df1c08064634e47875db1303c1fb231b5 # Parent b4ad00da6960a499774f1e962a1e081ab7c1c997 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@xxxxxxxxx> --- xen/drivers/passthrough/vtd/dmar.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -r b4ad00da6960 -r 8616a82df1c0 xen/drivers/passthrough/vtd/dmar.c --- a/xen/drivers/passthrough/vtd/dmar.c Wed Feb 10 13:30:57 2010 +0000 +++ b/xen/drivers/passthrough/vtd/dmar.c Thu Feb 11 19:48:58 2010 +0000 @@ -623,7 +623,8 @@ static int __init acpi_parse_dmar(struct if ( !dmar->width ) { dprintk(XENLOG_WARNING VTDPREFIX, "Zero: Invalid DMAR width\n"); - return -EINVAL; + ret = -EINVAL; + goto out; } dmar_host_address_width = dmar->width + 1; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |