summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2012-12-10 17:32:57 (GMT)
committerMarcelo Tosatti <mtosatti@redhat.com>2012-12-14 01:21:52 (GMT)
commite40f193f5bb022e927a57a4f5d5194e4f12ddb74 (patch)
treeb40ba3bafaf75eb6f27e41164b213cda708c7605 /arch/x86/kvm/x86.c
parent9c695d42dbd465bcaa865603b411a73c60e60978 (diff)
downloadlinux-fsl-qoriq-e40f193f5bb022e927a57a4f5d5194e4f12ddb74.tar.xz
KVM: Fix iommu map/unmap to handle memory slot moves
The iommu integration into memory slots expects memory slots to be added or removed and doesn't handle the move case. We can unmap slots from the iommu after we mark them invalid and map them before installing the final memslot array. Also re-order the kmemdup vs map so we don't leave iommu mappings if we get ENOMEM. Reviewed-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
0 files changed, 0 insertions, 0 deletions