From: Alex Williamson Date: Mon, 10 Dec 2012 17:32:51 +0000 (-0700) Subject: KVM: Check userspace_addr when modifying a memory slot X-Git-Tag: v3.9-rc1~97^2~101 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c695d42dbd465bcaa865603b411a73c60e60978;p=pandora-kernel.git KVM: Check userspace_addr when modifying a memory slot The API documents that only flags and guest physical memory space can be modified on an existing slot, but we don't enforce that the userspace address cannot be modified. Instead we just ignore it. This means that a user may think they've successfully moved both the guest and user addresses, when in fact only the guest address changed. Check and error instead. Reviewed-by: Gleb Natapov Signed-off-by: Alex Williamson Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed