repository: /home/avi/kvm branch: (no branch) commit 4c6c960a660f767465c3d8582ecb2d56268877e2 Author: Izik Eidus <[EMAIL PROTECTED]> Date: Thu Nov 8 00:51:00 2007 +0200
kvm: qemu: make qemu_ram_alloc() be able to allocate more than 4GB of memory Signed-off-by: Izik Eidus <[EMAIL PROTECTED]> Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> diff --git a/qemu/cpu-all.h b/qemu/cpu-all.h index 8ccbace..e9bc632 100644 --- a/qemu/cpu-all.h +++ b/qemu/cpu-all.h @@ -799,7 +799,7 @@ void cpu_register_physical_memory(target_phys_addr_t start_addr, unsigned long size, unsigned long phys_offset); uint32_t cpu_get_physical_page_desc(target_phys_addr_t addr); -ram_addr_t qemu_ram_alloc(unsigned int size); +ram_addr_t qemu_ram_alloc(unsigned long size); void qemu_ram_free(ram_addr_t addr); int cpu_register_io_memory(int io_index, CPUReadMemoryFunc **mem_read, diff --git a/qemu/exec.c b/qemu/exec.c index 3e588d5..788a913 100644 --- a/qemu/exec.c +++ b/qemu/exec.c @@ -2090,7 +2090,7 @@ uint32_t cpu_get_physical_page_desc(target_phys_addr_t addr) } /* XXX: better than nothing */ -ram_addr_t qemu_ram_alloc(unsigned int size) +ram_addr_t qemu_ram_alloc(unsigned long size) { ram_addr_t addr; if ((phys_ram_alloc_offset + size) >= phys_ram_size) { ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ kvm-commits mailing list kvm-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-commits