All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/4] amd iommu: Large io page support - parameter
@ 2010-12-03 16:03 Wei Wang2
  2010-12-03 16:14 ` Keir Fraser
  0 siblings, 1 reply; 4+ messages in thread
From: Wei Wang2 @ 2010-12-03 16:03 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com

[-- Attachment #1: Type: text/plain, Size: 320 bytes --]

Add a xen parameter (iommu=superpage) to enable iommu super page.
Thanks,
We
Signed-off-by: Wei Wang <wei.wang2@amd.com>
--
Legal Information:
Advanced Micro Devices GmbH
Sitz: Dornach, Gemeinde Aschheim, 
Landkreis München Registergericht München, 
HRB Nr. 43632
Geschäftsführer:
Alberto Bozzo, Andrew Bowd

[-- Attachment #2: iommu_spage_param.patch --]
[-- Type: text/x-diff, Size: 1210 bytes --]

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;
 

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-12-03 16:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-03 16:03 [PATCH 2/4] amd iommu: Large io page support - parameter Wei Wang2
2010-12-03 16:14 ` Keir Fraser
2010-12-03 16:19   ` Wei Wang2
2010-12-03 16:29     ` Keir Fraser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.