memory: don't implicitly unpin for decrease-reservation
authorJan Beulich <jbeulich@suse.com>
Fri, 2 Mar 2018 15:39:41 +0000 (15:39 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 2 Mar 2018 16:07:18 +0000 (16:07 +0000)
commitffd823a156490925d2a3e135d62f1fcbabcdc510
tree9c4ae8f15ce357385b32dcf0f74317db0c3f4306
parent8bda3beb58eaf8ebe245f164a31cc06d0684b392
memory: don't implicitly unpin for decrease-reservation

It very likely was a mistake (copy-and-paste from domain cleanup code)
to implicitly unpin here: The caller should really unpin itself before
(or after, if they so wish) requesting the page to be removed.

This is XSA-252.

Reported-by: Jann Horn <jannh@google.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Gbp-Pq: Name memory-dont-implicitly-unpin-for-decreas.patch
xen/common/memory.c