From: "=?UTF-8?Q?(=E0=A4=85=E0=A4=AE=E0=A5=87=E0=A4=AF)_Ameya_(?= =?UTF-8?Q?=E0=A4=AA=E0=A4=BE=E0=A4=B3=E0=A4=82=E0=A4=A6=E0=A5=87)_Palande?=" <2ameya@gmail.com> Subject: [PATCH] [VTD] Fix Host Address Width Date: Fri, 11 Jul 2008 16:13:55 +1000 Message-ID: <269694c00807102313o2e4b7ea4td857616d5e46d941@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Host Address Width of the platform should be computed as N+1, where N is the value reported in dmar acpi table. Cheers, Ameya. Signed-off-by: Ameya Palande <2ameya@gmail.com> diff -r 27aaff984b36 xen/drivers/passthrough/vtd/dmar.c --- a/xen/drivers/passthrough/vtd/dmar.c Thu Jul 10 17:33:23 2008 +0100 +++ b/xen/drivers/passthrough/vtd/dmar.c Fri Jul 11 16:02:11 2008 +1000 @@ -400,7 +400,7 @@ 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);