diff options
author | Tim Deegan <Tim.Deegan@xensource.com> | 2007-04-05 15:11:22 +0100 |
---|---|---|
committer | Tim Deegan <Tim.Deegan@xensource.com> | 2007-04-05 15:11:22 +0100 |
commit | 538a65bcc3279e4539599de04d3317a5373c3b9f (patch) | |
tree | ddff11cb6bb1ddd0822d4e64cafd0c84bb1690c3 /tools/libxc/xenguest.h | |
parent | e1290b1524218d977a98825c8cec8c2cc12427ef (diff) | |
download | xen-538a65bcc3279e4539599de04d3317a5373c3b9f.tar.gz xen-538a65bcc3279e4539599de04d3317a5373c3b9f.tar.bz2 xen-538a65bcc3279e4539599de04d3317a5373c3b9f.zip |
[HVM] Save/restore: merge xc_linux_restore and xc_hvm_restore
into one function (and one file) since they share a lot of code
Signed-off-by: Tim Deegan <Tim.Deegan@øensource.com>
--HG--
rename : tools/libxc/xc_linux_restore.c => tools/libxc/xc_domain_restore.c
Diffstat (limited to 'tools/libxc/xenguest.h')
-rw-r--r-- | tools/libxc/xenguest.h | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/tools/libxc/xenguest.h b/tools/libxc/xenguest.h index 988c85feb6..8b636abb81 100644 --- a/tools/libxc/xenguest.h +++ b/tools/libxc/xenguest.h @@ -38,29 +38,21 @@ int xc_hvm_save(int xc_handle, int io_fd, uint32_t dom, uint32_t max_iters, void (*qemu_flip_buffer)(int, int)); /** - * This function will restore a saved domain running Linux. + * This function will restore a saved domain. * * @parm xc_handle a handle to an open hypervisor interface * @parm fd the file descriptor to restore a domain from * @parm dom the id of the domain * @parm store_evtchn the store event channel for this domain to use * @parm store_mfn returned with the mfn of the store page + * @parm hvm non-zero if this is a HVM restore + * @parm pae non-zero if this HVM domain has PAE support enabled * @return 0 on success, -1 on failure */ -int xc_linux_restore(int xc_handle, int io_fd, uint32_t dom, - unsigned int store_evtchn, unsigned long *store_mfn, - unsigned int console_evtchn, unsigned long *console_mfn); - -/** - * This function will restore a saved hvm domain running unmodified guest. - * - * @parm store_mfn pass mem size & returned with the mfn of the store page - * @return 0 on success, -1 on failure - */ -int xc_hvm_restore(int xc_handle, int io_fd, uint32_t dom, - unsigned int store_evtchn, - unsigned long *store_mfn, - unsigned int pae, unsigned int apic); +int xc_domain_restore(int xc_handle, int io_fd, uint32_t dom, + unsigned int store_evtchn, unsigned long *store_mfn, + unsigned int console_evtchn, unsigned long *console_mfn, + unsigned int hvm, unsigned int pae); /** * This function will create a domain for a paravirtualized Linux |