From: Stefano Stabellini Subject: [PATCH v6 0/3] libxl: save/restore qemu physmap Date: Tue, 20 Mar 2012 12:24:01 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "xen-devel@lists.xensource.com" Cc: "rshriram@cs.ubc.ca" , Ian Jackson , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Hi all, this patch series introduces a new xc_save_id called XC_SAVE_ID_TOOLSTACK to save/restore toolstack specific information. Libxl is going to use the new save_id to save and restore qemu's physmap. The QEMU side of this patch series has been accepted, so it is now safe to commit it to xen-unstable. Changes in v6: - rebased on "kexec: Fix printing of paddr_t in 32bit mode."; - use the command "xen-save-devices-state" to save the QEMU devices state. Changes in v5: - rebased on "arm: lr register in hyp mode is really LR_usr.". Changes in v4: - addressed Shriram's comments about the first patch: saving/restoring toolstack extra information should work we Remus too now; - added a new patch to use QMP "save_devices" command rather than "migrate" to save QEMU's device state. Changes in v3: - rebased the series; - xc_domain_restore: read the toolstack data in pagebuf_get_one, call the callback at finish_hvm; Changes in v2: - xc_domain_save frees the buffer allocated by the callback; - introduce a version number in the libxl save record; - define libxl__physmap_info and use it to read/store information to the buffer. Stefano Stabellini (3): libxc: introduce XC_SAVE_ID_TOOLSTACK libxl: save/restore qemu's physmap libxl_qmp: remove libxl__qmp_migrate, introduce libxl__qmp_save tools/libxc/xc_domain_restore.c | 46 ++++++++++++- tools/libxc/xc_domain_save.c | 17 +++++ tools/libxc/xenguest.h | 23 ++++++- tools/libxc/xg_save_restore.h | 1 + tools/libxl/libxl_dom.c | 143 ++++++++++++++++++++++++++++++++++++--- tools/libxl/libxl_internal.h | 2 +- tools/libxl/libxl_qmp.c | 82 +--------------------- tools/xcutils/xc_restore.c | 2 +- 8 files changed, 222 insertions(+), 94 deletions(-) Cheers, Stefano