Skip to content

make xenguest save and restore reentrant

Vincent Hanquez xen-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7create a domain_info_context structure to store guest_width and p2m_size for macros.tools/libxc/xc_core.c tools/libxc/xc_core_x86.c tools/libxc/xc_core_x86.h +6 more+134 -1280 replies
2/7create a global context structure to record global variables in savetools/libxc/xc_domain_save.c+47 -490 replies
3/7move restore global variable to a global static contexttools/libxc/xc_domain_restore.c+73 -780 replies
4/7move domain_info_context into the save_contexttools/libxc/xc_domain_save.c+10 -70 replies
5/7move the domain_info_context into the restore_contexttools/libxc/xc_domain_restore.c+8 -30 replies
6/7pass the suspend_context through function and allocate the context on the save function stack.tools/libxc/xc_domain_save.c+14 -130 replies
7/7pass the restore_context through function and allocate the context on the restore function stack.tools/libxc/xc_domain_restore.c+32 -300 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [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
[email protected]
http://lists.xensource.com/xen-devel