diff options
author | mjw@wray-m-3.hpl.hp.com <mjw@wray-m-3.hpl.hp.com> | 2004-08-20 09:21:37 +0000 |
---|---|---|
committer | mjw@wray-m-3.hpl.hp.com <mjw@wray-m-3.hpl.hp.com> | 2004-08-20 09:21:37 +0000 |
commit | d5ff51612766126c1c1ed761df18d35006d117da (patch) | |
tree | d1467fc0c53c707fa14a68a85fbdca9cc8460c90 /tools/libxc/xc_linux_save.c | |
parent | fbd62525cf0973a912a7e90d350aac94c1188349 (diff) | |
parent | 50726278a5d66fcb044ea50cd053de0f445124d0 (diff) | |
download | xen-d5ff51612766126c1c1ed761df18d35006d117da.tar.gz xen-d5ff51612766126c1c1ed761df18d35006d117da.tar.bz2 xen-d5ff51612766126c1c1ed761df18d35006d117da.zip |
bitkeeper revision 1.1159.1.92 (4125c2a1hkXswFK5ZlWTGYbKQihTmQ)
Merge xenbk@gandalf:/var/bk/xeno-unstable.bk
into wray-m-3.hpl.hp.com:/home/mjw/repos-bk/xeno-unstable.bk
Diffstat (limited to 'tools/libxc/xc_linux_save.c')
-rw-r--r-- | tools/libxc/xc_linux_save.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/libxc/xc_linux_save.c b/tools/libxc/xc_linux_save.c index 5a47b30f56..cfcc6cd0c8 100644 --- a/tools/libxc/xc_linux_save.c +++ b/tools/libxc/xc_linux_save.c @@ -295,7 +295,7 @@ int xc_linux_save(int xc_handle, XcIOContext *ioctxt) int rc = 1, i, j, k, last_iter, iter = 0; unsigned long mfn; u32 domid = ioctxt->domain; - int live = 0; // (ioctxt->flags & XCFLAGS_LIVE); + int live = (ioctxt->flags & XCFLAGS_LIVE); int debug = (ioctxt->flags & XCFLAGS_DEBUG); int sent_last_iter, skip_this_iter; @@ -423,7 +423,7 @@ int xc_linux_save(int xc_handle, XcIOContext *ioctxt) mfn_to_pfn_table_start_mfn = xc_get_m2p_start_mfn( xc_handle ); live_mfn_to_pfn_table = - mfn_mapper_map_single(xc_handle, 0x7FFFU, + mfn_mapper_map_single(xc_handle, DOMID_XEN, PAGE_SIZE*1024, PROT_READ, mfn_to_pfn_table_start_mfn ); @@ -440,7 +440,8 @@ int xc_linux_save(int xc_handle, XcIOContext *ioctxt) /* Domain is still running at this point */ - if( live ){ + if( live ){ +printf("GO LIVE!!\n"); if ( xc_shadow_control( xc_handle, domid, DOM0_SHADOW_CONTROL_OP_ENABLE_LOGDIRTY, NULL, 0, NULL ) < 0 ) { |