diff options
author | cl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk> | 2005-08-02 17:12:36 +0000 |
---|---|---|
committer | cl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk> | 2005-08-02 17:12:36 +0000 |
commit | 59f1e250c214e48064e807bab456a3fffbf3c028 (patch) | |
tree | 6fcb9a404035d667c0bb0eecced2cf5f6228941e /tools/xcutils/xc_restore.c | |
parent | 375d3c927fb349f0216123221c5cda7bc54a4efe (diff) | |
download | xen-59f1e250c214e48064e807bab456a3fffbf3c028.tar.gz xen-59f1e250c214e48064e807bab456a3fffbf3c028.tar.bz2 xen-59f1e250c214e48064e807bab456a3fffbf3c028.zip |
Fix checkpointing - add save/restore support to the xenbus driver.
- Add xenbus driver suspend/resume functions
- Change xenbus irq to not be shared
- Translate store mfn in suspend record to pfn and back
- Make tools re-introduce the domain to the store
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
Diffstat (limited to 'tools/xcutils/xc_restore.c')
-rw-r--r-- | tools/xcutils/xc_restore.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tools/xcutils/xc_restore.c b/tools/xcutils/xc_restore.c index ebba6d698f..2eec44c40c 100644 --- a/tools/xcutils/xc_restore.c +++ b/tools/xcutils/xc_restore.c @@ -16,15 +16,23 @@ int main(int argc, char **argv) { - unsigned int xc_fd, io_fd, domid, nr_pfns; + unsigned int xc_fd, io_fd, domid, nr_pfns, evtchn; + int ret; + unsigned long mfn; - if (argc != 5) - errx(1, "usage: %s xcfd iofd domid nr_pfns", argv[0]); + if (argc != 6) + errx(1, "usage: %s xcfd iofd domid nr_pfns evtchn", argv[0]); xc_fd = atoi(argv[1]); io_fd = atoi(argv[2]); domid = atoi(argv[3]); nr_pfns = atoi(argv[4]); + evtchn = atoi(argv[5]); - return xc_linux_restore(xc_fd, io_fd, domid, nr_pfns); + ret = xc_linux_restore(xc_fd, io_fd, domid, nr_pfns, evtchn, &mfn); + if (ret == 0) { + printf("store-mfn %li\n", mfn); + fflush(stdout); + } + return ret; } |