All of lore.kernel.org
 help / color / mirror / Atom feed
From: Feng Wu <feng.wu@intel.com>
To: xen-devel@lists.xen.org
Cc: kevin.tian@intel.com, keir@xen.org, george.dunlap@eu.citrix.com,
	andrew.cooper3@citrix.com, jbeulich@suse.com,
	yang.z.zhang@intel.com, Feng Wu <feng.wu@intel.com>
Subject: [RFC v2 15/15] Add a command line parameter for VT-d posted-interrupts
Date: Fri,  8 May 2015 17:07:18 +0800	[thread overview]
Message-ID: <1431076038-7497-16-git-send-email-feng.wu@intel.com> (raw)
In-Reply-To: <1431076038-7497-1-git-send-email-feng.wu@intel.com>

Enable VT-d Posted-Interrupts and add a command line
parameter for it.

Signed-off-by: Feng Wu <feng.wu@intel.com>
---
 docs/misc/xen-command-line.markdown | 9 ++++++++-
 xen/drivers/passthrough/iommu.c     | 8 +++++++-
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/docs/misc/xen-command-line.markdown b/docs/misc/xen-command-line.markdown
index 1dda1f0..3faa073 100644
--- a/docs/misc/xen-command-line.markdown
+++ b/docs/misc/xen-command-line.markdown
@@ -821,7 +821,7 @@ debug hypervisor only).
 > Default: `new` unless directed-EOI is supported
 
 ### iommu
-> `= List of [ <boolean> | force | required | intremap | qinval | snoop | sharept | dom0-passthrough | dom0-strict | amd-iommu-perdev-intremap | workaround_bios_bug | verbose | debug ]`
+> `= List of [ <boolean> | force | required | intremap | intpost | qinval | snoop | sharept | dom0-passthrough | dom0-strict | amd-iommu-perdev-intremap | workaround_bios_bug | verbose | debug ]`
 
 > Sub-options:
 
@@ -848,6 +848,13 @@ debug hypervisor only).
 >> Control the use of interrupt remapping (DMA remapping will always be enabled
 >> if IOMMU functionality is enabled).
 
+> `intpost`
+
+> Default: `true`
+
+>> Control the use of interrupt posting, interrupt posting is dependant on
+>> interrupt remapping.
+
 > `qinval` (VT-d)
 
 > Default: `true`
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

  parent reply	other threads:[~2015-05-08  9:07 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-08  9:07 [RFC v2 00/15] Add VT-d Posted-Interrupts support Feng Wu
2015-05-08  9:07 ` [RFC v2 01/15] Vt-d Posted-intterrupt (PI) design Feng Wu
2015-05-08  9:07 ` [RFC v2 02/15] iommu: Add iommu_intpost to control VT-d Posted-Interrupts feature Feng Wu
2015-06-09 14:10   ` Jan Beulich
2015-05-08  9:07 ` [RFC v2 03/15] vt-d: VT-d Posted-Interrupts feature detection Feng Wu
2015-06-09 14:15   ` Jan Beulich
2015-05-08  9:07 ` [RFC v2 04/15] vmx: Extend struct pi_desc to support VT-d Posted-Interrupts Feng Wu
2015-06-09 14:17   ` Jan Beulich
2015-05-08  9:07 ` [RFC v2 05/15] vmx: Initialize VT-d Posted-Interrupts Descriptor Feng Wu
2015-06-09 14:20   ` Jan Beulich
2015-05-08  9:07 ` [RFC v2 06/15] vt-d: Extend struct iremap_entry to support VT-d Posted-Interrupts Feng Wu
2015-06-09 14:25   ` Jan Beulich
2015-06-16  6:18     ` Wu, Feng
2015-06-16  7:48       ` Jan Beulich
2015-05-08  9:07 ` [RFC v2 07/15] vt-d: Add API to update IRTE when VT-d PI is used Feng Wu
2015-06-09 14:32   ` Jan Beulich
2015-06-12  9:40     ` Wu, Feng
2015-06-12 10:33       ` Jan Beulich
2015-06-10  6:17   ` Jan Beulich
2015-06-12  9:40     ` Wu, Feng
2015-06-12 10:34       ` Jan Beulich
2015-05-08  9:07 ` [RFC v2 08/15] Update IRTE according to guest interrupt config changes Feng Wu
2015-06-09 15:06   ` Jan Beulich
2015-06-16  8:08     ` Wu, Feng
2015-06-16  8:17       ` Jan Beulich
2015-05-08  9:07 ` [RFC v2 09/15] Add a new per-vCPU tasklet to wakeup the blocked vCPU Feng Wu
2015-06-09 15:08   ` Jan Beulich
2015-06-12  9:40     ` Wu, Feng
2015-06-12 10:41       ` Jan Beulich
2015-05-08  9:07 ` [RFC v2 10/15] vmx: Define two per-cpu variables Feng Wu
2015-06-09 15:12   ` Jan Beulich
2015-05-08  9:07 ` [RFC v2 11/15] vmx: Add a global wake-up vector for VT-d Posted-Interrupts Feng Wu
2015-06-09 15:20   ` Jan Beulich
2015-06-12  9:40     ` Wu, Feng
2015-06-12 10:44       ` Jan Beulich
2015-05-08  9:07 ` [RFC v2 12/15] vmx: Properly handle notification event when vCPU is running Feng Wu
2015-06-09 16:12   ` Jan Beulich
2015-05-08  9:07 ` [RFC v2 13/15] Update Posted-Interrupts Descriptor during vCPU scheduling Feng Wu
2015-06-10  6:43   ` Jan Beulich
2015-06-16  0:17     ` Wu, Feng
2015-06-16  7:53       ` Jan Beulich
2015-06-16  8:13         ` Wu, Feng
2015-06-16  8:29           ` Jan Beulich
2015-06-16  8:56             ` Wu, Feng
2015-06-16  9:24               ` Jan Beulich
2015-06-17  6:52                 ` Wu, Feng
2015-06-17  6:54     ` Wu, Feng
2015-06-17  7:56       ` Jan Beulich
2015-06-17  8:46         ` Wu, Feng
2015-06-17  8:59           ` Jan Beulich
2015-06-17  9:14             ` Wu, Feng
2015-06-17  7:00     ` Wu, Feng
2015-06-17  7:59       ` Jan Beulich
2015-05-08  9:07 ` [RFC v2 14/15] Suppress posting interrupts when 'SN' is set Feng Wu
2015-06-10  6:48   ` Jan Beulich
2015-05-08  9:07 ` Feng Wu [this message]
2015-06-10  6:52   ` [RFC v2 15/15] Add a command line parameter for VT-d posted-interrupts Jan Beulich
2015-05-13  5:11 ` [RFC v2 00/15] Add VT-d Posted-Interrupts support Wu, Feng
2015-05-13  6:50   ` Jan Beulich
2015-05-13  7:04     ` Wu, Feng
2015-05-18  5:33 ` Tian, Kevin

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=1431076038-7497-16-git-send-email-feng.wu@intel.com \
    --to=feng.wu@intel.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=jbeulich@suse.com \
    --cc=keir@xen.org \
    --cc=kevin.tian@intel.com \
    --cc=xen-devel@lists.xen.org \
    --cc=yang.z.zhang@intel.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.