WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [LIBXC] Provide weak stub default impleme

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [LIBXC] Provide weak stub default implementations of xc_hvm_save() and
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 23 Jan 2007 12:05:19 -0800
Delivery-date: Tue, 23 Jan 2007 12:06:32 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1169567885 0
# Node ID bea505a697223f59eceb789ccbff7fd09bc14a7b
# Parent  373b09ddc90576909400b48457839d487ca1a49e
[LIBXC] Provide weak stub default implementations of xc_hvm_save() and
xc_hvm_restore() for architectures with no full implementation.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/libxc/xg_private.c |   37 +++++++++++++++++++++++++++++--------
 1 files changed, 29 insertions(+), 8 deletions(-)

diff -r 373b09ddc905 -r bea505a69722 tools/libxc/xg_private.c
--- a/tools/libxc/xg_private.c  Tue Jan 23 15:54:12 2007 +0000
+++ b/tools/libxc/xg_private.c  Tue Jan 23 15:58:05 2007 +0000
@@ -188,11 +188,32 @@ unsigned long csum_page(void *page)
     return sum ^ (sum>>32);
 }
 
-__attribute__((weak)) int xc_hvm_build(
-    int xc_handle,
-    uint32_t domid,
-    int memsize,
-    const char *image_name)
-{
-    return -ENOSYS;
-}
+__attribute__((weak)) 
+int xc_hvm_build(int xc_handle,
+                 uint32_t domid,
+                 int memsize,
+                 const char *image_name)
+{
+    errno = ENOSYS;
+    return -1;
+}
+
+__attribute__((weak)) 
+int xc_hvm_save(int xc_handle, int io_fd, uint32_t dom, uint32_t max_iters,
+                uint32_t max_factor, uint32_t flags,
+                int (*suspend)(int domid))
+{
+    errno = ENOSYS;
+    return -1;
+}
+
+__attribute__((weak)) 
+int xc_hvm_restore(int xc_handle, int io_fd, uint32_t dom,
+                   unsigned long nr_pfns, unsigned int store_evtchn,
+                   unsigned long *store_mfn, unsigned int console_evtchn,
+                   unsigned long *console_mfn,
+                   unsigned int pae, unsigned int apic)
+{
+    errno = ENOSYS;
+    return -1;
+}

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [LIBXC] Provide weak stub default implementations of xc_hvm_save() and, Xen patchbot-unstable <=