kvm: Obey read-only mappings in iommu
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 24 Jan 2013 22:04:09 +0000 (15:04 -0700)
committerGleb Natapov <gleb@redhat.com>
Sun, 27 Jan 2013 10:41:41 +0000 (12:41 +0200)
commitd47510e295c0f82699192a61d715351cf00f65de
tree77b842f1e1f04ac4650fc54e6a267747b30d2bd8
parent261874b0d5ebe2a5ccc544df7170d6559635e79a
kvm: Obey read-only mappings in iommu

We've been ignoring read-only mappings and programming everything
into the iommu as read-write.  Fix this to only include the write
access flag when read-only is not set.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
virt/kvm/iommu.c