|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 6 of 12] libxl: introduce the concept of dom0 minimum
Introduce a minimum value for the memory assigned to dom0.
Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
diff -r c46a6c796bb5 tools/libxl/libxl.c
--- a/tools/libxl/libxl.c Fri Sep 03 11:47:46 2010 +0100
+++ b/tools/libxl/libxl.c Fri Sep 03 11:49:10 2010 +0100
@@ -2906,6 +2906,12 @@ retry_transaction:
abort = 1;
goto out;
}
+ if (!domid && new_target_memkb < LIBXL_MIN_DOM0_MEM) {
+ XL_LOG(ctx, XL_LOG_ERROR,
+ "new target for dom0 is below the minimum threshold\n");
+ abort = 1;
+ goto out;
+ }
videoram_s = libxl_xs_read(&gc, t, libxl_sprintf(&gc,
"%s/memory/videoram", dompath));
diff -r c46a6c796bb5 tools/libxl/libxl_internal.h
--- a/tools/libxl/libxl_internal.h Fri Sep 03 11:47:46 2010 +0100
+++ b/tools/libxl/libxl_internal.h Fri Sep 03 11:49:10 2010 +0100
@@ -43,6 +43,7 @@
#define LIBXL_MAXMEM_CONSTANT 1024
#define LIBXL_PV_EXTRA_MEMORY 1024
#define LIBXL_HVM_EXTRA_MEMORY 2048
+#define LIBXL_MIN_DOM0_MEM (128*1024)
#define QEMU_SIGNATURE "QemuDeviceModelRecord"
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 0 of 12] v4: xl/libxl autoballooning, Stefano Stabellini
- [Xen-devel] [PATCH 1 of 12] libxl: add current_memkb to libxl_dominfo, stefano . stabellini
- [Xen-devel] [PATCH 2 of 12] libxl: do not modify static-max after domain creation, stefano . stabellini
- [Xen-devel] [PATCH 3 of 12] libxl: use transactions in libxl_set_memory_target, stefano . stabellini
- [Xen-devel] [PATCH 4 of 12] libxl: add a "relative" parameter to libxl_set_memory_target, stefano . stabellini
- [Xen-devel] [PATCH 5 of 12] libxl: adds few more memory operations, stefano . stabellini
- [Xen-devel] [PATCH 8 of 12] introduce XEN_LOCK_DIR, stefano . stabellini
- [Xen-devel] [PATCH 6 of 12] libxl: introduce the concept of dom0 minimum memory,
stefano . stabellini <=
- [Xen-devel] [PATCH 7 of 12] xl: add a global configuration file, stefano . stabellini
- [Xen-devel] [PATCH 9 of 12] xl: free memory before building a domain, stefano . stabellini
- [Xen-devel] [PATCH 11 of 12] xl: parse maxmem parameter in VM config files, stefano . stabellini
- [Xen-devel] [PATCH 10 of 12] libxl: proper accounting for the videoram, stefano . stabellini
- [Xen-devel] [PATCH 12 of 12] libxl: add a detailed explanation of the libxl domain memory model, stefano . stabellini
|
|
|
|
|