xen: privcmd: do not return pages which we have failed to unmap
authorIan Campbell <Ian.Campbell@citrix.com>
Fri, 6 Dec 2013 17:55:56 +0000 (17:55 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 6 Dec 2013 17:55:56 +0000 (17:55 +0000)
commitb6497b383f65dd1bc60ea1f5d70e157a268fbd15
treebae7233a155e97c6dd8c986ae5822fb1459f498e
parentc94cae53f9e564484f906a79be5639fc66e8cb02
xen: privcmd: do not return pages which we have failed to unmap

This failure represents a hypervisor issue, but if it does occur then nothing
good can come of returning pages which still refer to a foreign owned page
into the general allocation pool.

Instead we are forced to leak them. Log that we have done so.

The potential for failure only exists for autotranslated guest (e.g. ARM and
x86 PVH).

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/privcmd.c