This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] [PATCH 0/7] make xenguest save and restore reentrant

To: Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH 0/7] make xenguest save and restore reentrant
From: Vincent Hanquez <vincent.hanquez@xxxxxxxxxxxxx>
Date: Tue, 1 Dec 2009 06:59:07 +0000
Cc: Vincent Hanquez <vincent.hanquez@xxxxxxxxxxxxx>
Delivery-date: Mon, 30 Nov 2009 22:50:39 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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