kvm: Force IOMMU remapping on memory slot read-only flag changes
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 24 Jan 2013 22:04:03 +0000 (15:04 -0700)
committerGleb Natapov <gleb@redhat.com>
Sun, 27 Jan 2013 10:41:30 +0000 (12:41 +0200)
Memory slot flags can be altered without changing other parameters of
the slot.  The read-only attribute is the only one the IOMMU cares
about, so generate an un-map, re-map when this occurs.  This also
avoid unnecessarily re-mapping the slot when no IOMMU visible changes
are made.

Reviewed-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>

No differences found