From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Stabellini Subject: [PATCH v4 0/3] libxl: save/restore qemu physmap Date: Wed, 1 Feb 2012 18:09:58 +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.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" Cc: "rshriram@cs.ubc.ca" , Ian Campbell , 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. Important note: the second and third patches only make sense if the corresponding QEMU's patches[1] are accepted. [1] http://marc.info/?l=qemu-devel&m=132749682330542&w=2 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