[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1254936471-18602-1-git-send-email-allen.m.kay@intel.com>
Date: Wed, 7 Oct 2009 10:27:51 -0700
From: Allen Kay <allen.m.kay@...el.com>
To: linux-kernel@...r.kernel.org, linux-pci@...r.kernel.org
Cc: jbarnes@...tuousgeek.org, matthew@....cx, chris@...s-sol.org,
jeremy@...p.org, don.dugger@...el.com,
Allen Kay <allen.m.kay@...el.com>
Subject: [ACS PATCH v5 2/2] adding xen dom0 checking
This patch is predicated on Jeremy's patch in include/xen/xen.h.
Signed-off-by: Allen Kay <allen.m.kay@...el.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists