From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Cc: kvm-devel@lists.sourceforge.net, Paul Brook <paul@codesourcery.com>
Subject: Re: [Qemu-devel] [PATCH 1/5] Use correct types to enable > 2G support (v3)
Date: Tue, 8 Apr 2008 23:50:41 +0200 [thread overview]
Message-ID: <20080408215041.GD11492@volta.aurel32.net> (raw)
In-Reply-To: <1202137865-20232-2-git-send-email-aliguori@us.ibm.com>
On Mon, Feb 04, 2008 at 09:11:01AM -0600, Anthony Liguori wrote:
> KVM supports more than 2GB of memory for x86_64 hosts. The following patch
> fixes a number of type related issues where int's were being used when they
> shouldn't have been. It also introduces CMOS support so the BIOS can build
> the appropriate e820 tables.
Is this already supported in bochsbios? If not, do you have a patch
at hand?
> For v2 of this patch, I've moved ram_addr_t to cpu-all.h and switched
> ram_size to be a ram_addr_t. I've also removed the memory limit check for
> x86_64 (provided kqemu isn't enabled) and enabled the use of a 'M' or 'G'
> suffix for the -m option. I've also tried to do a more thorough job of
> updating the code to use the proper types.
>
> This patch also includes support for setting up > 2GB of memory for
> TARGET_I386. KVM works quite happily with 5GB of ram but I suspect there
> are still some uint32_t's in the non-KVM does not work when using more than
> 3GB of RAM.
My tests show that qemu crashes very early for memory sizes > 3500MB.
But that's already an improvement compared to the current limit. Maybe
we should set a limit in the code until this problem is solved.
> Since v2, I got rid of an improper declaration of ram_size by moving it from
> sysemu.h to cpu-all.h. I also added some code to handle wrap around in the
> '-m' option. I also eliminated the unnecessary change to TARGET_PAGE_SIZE.
>
>From my point of view the patch looks good, except the part that parses
the memory size, which does actually nothing ;) The small patch below is
needed to fix that.
Does someone has still comments on this patch? If not I plan to commit
it to the SVN.
diff --git a/vl.c b/vl.c
index ec29fa2..d3a293a 100644
--- a/vl.c
+++ b/vl.c
@@ -8566,6 +8566,8 @@ int main(int argc, char **argv)
fprintf(stderr, "qemu: ram size too large\n");
exit(1);
}
+ else
+ ram_size = value;
/* On 32-bit hosts, QEMU is limited by virtual address space */
if (ram_size > (2047 << 20)
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
next prev parent reply other threads:[~2008-04-08 21:50 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-04 15:11 [PATCH 0/5] Support for the Kernel Virtual Machine interface (v3) Anthony Liguori
[not found] ` <1202137865-20232-1-git-send-email-aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2008-02-04 15:11 ` [PATCH 1/5] Use correct types to enable > 2G support (v3) Anthony Liguori
[not found] ` <1202137865-20232-2-git-send-email-aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2008-02-04 15:29 ` Izik Eidus
[not found] ` <1202138985.18306.7.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2008-02-04 15:33 ` Anthony Liguori
[not found] ` <47A73040.3030501-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2008-02-04 15:43 ` Izik Eidus
2008-02-04 15:31 ` Anthony Liguori
2008-04-08 21:50 ` Aurelien Jarno [this message]
2008-04-09 19:52 ` [Qemu-devel] [PATCH 1/5] Use correct types toenable " Sebastian Herbszt
2008-02-04 15:11 ` [PATCH 2/5] SCI fixes (v2) Anthony Liguori
2008-05-27 3:05 ` [kvm-devel] " Alex Williamson
2008-05-27 18:28 ` Anthony Liguori
2008-05-28 6:27 ` Avi Kivity
2008-05-28 12:37 ` Alex Williamson
2008-05-28 13:06 ` Avi Kivity
2008-05-28 21:50 ` Alex Williamson
2008-02-04 15:11 ` [PATCH 3/5] Fix daemonize options (v2) Anthony Liguori
2008-02-04 15:11 ` [PATCH 4/5] Tell BIOS about the number of CPUs (v2) Anthony Liguori
2008-02-04 15:11 ` [PATCH 5/5] QEMU support for the Kernel Virtual Machine interface (v3) Anthony Liguori
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=20080408215041.GD11492@volta.aurel32.net \
--to=aurelien@aurel32.net \
--cc=kvm-devel@lists.sourceforge.net \
--cc=paul@codesourcery.com \
--cc=qemu-devel@nongnu.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