I plan to use virtualization infrastructure to JIT VM Kernel Code. Michael Engel has done that in the past to have dynamic aspect in the Kernel: http://llvm.org/pubs/2005-03-14-ACP4IS-AspectsKernel.pdf He used L4 based Hypervisor and Virtual Machines. Can this not be done or am I missing something? -Ashish On Sat, Sep 27, 2008 at 3:13 AM, Török Edwin <edwintorok at gmail.com> wrote:> On 2008-09-27 05:19, Ashish Bijlani wrote: >> Hi, >> >> I'm trying to compile linux-2.6.23.16 with llvm-2.3. Is it at all >> possible? I get "Not an ELF" error. I pass "-emit-llvm" option to spit >> LLVM IR, which can be JITed at runtime >> >> > > If you want to build a kernel you can't use the JIT anyway, so why not > just build native code? > > Best regards, > --Edwin > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
On 2008-09-27 18:29, Ashish Bijlani wrote:> I plan to use virtualization infrastructure to JIT VM Kernel Code. > Michael Engel has done that in the past to have dynamic aspect in the > Kernel: http://llvm.org/pubs/2005-03-14-ACP4IS-AspectsKernel.pdf > > He used L4 based Hypervisor and Virtual Machines. Can this not be done > or am I missing something? >I think you'll need to modify the kernel build scripts to not expect ELF output, such as mk_elfconfig. LLVM outputs its own bytecode format when you use -emit-llvm, and not an ELF format. Best regards, --Edwin
can kernel b JITed using hypervisor at runtime??? also can llvm be run on l4 as native L4 application? which flavor of l4 does it support? any doc on how to go about it? should i just remove mk_elf from the makefile?? i actually tried removing mk_elf from the build scripts but then it fails when it doesn't find global symbols emitted during preprocessing using ## e.g. per_cpu_## in percpu.h in the kernel. thanks, ashish On Sat, Sep 27, 2008 at 11:45 AM, Török Edwin <edwintorok at gmail.com> wrote:> On 2008-09-27 18:29, Ashish Bijlani wrote: >> I plan to use virtualization infrastructure to JIT VM Kernel Code. >> Michael Engel has done that in the past to have dynamic aspect in the >> Kernel: http://llvm.org/pubs/2005-03-14-ACP4IS-AspectsKernel.pdf >> >> He used L4 based Hypervisor and Virtual Machines. Can this not be done >> or am I missing something? >> > > I think you'll need to modify the kernel build scripts to not expect ELF > output, such as mk_elfconfig. > LLVM outputs its own bytecode format when you use -emit-llvm, and not an > ELF format. > > Best regards, > --Edwin > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >