From: Alex Williamson Date: Mon, 10 Dec 2012 17:33:03 +0000 (-0700) Subject: KVM: Minor memory slot optimization X-Git-Tag: v3.9-rc1~97^2~99 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7f69c555ca430129b6cde81e9f0927531420c5c;p=pandora-kernel.git KVM: Minor memory slot optimization If a slot is removed or moved in the guest physical address space, we first allocate and install a new slot array with the invalidated entry. The old array is then freed. We then proceed to allocate yet another slot array to install the permanent replacement. Re-use the original array when this occurs and avoid the extra kfree/kmalloc. Reviewed-by: Gleb Natapov Signed-off-by: Alex Williamson Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed