Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158083
b: refs/heads/master
c: 21129f7
h: refs/heads/master
i:
  158081: 693c876
  158079: b07a464
v: v3
  • Loading branch information
Joerg Roedel committed Sep 3, 2009
1 parent 69579c2 commit 99fdba1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eba6ac60ba66c6bf6858938442204feaa67dea31
refs/heads/master: 21129f786f231f7a9dce5b504617b893f50a435f
9 changes: 9 additions & 0 deletions trunk/arch/x86/kernel/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1141,6 +1141,15 @@ static void __detach_device(struct protection_domain *domain, u16 devid)

/* ready */
spin_unlock(&domain->lock);

/*
* If we run in passthrough mode the device must be assigned to the
* passthrough domain if it is detached from any other domain
*/
if (iommu_pass_through) {
struct amd_iommu *iommu = amd_iommu_rlookup_table[devid];
__attach_device(iommu, pt_domain, devid);
}
}

/*
Expand Down

0 comments on commit 99fdba1

Please sign in to comment.