mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Allen Kay <allen.m.kay@intel.com>
To: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org
Cc: jbarnes@virtuousgeek.org, matthew@wil.cx, chris@sous-sol.org,
	jeremy@goop.org, don.dugger@intel.com,
	Allen Kay <allen.m.kay@intel.com>
Subject: [ACS PATCH v5 2/2] adding xen dom0 checking
Date: Wed,  7 Oct 2009 10:27:51 -0700	[thread overview]
Message-ID: <1254936471-18602-1-git-send-email-allen.m.kay@intel.com> (raw)

This patch is predicated on Jeremy's patch in include/xen/xen.h.

Signed-off-by: Allen Kay <allen.m.kay@intel.com>
---
 drivers/pci/probe.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index aa98258..e9b347e 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -11,6 +11,7 @@
 #include <linux/cpumask.h>
 #include <linux/pci-aspm.h>
 #include <linux/iommu.h>
+#include <xen/xen.h>
 #include "pci.h"
 
 #define CARDBUS_LATENCY_TIMER	176	/* secondary latency timer */
@@ -1017,7 +1018,7 @@ static void pci_init_capabilities(struct pci_dev *dev)
 	pci_iov_init(dev);
 
 	/* Enable ACS P2P upstream forwarding */
-	if (iommu_found())
+	if (iommu_found() || xen_initial_domain())
 		pci_enable_acs(dev);
 }
 
-- 
1.6.0.6


             reply	other threads:[~2009-10-07 17:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-07 17:27 Allen Kay [this message]
2009-10-07 18:07 ` Jeremy Fitzhardinge
2009-10-26 21:12   ` Jesse Barnes

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=1254936471-18602-1-git-send-email-allen.m.kay@intel.com \
    --to=allen.m.kay@intel.com \
    --cc=chris@sous-sol.org \
    --cc=don.dugger@intel.com \
    --cc=jbarnes@virtuousgeek.org \
    --cc=jeremy@goop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=matthew@wil.cx \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®