diff options
author | Tim Deegan <Tim.Deegan@xensource.com> | 2007-02-08 15:00:33 +0000 |
---|---|---|
committer | Tim Deegan <Tim.Deegan@xensource.com> | 2007-02-08 15:00:33 +0000 |
commit | de602931ef7752d469b206b21ffad7f38810cda6 (patch) | |
tree | 134d8defe6cb1592f24c8839b5b00c5ea287e070 /tools/xcutils/xc_restore.c | |
parent | a7564870f17251dcd07d60dff2fcb17d66246354 (diff) | |
download | xen-de602931ef7752d469b206b21ffad7f38810cda6.tar.gz xen-de602931ef7752d469b206b21ffad7f38810cda6.tar.bz2 xen-de602931ef7752d469b206b21ffad7f38810cda6.zip |
[HVM] Save/restore: don't try to set the console ring MFN
in a HVM restore. In particular, don't print an uninitialized stack
variable, which causes XMLRPC exceptions in xend.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Diffstat (limited to 'tools/xcutils/xc_restore.c')
-rw-r--r-- | tools/xcutils/xc_restore.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/xcutils/xc_restore.c b/tools/xcutils/xc_restore.c index 8e26d9bb70..6629e33082 100644 --- a/tools/xcutils/xc_restore.c +++ b/tools/xcutils/xc_restore.c @@ -45,14 +45,15 @@ main(int argc, char **argv) /* pass the memsize to xc_hvm_restore to find the store_mfn */ store_mfn = hvm; ret = xc_hvm_restore(xc_fd, io_fd, domid, nr_pfns, store_evtchn, - &store_mfn, console_evtchn, &console_mfn, pae, apic); + &store_mfn, pae, apic); } else ret = xc_linux_restore(xc_fd, io_fd, domid, nr_pfns, store_evtchn, &store_mfn, console_evtchn, &console_mfn); if (ret == 0) { printf("store-mfn %li\n", store_mfn); - printf("console-mfn %li\n", console_mfn); + if (!hvm) + printf("console-mfn %li\n", console_mfn); fflush(stdout); } |