repository: /home/avi/kvm branch: master commit 1a84133a94a65b83ac31984ea50f159cd267e9c4 Author: Izik Eidus <[EMAIL PROTECTED]> Date: Sat Oct 27 21:16:21 2007 +0200
this fix bug in the above 4 giga support as it look std-vga map itself to 0xe0000000, therefore this patch change qemu so that the memory hole will start from 0xe0000000 Signed-off-by: Izik Eidus <[EMAIL PROTECTED]> diff --git a/qemu/hw/pc.c b/qemu/hw/pc.c index 16ad0bd..8aae814 100644 --- a/qemu/hw/pc.c +++ b/qemu/hw/pc.c @@ -697,9 +697,9 @@ static void pc_init1(ram_addr_t ram_size, int vga_ram_size, int boot_device, qemu_irq *cpu_irq; qemu_irq *i8259; - if (ram_size + (phys_ram_size - ram_size) >= 0xf0000000 ) { - above_4g_mem_size = phys_ram_size - 0xf0000000; - ram_size = 0xf0000000 - (phys_ram_size - ram_size); + if (ram_size + (phys_ram_size - ram_size) >= 0xe0000000 ) { + above_4g_mem_size = phys_ram_size - 0xe0000000; + ram_size = 0xe0000000 - (phys_ram_size - ram_size); } linux_boot = (kernel_filename != NULL); diff --git a/user/kvmctl.c b/user/kvmctl.c index 054d007..f87ded1 100644 --- a/user/kvmctl.c +++ b/user/kvmctl.c @@ -351,7 +351,7 @@ int kvm_alloc_kernel_memory(kvm_context_t kvm, unsigned long memory, { unsigned long dosmem = 0xa0000; unsigned long exmem = 0xc0000; - unsigned long pcimem = 0xf0000000; + unsigned long pcimem = 0xe0000000; int r; int tss_ext; struct kvm_memory_region low_memory = { @@ -426,7 +426,7 @@ int kvm_alloc_userspace_memory(kvm_context_t kvm, unsigned long memory, { unsigned long dosmem = 0xa0000; unsigned long exmem = 0xc0000; - unsigned long pcimem = 0xf0000000; + unsigned long pcimem = 0xe0000000; int r; int tss_ext; struct kvm_userspace_memory_region low_memory = { ------------------------------------------------------------------------- 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