From: Alex Williamson Date: Mon, 10 Dec 2012 17:32:57 +0000 (-0700) Subject: KVM: Fix iommu map/unmap to handle memory slot moves X-Git-Tag: v3.9-rc1~97^2~100 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e40f193f5bb022e927a57a4f5d5194e4f12ddb74;p=pandora-kernel.git 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 Signed-off-by: Alex Williamson Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed