Skip to contentSkip to conversation

adding xen dom0 checking

PATCH In review Allen Kay 3 participants 3 messages Oct 7, 2009 – Oct 26, 2009 PCI

lore
Share & tools
lore

Allen Kay

author
#0 lore raw

PATCH v5 2/2 adding xen dom0 checking

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

---
 drivers/pci/probe.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/pci/probe.c +2 -1
index aa98258..e9b347e 100644
@@ -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);
 }
 
Signature · 1 line
1.6.0.6
#1 lore raw
Quoted 2 lines · Allen Kay

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

Feel free to include that patch in your series if you depend on it. Otherwise it will get too awkward keeping track of everything.

J

#2 lore raw
Quoted 6 lines · On Wed, 07 Oct 2009 11:07:22 -0700 Jeremy Fitzhardinge <[email protected]> wrote:
Quoted 2 lines · Allen Kay

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

Feel free to include that patch in your series if you depend on it. Otherwise it will get too awkward keeping track of everything.

Ok, I applied Allen's patchset along with your xen.h patch to my linux-next tree.

Thanks,

Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center