Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125607
b: refs/heads/master
c: 863c74e
h: refs/heads/master
i:
  125605: 8f4318c
  125603: c05a31e
  125599: b06db55
v: v3
  • Loading branch information
Joerg Roedel committed Jan 3, 2009
1 parent cba96f8 commit cec74de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 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: 5b28df6f43ac9878f310ad0cb7f11ddb262a7ac6
refs/heads/master: 863c74ebd0152b21bc4b11c1447b5d1429287d37
1 change: 1 addition & 0 deletions trunk/arch/x86/include/asm/amd_iommu_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ struct protection_domain {
int mode; /* paging mode (0-6 levels) */
u64 *pt_root; /* page table root pointer */
unsigned long flags; /* flags to find out type of domain */
unsigned dev_cnt; /* devices assigned to this domain */
void *priv; /* private data */
};

Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/x86/kernel/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -825,9 +825,10 @@ static void set_device_domain(struct amd_iommu *iommu,
u16 devid)
{
unsigned long flags;

u64 pte_root = virt_to_phys(domain->pt_root);

domain->dev_cnt += 1;

pte_root |= (domain->mode & DEV_ENTRY_MODE_MASK)
<< DEV_ENTRY_MODE_SHIFT;
pte_root |= IOMMU_PTE_IR | IOMMU_PTE_IW | IOMMU_PTE_P | IOMMU_PTE_TV;
Expand Down

0 comments on commit cec74de

Please sign in to comment.