Skip to contentSkip to conversation

How can I make Xen work with a patched kernel?

DISCUSSION Liang Yang 2 participants 4 messages Jan 2, 2007 – Jan 5, 2007

lore
Share & tools
lore

Liang Yang

author
#0 lore raw

Hi,

I added a couple of small patches to Linux kernel 2.6.16.33 (just some minor modification to kernel for testing purpose) and I want Xen 3.0.4 to use this patched kernel instead of the original kernel source from kernel.org website. After I tried several times, it seems Xen could only build properly with the fresh kernel source. Xen reports lots of errors when it is built with the patched kernel.

Could anyone explain what I should do to make Xen work with this patched kernel?

Thanks,

Liang

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

#1 lore raw
Quoted 2 lines · Liang Yang

Could anyone explain what I should do to make Xen work with this patched kernel?

Try adding your patch to the xen-unstable.hg/patches/linux-2.6.16.33/ directory in your Xen repository and including its name in the series file in that directory. Then when you do a make world the patch will be applied to the pristine kernel sources that are downloaded from kernel.org, and so it should build a kernel with your patch included.

Kieran

author
#2 lore raw

Hi,

Thanks. Still have two questions:
1. Actually there are two different ways to make Xen build with patched kernel. One is to put patches into patches directory before doing make world as you suggest, the other is to patch the Xen Linux kernel directly after make world is done and then do make again (build a custom Xen kernel). Do you think if these two methods will bring the same results?

2. Currently each Xen version is bound to a specific Linux kernel version. Suppose Xen support Linux kernel 2.6.16. now I want to make it support Linux kernel 2.6.17-rc6. Can I also put the prepatch file for 2.6.17-rc6 kernel into patches directory and then Xen will be able to support this newer kernel version?

Best regards,

Liang

----- Original Message ----- From: "Kieran Mansley" <[email protected]>
To: "Liang Yang" <[email protected]>
Cc: "Xen-Devel" <[email protected]>
Sent: Wednesday, January 03, 2007 1:55 AM
Subject: Re: [Xen-devel] How can I make Xen work with a patched kernel?

Quoted 19 lines · Liang Yang
Quoted 3 lines

Could anyone explain what I should do to make Xen work with this patched kernel?

Try adding your patch to the xen-unstable.hg/patches/linux-2.6.16.33/ directory in your Xen repository and including its name in the series file in that directory. Then when you do a make world the patch will be applied to the pristine kernel sources that are downloaded from kernel.org, and so it should build a kernel with your patch included.

Kieran

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

author
#3 lore raw

Unknown interrupt or fault at EIP xxx when booting custom kernel from HVM domain.

In reply to Liang Yang

Hello,

I built a HVM domain which inititally has kernel version 2.6.9 (RHEL 4.4). I want to boot this HVM domain from a custom kernel. So I copied Linux kernel and module files (vmlinuz, initrd etc and the whole directory under /lib/modules/new kernel modules) from another machine to this HVM domain. That machine has exactly the same disk layout as HVM domain.

I then edited grub in HVM domain and added the boot entry for the custom kernel. When I try to boot it. However, I got the following error:
Unknown interrupt or fault at EIP xxx when booting custom kernel from HVM domain.

Could anyone explain this?

Thanks,

Liang