From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andres Lagar-Cavilla Subject: [PATCH 1 of 3] IOMMU: Add command line param to disable sharing of IOMMU and hap tables Date: Wed, 21 Mar 2012 15:22:58 -0400 Message-ID: <642c0e6a01c2e30e6043.1332357778@xdev.gridcentric.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: olaf@aepfle.de, keir@xen.org, andres@gridcentric.ca, tim@xen.org, wei.wang2@amd.com, hongkaixing@huawei.com, adin@gridcentric.ca List-Id: xen-devel@lists.xenproject.org xen/drivers/passthrough/iommu.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) The default is 1, and the command line parameter sets to 1. Disabling may be desired if the host will contain VMs that do paging, sharing or mem access, and won't be doing passthrough. These two features are mutually exclusive for AMD processors. Signed-off-by: Andres Lagar-Cavilla diff -r d7e417afcbe4 -r 642c0e6a01c2 xen/drivers/passthrough/iommu.c --- a/xen/drivers/passthrough/iommu.c +++ b/xen/drivers/passthrough/iommu.c @@ -87,6 +87,8 @@ static void __init parse_iommu_param(cha iommu_dom0_strict = 1; else if ( !strcmp(s, "sharept") ) iommu_hap_pt_share = 1; + else if ( !strcmp(s, "no-sharept") ) + iommu_hap_pt_share = 0; s = ss + 1; } while ( ss );