Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356889
b: refs/heads/master
c: d47510e
h: refs/heads/master
i:
  356887: a8f6229
v: v3
  • Loading branch information
Alex Williamson authored and Gleb Natapov committed Jan 27, 2013
1 parent 79bd32d commit 0f96101
Show file tree
Hide file tree
Showing 2 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: 261874b0d5ebe2a5ccc544df7170d6559635e79a
refs/heads/master: d47510e295c0f82699192a61d715351cf00f65de
4 changes: 3 additions & 1 deletion trunk/virt/kvm/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot)
gfn = slot->base_gfn;
end_gfn = gfn + slot->npages;

flags = IOMMU_READ | IOMMU_WRITE;
flags = IOMMU_READ;
if (!(slot->flags & KVM_MEM_READONLY))
flags |= IOMMU_WRITE;
if (kvm->arch.iommu_flags & KVM_IOMMU_CACHE_COHERENCY)
flags |= IOMMU_CACHE;

Expand Down

0 comments on commit 0f96101

Please sign in to comment.