From: Feng Wu Subject: [RFC v1 15/15] Add a command line parameter for VT-d posted-interrupts Date: Wed, 25 Mar 2015 20:31:57 +0800 Message-ID: <1427286717-4093-16-git-send-email-feng.wu@intel.com> References: <1427286717-4093-1-git-send-email-feng.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1427286717-4093-1-git-send-email-feng.wu@intel.com> 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: yang.z.zhang@intel.com, Feng Wu , kevin.tian@intel.com, keir@xen.org, JBeulich@suse.com List-Id: xen-devel@lists.xenproject.org Enable VT-d Posted-Interrupts and add a command line parameter for it. Signed-off-by: Feng Wu --- xen/drivers/passthrough/iommu.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xen/drivers/passthrough/iommu.c b/xen/drivers/passthrough/iommu.c index 302e3e4..1bda7e9 100644 --- a/xen/drivers/passthrough/iommu.c +++ b/xen/drivers/passthrough/iommu.c @@ -52,7 +52,7 @@ bool_t __read_mostly iommu_passthrough; bool_t __read_mostly iommu_snoop = 1; bool_t __read_mostly iommu_qinval = 1; bool_t __read_mostly iommu_intremap = 1; -bool_t __read_mostly iommu_intpost = 0; +bool_t __read_mostly iommu_intpost = 1; bool_t __read_mostly iommu_hap_pt_share = 1; bool_t __read_mostly iommu_debug; bool_t __read_mostly amd_iommu_perdev_intremap = 1; @@ -101,6 +101,12 @@ static void __init parse_iommu_param(char *s) if ( iommu_intremap == 0 ) iommu_intpost = 0; } + else if ( !strcmp(s, "intpost") ) + { + iommu_intpost = val; + if ( iommu_intremap == 0 ) + iommu_intpost = 0; + } else if ( !strcmp(s, "debug") ) { iommu_debug = val; -- 2.1.0