kvm errors when using greater than 3572m of memory

Brian Almeida
2007-12-07T19:07:04Z

Hi,

I get the following error when I give -m 3752 or higher:

stormcrow:/data/kvm# kvm -no-acpi -m 3572 -cdrom
/data/iso/w2k3_server_ent_r2_disc1.iso -boot d -usbdevice tablet
tharkun.img
create_kernel_phys_mem: Invalid argumentset_vram_mapping: cannot
allocate memory: Invalid argument
NULL vram_pointer

If I do -m 3751 I get no error and it works:
stormcrow:/data/kvm# kvm -no-acpi -m 3571 -cdrom
/data/iso/w2k3_server_ent_r2_disc1.iso -boot d -usbdevice tablet
tharkun.img

If I go up a little bit higher, the message changes:
stormcrow:/data/kvm# kvm -no-acpi -m 3600 -cdrom
/data/iso/w2k3_server_ent_r2_disc1.iso -boot d -usbdevice tablet
tharkun.img
qemu: could not load PC BIOS '/usr/share/kvm/bios.bin'

shmmax is set to 4g:
stormcrow:/data/kvm# cat /proc/sys/kernel/shmmax
4294967296

I'm using kvm 54 from Debian unstable on 2.6.22-3-amd64. Any other
debugging info can be provided upon request.

Thanks,

Brian