Liang Yang
2007-Jan-02 19:22 UTC
[Xen-users] How can I make Xen work with a patched kernel?
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 Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Kieran Mansley
2007-Jan-03 08:55 UTC
Re: [Xen-devel] How can I make Xen work with a patched kernel?
On Tue, 2007-01-02 at 12:22 -0700, Liang Yang wrote:> 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 Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Liang Yang
2007-Jan-03 18:50 UTC
Re: [Xen-devel] How can I make Xen work with a patched kernel?
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" <kmansley@solarflare.com> To: "Liang Yang" <multisyncfe991@hotmail.com> Cc: "Xen-Devel" <xen-devel@lists.xensource.com> Sent: Wednesday, January 03, 2007 1:55 AM Subject: Re: [Xen-devel] How can I make Xen work with a patched kernel?> On Tue, 2007-01-02 at 12:22 -0700, Liang Yang wrote: > >> 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 > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Liang Yang
2007-Jan-05 19:03 UTC
[Xen-users] Unknown interrupt or fault at EIP xxx when booting custom kernel from HVM domain.
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 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users