From 7acbaf60a917f48fb551b21086d9c6ef34705de6 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 11 Jul 2008 12:46:33 +0100 Subject: [PATCH] vt-d: Fix Host Address Width 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/drivers/passthrough/vtd/dmar.c b/xen/drivers/passthrough/vtd/dmar.c index 7f47b06977..a6876ec6a3 100644 --- a/xen/drivers/passthrough/vtd/dmar.c +++ b/xen/drivers/passthrough/vtd/dmar.c @@ -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); -- 2.30.2