Vincent Hanquez
2009-Dec-01 06:59 UTC
[Xen-devel] [PATCH 0/7] make xenguest save and restore reentrant
The following patchset make xenguest save and restore functions reentrant by moving the global variables into a structure pass around functions. Vincent Hanquez (7): create a domain_info_context structure to store guest_width and p2m_size for macros. create a global context structure to record global variables in save move restore global variable to a global static context move domain_info_context into the save_context move the domain_info_context into the restore_context pass the suspend_context through function and allocate the context on the save function stack. pass the restore_context through function and allocate the context on the restore function stack. tools/libxc/xc_core.c | 13 +- tools/libxc/xc_core_x86.c | 30 +++-- tools/libxc/xc_core_x86.h | 2 +- tools/libxc/xc_domain_restore.c | 278 +++++++++++++++++++------------------- tools/libxc/xc_domain_save.c | 180 +++++++++++++------------- tools/libxc/xc_offline_page.c | 10 +- tools/libxc/xc_resume.c | 21 ++-- tools/libxc/xg_private.h | 18 ++- tools/libxc/xg_save_restore.h | 12 +- 9 files changed, 287 insertions(+), 277 deletions(-) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Vincent Hanquez
2009-Dec-01 06:59 UTC
[Xen-devel] [PATCH 1/7] create a domain_info_context structure to store guest_width and p2m_size for macros.
macro now refers to guest_width and p2m_size through a dinfo pointer. Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com> --- tools/libxc/xc_core.c | 13 +++--- tools/libxc/xc_core_x86.c | 30 ++++++++------ tools/libxc/xc_core_x86.h | 2 +- tools/libxc/xc_domain_restore.c | 82 +++++++++++++++++++-------------------- tools/libxc/xc_domain_save.c | 74 ++++++++++++++++------------------ tools/libxc/xc_offline_page.c | 10 ++-- tools/libxc/xc_resume.c | 21 ++++++---- tools/libxc/xg_private.h | 18 +++++--- tools/libxc/xg_save_restore.h | 12 +++--- 9 files changed, 134 insertions(+), 128 deletions(-) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Vincent Hanquez
2009-Dec-01 06:59 UTC
[Xen-devel] [PATCH 2/7] create a global context structure to record global variables in save
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com> --- tools/libxc/xc_domain_save.c | 96 ++++++++++++++++++++--------------------- 1 files changed, 47 insertions(+), 49 deletions(-) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Vincent Hanquez
2009-Dec-01 06:59 UTC
[Xen-devel] [PATCH 3/7] move restore global variable to a global static context
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com> --- tools/libxc/xc_domain_restore.c | 151 +++++++++++++++++++-------------------- 1 files changed, 73 insertions(+), 78 deletions(-) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Vincent Hanquez
2009-Dec-01 06:59 UTC
[Xen-devel] [PATCH 4/7] move domain_info_context into the save_context
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com> --- tools/libxc/xc_domain_save.c | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Vincent Hanquez
2009-Dec-01 06:59 UTC
[Xen-devel] [PATCH 5/7] move the domain_info_context into the restore_context
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com> --- tools/libxc/xc_domain_restore.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Vincent Hanquez
2009-Dec-01 06:59 UTC
[Xen-devel] [PATCH 6/7] pass the suspend_context through function and allocate the context on the save function stack.
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com> --- tools/libxc/xc_domain_save.c | 27 ++++++++++++++------------- 1 files changed, 14 insertions(+), 13 deletions(-) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Vincent Hanquez
2009-Dec-01 06:59 UTC
[Xen-devel] [PATCH 7/7] pass the restore_context through function and allocate the context on the restore function stack.
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com> --- tools/libxc/xc_domain_restore.c | 62 ++++++++++++++++++++------------------- 1 files changed, 32 insertions(+), 30 deletions(-) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel