All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7][RFC] make xenguest save & restore functions reentrant
@ 2009-11-13 23:43 Vincent Hanquez
  2009-11-13 23:43 ` [PATCH 1/7] add explicit parameter to macros instead of assuming symbol name available on the stack or as a global variable Vincent Hanquez
                   ` (7 more replies)
  0 siblings, 8 replies; 12+ messages in thread
From: Vincent Hanquez @ 2009-11-13 23:43 UTC (permalink / raw)
  To: Xen Devel; +Cc: Vincent Hanquez

The following patchset make suspend and restore code reentrant by having an
explicit context to store current variables across all the suspend/restore code.

This work is necessary for beeing able to get rid of the fork of processes
during save&restore, and provide a simpler interface for toolstack developers.

it hasn't been properly stress tested yet.

Vincent Hanquez (7):
  add explicit parameter to macros instead of assuming symbol name
    available on the stack or as a global variable.
  p2m_size is unnecessarily passed as a parameter when it's available
    as a global variable.
  move global variable in suspend into a global context
  move the suspend_ctx on the save stack instead of a global one
  alias i/FPP(guest_width) as p2m_index and replace every usage
  move restore global variable into a global context
  pass restore context as an argument instead of a global context

 tools/libxc/xc_core.c           |    2 +-
 tools/libxc/xc_core_x86.c       |   20 ++--
 tools/libxc/xc_domain_restore.c |  331 +++++++++++++++++++--------------------
 tools/libxc/xc_domain_save.c    |  243 ++++++++++++++---------------
 tools/libxc/xc_offline_page.c   |    8 +-
 tools/libxc/xc_resume.c         |   12 +-
 tools/libxc/xg_private.h        |   16 +-
 tools/libxc/xg_save_restore.h   |   22 ++--
 8 files changed, 324 insertions(+), 330 deletions(-)

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-11-16 11:39 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-13 23:43 [PATCH 0/7][RFC] make xenguest save & restore functions reentrant Vincent Hanquez
2009-11-13 23:43 ` [PATCH 1/7] add explicit parameter to macros instead of assuming symbol name available on the stack or as a global variable Vincent Hanquez
2009-11-13 23:43 ` [PATCH 2/7] p2m_size is unnecessarily passed as a parameter when it's available " Vincent Hanquez
2009-11-13 23:43 ` [PATCH 3/7] move global variables in suspend into a global context Vincent Hanquez
2009-11-13 23:43 ` [PATCH 4/7] move the suspend_ctx on the save stack instead of a global one Vincent Hanquez
2009-11-13 23:43 ` [PATCH 5/7] alias i/FPP(guest_width) as p2m_index and replace every usage Vincent Hanquez
2009-11-13 23:43 ` [PATCH 6/7] move restore global variables into a global context Vincent Hanquez
2009-11-13 23:43 ` [PATCH 7/7] pass restore context as an argument instead of " Vincent Hanquez
2009-11-14  8:25 ` [PATCH 0/7][RFC] make xenguest save & restore functions reentrant Keir Fraser
2009-11-15 10:08   ` Vincent Hanquez
2009-11-15 10:20     ` Keir Fraser
2009-11-16 11:39       ` Vincent Hanquez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.