From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Wang2 Subject: [PATCH 2/4] amd iommu: Large io page support - parameter Date: Fri, 3 Dec 2010 17:03:34 +0100 Message-ID: <201012031703.34310.wei.wang2@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_WTR+Mg6Ro4fkDVk" Return-path: 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 --Boundary-00=_WTR+Mg6Ro4fkDVk Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Add a xen parameter (iommu=3Dsuperpage) to enable iommu super page. Thanks, We Signed-off-by: Wei Wang =2D- Legal Information: Advanced Micro Devices GmbH Sitz: Dornach, Gemeinde Aschheim,=20 Landkreis M=FCnchen Registergericht M=FCnchen,=20 HRB Nr. 43632 Gesch=E4ftsf=FChrer: Alberto Bozzo, Andrew Bowd --Boundary-00=_WTR+Mg6Ro4fkDVk Content-Type: text/x-diff; charset="us-ascii"; name="iommu_spage_param.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="iommu_spage_param.patch" Content-Description: iommu_spage_param.patch diff -r 823658b538f2 xen/drivers/passthrough/iommu.c --- a/xen/drivers/passthrough/iommu.c Wed Nov 24 17:17:53 2010 +0100 +++ b/xen/drivers/passthrough/iommu.c Wed Nov 24 17:19:13 2010 +0100 @@ -49,6 +49,7 @@ bool_t __read_mostly iommu_intremap = 1; bool_t __read_mostly iommu_intremap = 1; bool_t __read_mostly amd_iommu_debug; bool_t __read_mostly amd_iommu_perdev_intremap; +bool_t __read_mostly iommu_super_page; static void __init parse_iommu_param(char *s) { @@ -81,6 +82,8 @@ static void __init parse_iommu_param(cha iommu_passthrough = 1; else if ( !strcmp(s, "dom0-strict") ) iommu_dom0_strict = 1; + else if ( !strcmp(s, "superpage") ) + iommu_super_page = 1; s = ss + 1; } while ( ss ); diff -r 823658b538f2 xen/include/xen/iommu.h --- a/xen/include/xen/iommu.h Wed Nov 24 17:17:53 2010 +0100 +++ b/xen/include/xen/iommu.h Wed Nov 24 17:19:13 2010 +0100 @@ -32,6 +32,7 @@ extern bool_t iommu_snoop, iommu_qinval, extern bool_t iommu_snoop, iommu_qinval, iommu_intremap; extern bool_t amd_iommu_debug; extern bool_t amd_iommu_perdev_intremap; +extern bool_t iommu_super_page; extern struct rangeset *mmio_ro_ranges; --Boundary-00=_WTR+Mg6Ro4fkDVk Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_WTR+Mg6Ro4fkDVk--