vt-d: Fix Host Address Width
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 11 Jul 2008 11:46:33 +0000 (12:46 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 11 Jul 2008 11:46:33 +0000 (12:46 +0100)
Host Address Width of the platform should be computed as N+1,
where N is the value reported in dmar acpi table.

Signed-off-by: Ameya Palande <2ameya@gmail.com>
xen/drivers/passthrough/vtd/dmar.c

index 7f47b0697738d59a47449aefcc9cacb80a02b6bc..a6876ec6a35c1eb90b47fb1559beab1f26b2ed76 100644 (file)
@@ -400,7 +400,7 @@ static int __init acpi_parse_dmar(struct acpi_table_header *table)
         return -EINVAL;
     }
 
-    dmar_host_address_width = dmar->width;
+    dmar_host_address_width = dmar->width + 1;
     dprintk(XENLOG_INFO VTDPREFIX, "Host address width %d\n",
             dmar_host_address_width);