From patchwork Wed Oct 7 17:27:51 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kay, Allen M" X-Patchwork-Id: 52314 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n97HWgIG010920 for ; Wed, 7 Oct 2009 17:32:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757690AbZJGRbu (ORCPT ); Wed, 7 Oct 2009 13:31:50 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757621AbZJGRbt (ORCPT ); Wed, 7 Oct 2009 13:31:49 -0400 Received: from mga01.intel.com ([192.55.52.88]:4958 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757433AbZJGRbt (ORCPT ); Wed, 7 Oct 2009 13:31:49 -0400 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 07 Oct 2009 10:25:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.44,520,1249282800"; d="scan'208";a="500761702" Received: from los-vmm.sc.intel.com (HELO localhost.localdomain) ([172.25.110.30]) by fmsmga002.fm.intel.com with ESMTP; 07 Oct 2009 10:23:02 -0700 From: Allen Kay 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 Subject: [ACS PATCH v5 2/2] adding xen dom0 checking Date: Wed, 7 Oct 2009 10:27:51 -0700 Message-Id: <1254936471-18602-1-git-send-email-allen.m.kay@intel.com> X-Mailer: git-send-email 1.6.0.6 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org 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 #include #include +#include #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); }