[Lguest] Error inserting lg: Cannot allocate memory

Stefan Hellermann stefan at the2masters.de
Mon Feb 25 09:05:49 EST 2008


Hello,

I would like to try lguest, but I it doesn't work here. When I load lg it says:
FATAL: Error inserting lg (/lib/modules/2.6.25-rc2-via/kernel/drivers/lguest/lg.ko):
Cannot allocate memory

dmesg says:
allocation failed: out of vmalloc space - use vmalloc=<size> to increase size.
lguest: could not map switcher pages high

In the lguest source files I found this one:
	/* Now we reserve the "virtual memory area" we want: 0xFFC00000
	 * (SWITCHER_ADDR).  We might not get it in theory, but in practice
	 * it's worked so far. */
	switcher_vma = __get_vm_area(TOTAL_SWITCHER_PAGES * PAGE_SIZE,
				       VM_ALLOC, SWITCHER_ADDR, VMALLOC_END);
	if (!switcher_vma) {
		err = -ENOMEM;
		printk("lguest: could not map switcher pages high\n");
		goto free_pages;
	}

I think this time it doesn't work in practice :)

I have tried latest torvalds/linux-2.6.git and x86/linux-2.6-x86.git#testing (this
includes patches to build lguest as module, this seems to be broken in
torvalds/linux-2.6.git).

Here's my /proc/iomem and the relevant dmesg, full config attached.
/proc/iomem:
00000000-0009dbff : System RAM
0009dc00-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000cddff : Video ROM
000ce000-000cefff : Adapter ROM
000f0000-000fffff : System ROM
00100000-dbeaffff : System RAM
  00100000-003a1d86 : Kernel code
  003a1d87-00485f77 : Kernel data
  00529000-0056bc8f : Kernel bss
dbeb0000-dbebdfff : ACPI Tables
dbebe000-dbefffff : ACPI Non-volatile Storage
e0000000-efffffff : PCI MMCONFIG 0
  e0000000-efffffff : pnp 00:0b
f0000000-f7ffffff : 0000:00:00.0
f8000000-fbffffff : PCI Bus #01
  f8000000-fbffffff : 0000:01:00.0
fcfe0000-fcfeffff : 0000:00:14.0
fcfff800-fcfff8ff : 0000:00:12.0
  fcfff800-fcfff8ff : via-rhine
fcfffc00-fcffffff : 0000:00:0f.0
  fcfffc00-fcffffff : ahci
fd000000-feafffff : PCI Bus #01
  fd000000-fdffffff : 0000:01:00.0
  feaf0000-feafffff : 0000:01:00.0
feb00000-febfffff : PCI Bus #03
  febffc00-febffcff : 0000:03:00.0
    febffc00-febffcff : via-velocity
fec00000-fec00fff : reserved
fecc0000-fecc0fff : reserved
fed1c000-fed1ffff : pnp 00:09
fee00000-fee00fff : reserved
ff780000-ffffffff : reserved

dmesg:
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009dc00 (usable)
 BIOS-e820: 000000000009dc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dbeb0000 (usable)
 BIOS-e820: 00000000dbeb0000 - 00000000dbebe000 (ACPI data)
 BIOS-e820: 00000000dbebe000 - 00000000dbf00000 (ACPI NVS)
 BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
 BIOS-e820: 00000000fecc0000 - 00000000fecc1000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
 BIOS-e820: 00000000ff780000 - 0000000100000000 (reserved)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: config-2.6.25-rc2-via
URL: <http://lists.ozlabs.org/pipermail/lguest/attachments/20080224/740435cb/attachment.txt>


More information about the Lguest mailing list