diff options
author | Olaf Hering <olaf@aepfle.de> | 2012-01-30 13:06:34 +0100 |
---|---|---|
committer | Olaf Hering <olaf@aepfle.de> | 2012-01-30 13:06:34 +0100 |
commit | e47ceecc301c3d1123aaf2c6d95f214a6dda4e81 (patch) | |
tree | 094784068704a10041f7d176ba655d4191b1721f /extras/mini-os/include | |
parent | d3ec7b04d08dabb37bb09eb6876700f4f81f9392 (diff) | |
download | xen-e47ceecc301c3d1123aaf2c6d95f214a6dda4e81.tar.gz xen-e47ceecc301c3d1123aaf2c6d95f214a6dda4e81.tar.bz2 xen-e47ceecc301c3d1123aaf2c6d95f214a6dda4e81.zip |
xenpaging: unify return value in nominate and evict
Let p2m_mem_paging_nominate and p2m_mem_paging_evict return just one
error number. EINVAL is not very helpful in case of nominate, it can
happen if the pager tries to nominate a ballooned page. In this case the
gfn is not backed by a mfn, the pager can not know that. Similar with
evict, anything can happen between nominate and evict.
This change helps the pager to decide if the returned error is from the
function itself, or if it happend earlier. In the latter case, it is
most likely fatal and should be handled as such.
nominate and evict return EBUSY, which is supposed to mean
"pager request reached target function, and failed."
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
Diffstat (limited to 'extras/mini-os/include')
0 files changed, 0 insertions, 0 deletions