aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xg_private.c
diff options
context:
space:
mode:
authorHollis Blanchard <hollisb@us.ibm.com>2007-02-06 15:03:52 -0600
committerHollis Blanchard <hollisb@us.ibm.com>2007-02-06 15:03:52 -0600
commit4c03b0792eb8db290607866d017bc87ec3d4e580 (patch)
tree0ab83dae24a4c7e00c91786071a437f2dbc54e0a /tools/libxc/xg_private.c
parent0e290d99934ffccccf249e5f6c8bc5c584f73a9c (diff)
parent0ea3c30b5b68406c57154eb12c086a181c3095b4 (diff)
downloadxen-4c03b0792eb8db290607866d017bc87ec3d4e580.tar.gz
xen-4c03b0792eb8db290607866d017bc87ec3d4e580.tar.bz2
xen-4c03b0792eb8db290607866d017bc87ec3d4e580.zip
[POWERPC][XEN] Merge with xen-unstable.hg.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Diffstat (limited to 'tools/libxc/xg_private.c')
-rw-r--r--tools/libxc/xg_private.c33
1 files changed, 27 insertions, 6 deletions
diff --git a/tools/libxc/xg_private.c b/tools/libxc/xg_private.c
index ab770bb3ab..8d77752957 100644
--- a/tools/libxc/xg_private.c
+++ b/tools/libxc/xg_private.c
@@ -188,13 +188,34 @@ 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)
+__attribute__((weak))
+int xc_hvm_build(int xc_handle,
+ uint32_t domid,
+ int memsize,
+ const char *image_name)
{
- return -ENOSYS;
+ 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;
}
__attribute__((weak)) int xc_get_hvm_param(