WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] [VTD] Fix Host Address Width

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] [VTD] Fix Host Address Width
From: "(अमेय) Ameya (पाळंदे) Palande" <2ameya@xxxxxxxxx>
Date: Fri, 11 Jul 2008 16:13:55 +1000
Delivery-date: Thu, 10 Jul 2008 23:14:19 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=pDAyAWjkbqMIzQehPlPeCF16WFIKQfAQI8QOpFxYRbw=; b=NtKToo0/SOw6zuTs+pl4kei5xrxncSF0EbFaxg4qrJaH8YU155oDLpGH4aMRDtNxPF YxHH7mFccC11nbJbfjM+te2TdshXfUgQImctgzaauaASFD2N/ikwXX3evrg9/kvCMK5O FV3LpJ8Kly0Sx2WFK3YD4ctSmQsjnILGHmQJU=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=V7cOF2W7QiEUWgITYc1O9+cJbsF9YKQkkKYvdTyOOX49bEqcT7hIUuGVmxFJy7ZVKu XHuxKDHgTk3v9nH8yuvrn0IenKtv0Fes/524PvEe6B+Qnb8FTe1Ubqkaj2MPAiZNZFYa GGID5AXC824kHny/HR873ECZRD70/Wdw36xv4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxx>

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);

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] [VTD] Fix Host Address Width, (अमेय) Ameya (पाळंदे) Palande <=