[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH RFC v1 68/74] libxl__domain_build_info_setdefault_pvhhvm: introduce



From: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>

We are going to want to make bits of a pvh config, specifically the
build_info, internally in libxl.  This code is part of the
default-setting etc. and will need to be called there.

Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
 tools/libxl/libxl_create.c   | 9 +++++++++
 tools/libxl/libxl_internal.h | 2 ++
 2 files changed, 11 insertions(+)

diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c
index a837a7f5be..6d910e4a09 100644
--- a/tools/libxl/libxl_create.c
+++ b/tools/libxl/libxl_create.c
@@ -396,6 +396,15 @@ int libxl__domain_build_info_setdefault(libxl__gc *gc,
         return ERROR_INVAL;
     }
 
+    rc = libxl__domain_build_info_setdefault_pvhhvm(gc, b_info);
+    if (rc) return rc;
+
+    return 0;
+}
+
+int libxl__domain_build_info_setdefault_pvhhvm(libxl__gc *gc,
+                                        libxl_domain_build_info *b_info)
+{
     /* Configuration fields shared between PVH and HVM. */
     if (b_info->type != LIBXL_DOMAIN_TYPE_PV) {
         if (libxl__timer_mode_is_default(&b_info->timer_mode))
diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h
index 15a3c33697..174cf35d97 100644
--- a/tools/libxl/libxl_internal.h
+++ b/tools/libxl/libxl_internal.h
@@ -1254,6 +1254,8 @@ _hidden int 
libxl__domain_create_info_setdefault(libxl__gc *gc,
                                         libxl_domain_create_info *c_info);
 _hidden int libxl__domain_build_info_setdefault(libxl__gc *gc,
                                         libxl_domain_build_info *b_info);
+_hidden int libxl__domain_build_info_setdefault_pvhhvm(libxl__gc *gc,
+                                        libxl_domain_build_info *b_info);
 _hidden void libxl__rdm_setdefault(libxl__gc *gc,
                                    libxl_domain_build_info *b_info);
 
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.