Skip to contentSkip to conversation

Save/restore: merge xc_linux_restore and xc_hvm_restore

PATCH Alex Williamson 1 participant 1 message Apr 5, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 7 lines · Xen staging patchbot-unstable

# HG changeset patch
# User Tim Deegan <[email protected]>
# Date 1175782282 -3600
# Node ID e518f2fbdd724ca7b21789d2d075c7ee8665ddaa
# Parent 602d061ff51f50d7b46bd5ca78c4b70fbe809d20 [HVM] Save/restore: merge xc_linux_restore and xc_hvm_restore into one function (and one file) since they share a lot of code

Build fix for ia64. Keir/Tim, could you please check this into
xen-unstable.hg. Thanks,

Alex

---

tools/libxc/ia64/xc_ia64_linux_restore.c +8 -2
diff -r 69ab63bee57c tools/libxc/ia64/xc_ia64_linux_restore.c
@@ -59,9 +59,10 @@ read_page(int xc_handle, int io_fd, uint
 }
 
 int
-xc_linux_restore(int xc_handle, int io_fd, uint32_t dom,
+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 console_evtchn, unsigned long *console_mfn,
+                 unsigned int hvm, unsigned int pae)
 {
     DECLARE_DOMCTL;
     int rc = 1, i;
@@ -80,6 +81,11 @@ xc_linux_restore(int xc_handle, int io_f
 
     /* A temporary mapping of the guest's start_info page. */
     start_info_t *start_info;
+
+    if (hvm) {
+        ERROR("HVM Restore is unsupported");
+        goto out;
+    }
 
     /* For info only */
     nr_pfns = 0;