xen-devel.lists.xenproject.org archive mirror
 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 V3 1/5] libxl: bump LIBXL_MAXMEM_CONSTANT to 2048
Date: Tue, 29 Oct 2013 11:39:47 +0000	[thread overview]
Message-ID: <1383046791-1256-2-git-send-email-wei.liu2@citrix.com> (raw)
In-Reply-To: <1383046791-1256-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-29 11:39 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-29 11:39 [PATCH V3 0/5] Reintroduce OVMF support Wei Liu
2013-10-29 11:39 ` Wei Liu [this message]
2013-11-01 11:14   ` [PATCH V3 1/5] libxl: bump LIBXL_MAXMEM_CONSTANT to 2048 George Dunlap
2013-11-01 16:02   ` Ian Campbell
2013-11-01 16:10     ` Wei Liu
2013-11-01 16:23       ` Ian Campbell
2013-11-06 10:32         ` Wei Liu
2013-11-06 10:41           ` Ian Campbell
2013-11-06 18:04             ` Stefano Stabellini
2013-11-07 11:03               ` Ian Campbell
2013-11-07 11:15                 ` Processed: " xen
2013-11-06 12:04   ` Wei Liu
2013-10-29 11:39 ` [PATCH V3 2/5] Config.mk: update OVMF changeset Wei Liu
2013-10-29 14:16   ` Fabio Fantoni
2013-10-29 14:21     ` Wei Liu
2013-10-29 16:15       ` Fabio Fantoni
2013-10-29 16:34         ` Wei Liu
2013-10-30 11:33           ` Fabio Fantoni
2013-10-30 11:50             ` Wei Liu
2013-10-30 12:57               ` Fabio Fantoni
2013-10-30 14:05                 ` Wei Liu
2013-10-30 15:52                   ` Fabio Fantoni
2013-10-30 15:58                     ` Wei Liu
2013-10-31  9:47                       ` Fabio Fantoni
2013-10-31 10:03                         ` Wei Liu
2013-10-31 11:22                           ` Fabio Fantoni
2013-10-31 14:40                             ` Wei Liu
2013-10-31 15:41                               ` Fabio Fantoni
2013-10-30 12:09             ` Wei Liu
2013-10-30 12:42               ` Fabio Fantoni
2013-11-01 16:05   ` Ian Campbell
2013-10-29 11:39 ` [PATCH V3 3/5] tools: clone ovmf to ovmf-dir directory Wei Liu
2013-10-29 11:39 ` [PATCH V3 4/5] tools: support system supplied ovmf binary Wei Liu
2013-10-29 11:39 ` [PATCH V3 5/5] tools: Enable OVMF build by default Wei Liu
2013-11-11 14:09 ` [PATCH V3 0/5] Reintroduce OVMF support Ian Campbell

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=1383046791-1256-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).