From: Wei Wang2 <wei.wang2@amd.com>
To: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: [PATCH 2/4] amd iommu: Large io page support - parameter
Date: Fri, 3 Dec 2010 17:03:34 +0100 [thread overview]
Message-ID: <201012031703.34310.wei.wang2@amd.com> (raw)
[-- 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
next reply other threads:[~2010-12-03 16:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-03 16:03 Wei Wang2 [this message]
2010-12-03 16:14 ` [PATCH 2/4] amd iommu: Large io page support - parameter Keir Fraser
2010-12-03 16:19 ` Wei Wang2
2010-12-03 16:29 ` Keir Fraser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201012031703.34310.wei.wang2@amd.com \
--to=wei.wang2@amd.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.