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. > > 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. > > 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. > My apologies, there was a typo in this patch. Please apply the attached patch (v4) instead. Regards, Anthony Liguori