Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125569
b: refs/heads/master
c: 3b5410e
h: refs/heads/master
i:
  125567: 01a407c
v: v3
  • Loading branch information
Weidong Han authored and Joerg Roedel committed Jan 3, 2009
1 parent 67837d1 commit 6ed035e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d71a2f33ac466a437f316e7bb024d0175a7f3cd9
refs/heads/master: 3b5410e735b093060b96664230c6f9f4fe80b251
8 changes: 5 additions & 3 deletions trunk/drivers/pci/intel-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ static inline bool dma_pte_present(struct dma_pte *pte)
return (pte->val & 3) != 0;
}

/* devices under the same p2p bridge are owned in one domain */
#define DOMAIN_FLAG_P2P_MULTIPLE_DEVICES (1 < 0)

struct dmar_domain {
int id; /* domain id */
struct intel_iommu *iommu; /* back pointer to owning iommu */
Expand All @@ -214,8 +217,7 @@ struct dmar_domain {
/* adjusted guest address width, 0 is level 2 30-bit */
int agaw;

#define DOMAIN_FLAG_MULTIPLE_DEVICES 1
int flags;
int flags; /* flags to find out type of domain */
};

/* PCI domain-device relationship */
Expand Down Expand Up @@ -1574,7 +1576,7 @@ static struct dmar_domain *get_domain_for_dev(struct pci_dev *pdev, int gaw)
info->dev = NULL;
info->domain = domain;
/* This domain is shared by devices under p2p bridge */
domain->flags |= DOMAIN_FLAG_MULTIPLE_DEVICES;
domain->flags |= DOMAIN_FLAG_P2P_MULTIPLE_DEVICES;

/* pcie-to-pci bridge already has a domain, uses it */
found = NULL;
Expand Down

0 comments on commit 6ed035e

Please sign in to comment.