aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl.c
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2011-01-21 18:06:23 +0000
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2011-01-21 18:06:23 +0000
commit648429dc4066e47d190484921845871000be217d (patch)
tree24d5fa8792ffe67913d11aaa59be1a53740ffbc6 /tools/libxl/libxl.c
parente6859a733df7c723b211e447c6f3f3fccace6f8d (diff)
downloadxen-648429dc4066e47d190484921845871000be217d.tar.gz
xen-648429dc4066e47d190484921845871000be217d.tar.bz2
xen-648429dc4066e47d190484921845871000be217d.zip
libxl, minios: stubdom console based save/restore
Add two "special" PV consoles to stubdoms that are going to be used to send and receive the qemu-xen save files on save/restore. Use the second PV console to send the qemu-xen save file and the third PV console to receive the qemu-xen save file on restore. Fix the console shutdown function free_consfront that is called when the qemu save file is closed. Stubdom save/restore is still broken with xend. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl.c')
-rw-r--r--tools/libxl/libxl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c
index 66ed7382cd..8277f53493 100644
--- a/tools/libxl/libxl.c
+++ b/tools/libxl/libxl.c
@@ -737,7 +737,8 @@ int libxl_primary_console_exec(libxl_ctx *ctx, uint32_t domid_vm)
{
uint32_t stubdomid = libxl_get_stubdom_id(ctx, domid_vm);
if (stubdomid)
- return libxl_console_exec(ctx, stubdomid, 1, LIBXL_CONSTYPE_PV);
+ return libxl_console_exec(ctx, stubdomid,
+ STUBDOM_CONSOLE_SERIAL, LIBXL_CONSTYPE_PV);
else {
if (libxl__domain_is_hvm(ctx, domid_vm))
return libxl_console_exec(ctx, domid_vm, 0, LIBXL_CONSTYPE_SERIAL);