All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: xen-devel@lists.xen.org
Cc: Wei Liu <wei.liu2@citrix.com>,
	ian.jackson@eu.citrix.com, ian.campbell@citrix.com
Subject: [PATCH 1/4] libxl: bump LIBXL_MAXMEM_CONSTANT to 2048
Date: Tue, 15 Oct 2013 17:40:02 +0100	[thread overview]
Message-ID: <1381855205-3329-2-git-send-email-wei.liu2@citrix.com> (raw)
In-Reply-To: <1381855205-3329-1-git-send-email-wei.liu2@citrix.com>

When using OVMF we need to have 1MiB of memory in place for firmware.
Without this change we have:

(XEN) HVM128: Loading OVMF ...
(XEN) page_alloc.c:1460:d128 Over-allocation for domain 128: 33025 > 33024
(XEN) memory.c:132:d128 Could not allocate order=0 extent: id=128 memflags=0 (0 of 1)

This is not a fatal error as hvmloader will instead use low memory to
load OVMF, but it's better to eliminate such error.

Changing this constant doesn't necessary increase the total amount of
memory a guest uses because it's just a limit.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
---
 tools/libxl/libxl_internal.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h
index 165dc00..908af20 100644
--- a/tools/libxl/libxl_internal.h
+++ b/tools/libxl/libxl_internal.h
@@ -87,7 +87,7 @@
 #define LIBXL_QEMU_BODGE_TIMEOUT 2
 #define LIBXL_XENCONSOLE_LIMIT 1048576
 #define LIBXL_XENCONSOLE_PROTOCOL "vt100"
-#define LIBXL_MAXMEM_CONSTANT 1024
+#define LIBXL_MAXMEM_CONSTANT 2048
 #define LIBXL_PV_EXTRA_MEMORY 1024
 #define LIBXL_HVM_EXTRA_MEMORY 2048
 #define LIBXL_MIN_DOM0_MEM (128*1024)
-- 
1.7.10.4

  reply	other threads:[~2013-10-15 16:40 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-15 16:40 [PATCH 0/4] Reintroduce OVMF support Wei Liu
2013-10-15 16:40 ` Wei Liu [this message]
2013-10-29 12:03   ` [PATCH 1/4] libxl: bump LIBXL_MAXMEM_CONSTANT to 2048 George Dunlap
2013-10-29 12:15     ` Wei Liu
2013-10-29 12:24       ` Wei Liu
2013-10-29 12:29         ` George Dunlap
2013-10-29 12:35           ` Wei Liu
2013-10-15 16:40 ` [PATCH 2/4] tools: clone ovmf to ovmf-dir directory Wei Liu
2013-10-16  9:58   ` Jan Beulich
2013-10-16 12:34     ` Wei Liu
2013-10-15 16:40 ` [PATCH 3/4] tools: support system supplied ovmf binary Wei Liu
2013-10-15 16:40 ` [PATCH 4/4] tools: Enable OVMF build by default Wei Liu
2013-10-16 10:02   ` Jan Beulich
2013-10-16 10:37     ` Ian Campbell
2013-10-16 11:38       ` Wei Liu
2013-10-16 12:53         ` Ian Campbell
2013-10-16 13:00           ` Wei Liu
2013-10-16 10:03 ` [PATCH 0/4] Reintroduce OVMF support Fabio Fantoni
2013-10-16 12:51   ` Wei Liu
2013-10-16 14:13     ` Fabio Fantoni
2013-10-16 15:00       ` Wei Liu
2013-10-16 15:17         ` Ian Campbell
2013-10-17  9:13         ` Fabio Fantoni
2013-10-17  9:27           ` Ian Campbell
2013-10-16 12:52 ` David Vrabel
2013-10-16 12:59   ` Ian Campbell
2013-10-16 13:10   ` Wei Liu
2013-10-28 10:53     ` Fabio Fantoni
2013-10-28 11:32       ` Wei Liu
2013-10-28 12:10 ` Wei Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1381855205-3329-2-git-send-email-wei.liu2@citrix.com \
    --to=wei.liu2@citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.