aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_x86.c
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2012-05-30 08:57:51 +0100
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2012-05-30 08:57:51 +0100
commit45e603f6f86785c232a8b7d49a723660a7d0124b (patch)
treeb895c93c74390c21b587d49cdeb4d6df9979785d /tools/libxl/libxl_x86.c
parent25801d01252b22ef4bcef405108414d59e91ae4f (diff)
downloadxen-45e603f6f86785c232a8b7d49a723660a7d0124b.tar.gz
xen-45e603f6f86785c232a8b7d49a723660a7d0124b.tar.bz2
xen-45e603f6f86785c232a8b7d49a723660a7d0124b.zip
libxl: Introduce libxl__arch_domain_create (x86 version)
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Acked-by: Ian Jackson <Ian.Jackson@eu.citrix.com> Acked-by: Ian Campbell <Ian.Campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/libxl_x86.c')
-rw-r--r--tools/libxl/libxl_x86.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/libxl/libxl_x86.c b/tools/libxl/libxl_x86.c
new file mode 100644
index 0000000000..7e28504020
--- /dev/null
+++ b/tools/libxl/libxl_x86.c
@@ -0,0 +1,19 @@
+#include "libxl_internal.h"
+#include "libxl_arch.h"
+
+int libxl__arch_domain_create(libxl__gc *gc, libxl_domain_config *d_config,
+ uint32_t domid)
+{
+ int ret = 0;
+ if (d_config->c_info.type == LIBXL_DOMAIN_TYPE_PV &&
+ libxl_defbool_val(d_config->b_info.u.pv.e820_host)) {
+ ret = libxl__e820_alloc(gc, domid, d_config);
+ if (ret) {
+ LIBXL__LOG_ERRNO(gc->owner, LIBXL__LOG_ERROR,
+ "Failed while collecting E820 with: %d (errno:%d)\n",
+ ret, errno);
+ }
+ }
+
+ return ret;
+}