Skip to contentSkip to conversation

Xen 3.1 kernel config surprises!!

Q pradeep singh rautela 3 participants 4 messages Aug 17, 2007

lore
Share & tools
lore
#0 lore raw

Hi All,

[ First, the reason i resorted to doing this is because default dom0 and xen panic pretty soon :-/. ]

I tried shifting to Xen-3.1 but i must admit i was stumbled and surprised to see some changes which are bothering me from last 4 days.

First the moment i do a
$make linux-2.6-xen CONFIGMODE=menuconfig
it prompts me all well. I do my changes and do make xen to install
the hypervisor.
Well and good till here.

I decided to compile a custom dom0 and domU kernels. I did at the root xen-3.1 src tree
$make linux-2.6-xen0 CONFIGMODE=menuconfig

i made changes. Now i did
$make linux-2.6-xenU CONFIGMODE=menuconfig
and made further changes.

Suddenly i thought of changing something in xenU and xen0 configs but the config seems to be lost :-/, forcing me to the same spot from where i started.

Sorry but i thought kernel config is supposed to be saved on exit from menuconfig and not vanished. Did i miss something silly? [OTOH why should the above commands totally erase the existing .config? .... can't they just check if a .config exists and if it does, make Xen/dom0/domU specific changes which are absolutely necessary and leave rest of entries intact]

BTW i can't use a saved .config in any way to generate xen,dom0 or domU for that matterr. Why?

I tried copying my custom config file to buidlconfigs dir, to replace the default ones for xen, xenU and xen0 for x86_32 but still not luck :-(.

Previous versions looked charm to work with when it came to kernel recompilation.

Can anyone point me to appropriate link or howto ? Or give me a hint on what am i missing here?

Machine info :-

Intel Pentium D 2.8 Ghz.
No VT-x.
uname -a : Linux blufox 2.6.23-rc2-lguest #1 SMP PREEMPT Mon Aug 6 14:29:49 IST 2007 i686 GNU/Linux

Box is an Ubuntu work machine.

Thanks
--pradeep

Signature · 4 lines
--
pradeep singh rautela

"Genius is 1% inspiration, and 99% perspiration" - not me :)
#1 lore raw
Quoted 2 lines · pradeep singh rautela

Sorry but i thought kernel config is supposed to be saved on exit from menuconfig and not vanished. Did i miss something silly?

No, this seems to have been broken when the kernel was upgraded to 2.6.18 (i.e. frickin' ages ago!). It seems that "make oldconfig" doesn't create include/linux/autoconf.h anymore and that "make silentoldconfig" is required instead. We use include/linux/autoconfig.h as the makefile stamp to indicate whether to write an initial configuration or not.

Can you try
http://xenbits.xensource.com/staging/xen-unstable.hg?rev/ae923d1f50bf

Ian.

#2 lore raw
Quoted 1 line · Ian Campbell

On Fri, 2007-08-17 at 14:54 +0530, pradeep singh rautela wrote:

[snip]

Quoted 9 lines

No, this seems to have been broken when the kernel was upgraded to 2.6.18 (i.e. frickin' ages ago!). It seems that "make oldconfig" doesn't create include/linux/autoconf.h anymore and that "make silentoldconfig" is required instead. We use include/linux/autoconfig.h as the makefile stamp to indicate whether to write an initial configuration or not.

Can you try
http://xenbits.xensource.com/staging/xen-unstable.hg?rev/ae923d1f50bf

Sure Ian.
How much does this affects xen-3.1 release?

thanks Ian.
--pradeep

Quoted 5 lines

Ian.

Signature · 4 lines
--
pradeep singh rautela

"Genius is 1% inspiration, and 99% perspiration" - not me :)
#3 lore raw
Quoted 10 lines · pradeep singh rautela
Quoted 1 line · Ian Campbell

On Fri, 2007-08-17 at 14:54 +0530, pradeep singh rautela wrote:

[snip]

Quoted 7 lines

No, this seems to have been broken when the kernel was upgraded to 2.6.18 (i.e. frickin' ages ago!). It seems that "make oldconfig" doesn't create include/linux/autoconf.h anymore and that "make silentoldconfig" is required instead. We use include/linux/autoconfig.h as the makefile stamp to indicate whether to write an initial configuration or not.

Quoted 4 lines
Quoted 2 lines

Can you try
http://xenbits.xensource.com/staging/xen-unstable.hg?rev/ae923d1f50bf

Sure Ian.
How much does this affects xen-3.1 release?

Do you mean "how does this affect the binaries released by XenSource"? Probably not at all.

If you mean, how do I apply this to 3.1, just copy the content of that patch into a file (say in a file called "fixbuild.patch" in your home directory), then go to your xen 3.1 tree and do "patch -p 1 < ~/fix-build.patch". It should apply without much fuss.

--
Mats

Quoted 19 lines

thanks Ian.
--pradeep

Quoted 5 lines

Ian.

--
--
pradeep singh rautela

"Genius is 1% inspiration, and 99% perspiration" - not me :)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel