Skip to contentSkip to conversation

Kernel link address assumption

DISCUSSION Himanshu Chauhan 3 participants 5 messages Feb 24, 2011 – Mar 1, 2011 MIPS

lore
Share & tools
lore
#0 lore raw

Hi,

Does Linux kernel for MIPS assumes that its link address is always in Kseg0? What if I change the link address to somewhere in useg?

Regards
Himanshu

#1 lore raw
Quoted 4 lines · Himanshu Chauhan

Hi,

Does Linux kernel for MIPS assumes that its link address is always in Kseg0? What if I change the link address to somewhere in useg?

Your page fault handlers will be in for an interesting time. ;o)

What you describe can be, and is done, for virtualized kernels running on top of a hypervisor, but there's a bit more involved than just changing the link address.

/K.

#2 lore raw
Quoted 10 lines · Kevin D. Kissell
Quoted 4 lines · Himanshu Chauhan

Hi,

Does Linux kernel for MIPS assumes that its link address is always in Kseg0? What if I change the link address to somewhere in useg?

Your page fault handlers will be in for an interesting time. ;o)

What you describe can be, and is done, for virtualized kernels running on top of a hypervisor, but there's a bit more involved than just changing the link address.

Hi Kevin,

You just caught that. Thats what I am trying to evaluate. What all I would need to do apart from changing the link address. I am working on a bare metal hypervisor for MIPS architecture.

Any pointers?

Regards
Himanshu

#3 lore raw
Quoted 6 lines · Himanshu Chauhan
Quoted 5 lines · Kevin D. Kissell
Quoted 4 lines · Himanshu Chauhan

Hi,

Does Linux kernel for MIPS assumes that its link address is always in Kseg0? What if I change the link address to somewhere in useg?

Quoted 9 lines
Quoted 4 lines

Your page fault handlers will be in for an interesting time. ;o)

What you describe can be, and is done, for virtualized kernels running on top of a hypervisor, but there's a bit more involved than just changing the link address.

You just caught that. Thats what I am trying to evaluate. What all I would need to do apart from changing the link address. I am working on a bare metal hypervisor for MIPS architecture.

Any pointers?

I've done a design of something like this for a non-MIPS architecture, but I'd prefer someone who's done this for MIPS (and I know that there are people out there who have) advise you.

Regards,

Kevin K.

#4 lore raw
In reply to Himanshu Chauhan
Quoted 11 lines · Himanshu Chauhan
Quoted 7 lines · Kevin D. Kissell
Quoted 5 lines · Himanshu Chauhan

Hi,

Does Linux kernel for MIPS assumes that its link address is always in Kseg0? What if I change the link address to somewhere in useg?

Quoted 9 lines
Quoted 5 lines

Your page fault handlers will be in for an interesting time. ;o)

What you describe can be, and is done, for virtualized kernels running on top of a hypervisor, but there's a bit more involved than just changing the link address.

Hi Kevin,

You just caught that. Thats what I am trying to evaluate. What all I would need to do apart from changing the link address. I am working on a bare metal hypervisor for MIPS architecture.

You need setup suitable TLB mappings for Linux kernel in bootloader or Hypervisor.

Yang

Quoted 8 lines

Any pointers?

Regards
Himanshu