Skip to contentSkip to conversation

2.6.22-rc3 - VMI does not compile unless himem enabled

DISCUSSION Mike Houston 1 participant 2 messages May 27, 2007 – May 28, 2007 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

While building kernels for vmware guests, I noticed that the paravirt VMI driver in 2.6.22-rc3 does not compile when highmem support is disabled. This did not occur in 2.6.21

CC arch/i386/kernel/vmi.o
arch/i386/kernel/vmi.c: In function `vmi_update_pte':
arch/i386/kernel/vmi.c:422: error: dereferencing pointer to incomplete type
arch/i386/kernel/vmi.c:422: error: `init_mm' undeclared (first use in this function)
arch/i386/kernel/vmi.c:422: error: (Each undeclared identifier is reported only once
arch/i386/kernel/vmi.c:422: error: for each function it appears in.) arch/i386/kernel/vmi.c: In function `vmi_update_pte_defer':
arch/i386/kernel/vmi.c:428: error: dereferencing pointer to incomplete type
arch/i386/kernel/vmi.c:428: error: `init_mm' undeclared (first use in this function)
arch/i386/kernel/vmi.c: In function `vmi_set_pte_at':
arch/i386/kernel/vmi.c:441: error: dereferencing pointer to incomplete type
arch/i386/kernel/vmi.c:441: error: `init_mm' undeclared (first use in this function)
make[1]: *** [arch/i386/kernel/vmi.o] Error 1
make: *** [arch/i386/kernel] Error 2

This does not occur if himem support is enabled.

Mike Houston

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 9 lines · On Mon, 28 May 2007 12:11:35 +0200 "Michal Piotrowski"…

Hi Mike,

Quoted 3 lines · Mike Houston

While building kernels for vmware guests, I noticed that the paravirt VMI driver in 2.6.22-rc3 does not compile when highmem support is disabled. This did not occur in 2.6.21

Please try this patch
http://lkml.org/lkml/diff/2007/5/24/143/1

Thank you Michal, Alexey Dobriyan replied off list and showed me the fix that already went into -mm and it did indeed solve the problem and the paravirt in the vmware guests works fine. Nice of you folks to help me when I missed the ball. Sorry for missing that.

Mike Houston