|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 01/18] xenpaging: Fix-up xenpaging tool code.
This isn't directly related to EPT checking, but does some general fix-ups
to the xenpaging code (adds some extra frees, etc.)
Already-Signed-off-by: Patrick Colp <pjcolp@xxxxxxxxx>
Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
---
tools/xenpaging/xenpaging.c | 22 ++++++++++++++++++----
1 file changed, 18 insertions(+), 4 deletions(-)
--- xen-4.0.1-testing.orig/tools/xenpaging/xenpaging.c
+++ xen-4.0.1-testing/tools/xenpaging/xenpaging.c
@@ -100,7 +100,7 @@ xenpaging_t *xenpaging_init(domid_t doma
paging->mem_event.ring_page = init_page();
if ( paging->mem_event.ring_page == NULL )
{
- ERROR("Error initialising shared page");
+ ERROR("Error initialising ring page");
goto err;
}
@@ -198,13 +198,27 @@ xenpaging_t *xenpaging_init(domid_t doma
return paging;
err:
- if ( paging->bitmap )
+ if ( paging )
+ {
+ if ( paging->mem_event.shared_page )
+ {
+ munlock(paging->mem_event.shared_page, PAGE_SIZE);
+ free(paging->mem_event.shared_page);
+ }
+
+ if ( paging->mem_event.ring_page )
+ {
+ munlock(paging->mem_event.ring_page, PAGE_SIZE);
+ free(paging->mem_event.ring_page);
+ }
+
free(paging->bitmap);
- if ( paging->platform_info )
free(paging->platform_info);
- if ( paging )
+ free(paging->domain_info);
free(paging);
+ }
+ err_iface:
return NULL;
}
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 00/18] xenpaging changes for 4.0, Olaf Hering
- [Xen-devel] [PATCH 01/18] xenpaging: Fix-up xenpaging tool code.,
Olaf Hering <=
- [Xen-devel] [PATCH 04/18] xenpaging: break endless loop during inital page-out with large pagefiles, Olaf Hering
- [Xen-devel] [PATCH 02/18] xenpaging: call pageout policy function in xenpaging_evict_page, Olaf Hering
- [Xen-devel] [PATCH 03/18] xenpaging: fix fd leak in xenstore, Olaf Hering
- [Xen-devel] [PATCH 07/18] xenpaging/qemu-dm: add command to flush buffer cache., Olaf Hering
- [Xen-devel] [PATCH 10/18] xenpaging: reduce MINIMUM_RESTART_TIME, Olaf Hering
- [Xen-devel] [PATCH 13/18] xenpaging: increase recently used pages from 4MB to 64MB, Olaf Hering
- [Xen-devel] [PATCH 09/18] xenpaging: populate only paged-out pages, Olaf Hering
- [Xen-devel] [PATCH 12/18] xenpaging: add signal handling, Olaf Hering
- [Xen-devel] [PATCH 14/18] xenpaging: page-in granttable entries, Olaf Hering
- [Xen-devel] [PATCH 11/18] xenpaging: start xenpaging via config option, Olaf Hering
|
|
|
|
|