|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 14 of 22] xenpaging: catch xc_mem_paging_resume error
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1307695639 -7200
# Node ID c67d7c0936969d076e30700c9a8f57080238be4e
# Parent f26f07e19318b112b58ee370c16bee8bf5605d3f
xenpaging: catch xc_mem_paging_resume errors
In the unlikely event that xc_mem_paging_resume() fails, do not overwrite the
error with the return value from xc_evtchn_notify()
Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
diff -r f26f07e19318 -r c67d7c093696 tools/xenpaging/xenpaging.c
--- a/tools/xenpaging/xenpaging.c Fri Jun 10 10:47:18 2011 +0200
+++ b/tools/xenpaging/xenpaging.c Fri Jun 10 10:47:19 2011 +0200
@@ -442,8 +442,9 @@ static int xenpaging_resume_page(xenpagi
/* Tell Xen page is ready */
ret = xc_mem_paging_resume(paging->xc_handle, paging->mem_event.domain_id,
rsp->gfn);
- ret = xc_evtchn_notify(paging->mem_event.xce_handle,
- paging->mem_event.port);
+ if ( ret == 0 )
+ ret = xc_evtchn_notify(paging->mem_event.xce_handle,
+ paging->mem_event.port);
out:
return ret;
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 04 of 22] xenpaging: drop xc.c, remove ASSERT, (continued)
- [Xen-devel] [PATCH 04 of 22] xenpaging: drop xc.c, remove ASSERT, Olaf Hering
- [Xen-devel] [PATCH 11 of 22] xenpaging: do not bounce p2mt to xenpaging, Olaf Hering
- [Xen-devel] [PATCH 06 of 22] xenpaging: drop xc.c, remove xc_wait_for_event, Olaf Hering
- [Xen-devel] [PATCH 12 of 22] xenpaging: remove srand call, Olaf Hering
- [Xen-devel] [PATCH 10 of 22] xenpaging: correct dropping of pages to avoid full ring buffer, Olaf Hering
- [Xen-devel] [PATCH 02 of 22] tools: merge several bitop functions into xc_bitops.h, Olaf Hering
- [Xen-devel] [PATCH 09 of 22] xenpaging: drop xc.c, remove xc files, Olaf Hering
- [Xen-devel] [PATCH 05 of 22] xenpaging: drop xc.c, remove xc_platform_info_t, Olaf Hering
- [Xen-devel] [PATCH 07 of 22] xenpaging: drop xc.c, move xc_mem_paging_flush_ioemu_cache, Olaf Hering
- [Xen-devel] [PATCH 13 of 22] xenpaging: remove return values from functions that can not fail, Olaf Hering
- [Xen-devel] [PATCH 14 of 22] xenpaging: catch xc_mem_paging_resume errors,
Olaf Hering <=
- [Xen-devel] [PATCH 15 of 22] xenpaging: remove local domain_id variable, Olaf Hering
- [Xen-devel] [PATCH 16 of 22] xenpaging: move num_pages into xenpaging struct, Olaf Hering
- [Xen-devel] [PATCH 18 of 22] xenpaging: pass integer to xenpaging_populate_page, Olaf Hering
- [Xen-devel] [PATCH 19 of 22] xenpaging: add helper function for unlinking pagefile, Olaf Hering
- [Xen-devel] [PATCH 20 of 22] xenpaging: add watch thread to catch guest shutdown, Olaf Hering
- [Xen-devel] [PATCH 17 of 22] xenpaging: start paging in the middle of gfn range, Olaf Hering
- [Xen-devel] [PATCH 21 of 22] xenpaging: implement stopping of pager by sending SIGTERM/SIGINT, Olaf Hering
- [Xen-devel] [PATCH 22 of 22] xenpaging: remove private mem_event.h, Olaf Hering
|
|
|
|
|