All of lore.kernel.org
 help / color / mirror / Atom feed
* Kernel link address assumption
@ 2011-02-24 18:13 Himanshu Chauhan
  2011-02-24 18:16 ` Kevin D. Kissell
  0 siblings, 1 reply; 5+ messages in thread
From: Himanshu Chauhan @ 2011-02-24 18:13 UTC (permalink / raw)
  To: linux-mips

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Kernel link address assumption
  2011-02-24 18:13 Kernel link address assumption Himanshu Chauhan
@ 2011-02-24 18:16 ` Kevin D. Kissell
  2011-02-24 18:21   ` Himanshu Chauhan
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin D. Kissell @ 2011-02-24 18:16 UTC (permalink / raw)
  To: Himanshu Chauhan; +Cc: linux-mips

On 02/24/11 10:13, Himanshu Chauhan wrote:
> 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Kernel link address assumption
  2011-02-24 18:16 ` Kevin D. Kissell
@ 2011-02-24 18:21   ` Himanshu Chauhan
  2011-02-24 21:44     ` Kevin D. Kissell
  2011-03-01  8:06     ` Yang Shi
  0 siblings, 2 replies; 5+ messages in thread
From: Himanshu Chauhan @ 2011-02-24 18:21 UTC (permalink / raw)
  To: Kevin D. Kissell; +Cc: linux-mips

On Thursday 24 February 2011 11:46 PM, Kevin D. Kissell wrote:
> On 02/24/11 10:13, Himanshu Chauhan wrote:
>> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Kernel link address assumption
  2011-02-24 18:21   ` Himanshu Chauhan
@ 2011-02-24 21:44     ` Kevin D. Kissell
  2011-03-01  8:06     ` Yang Shi
  1 sibling, 0 replies; 5+ messages in thread
From: Kevin D. Kissell @ 2011-02-24 21:44 UTC (permalink / raw)
  To: Himanshu Chauhan; +Cc: linux-mips

On 02/24/11 10:21, Himanshu Chauhan wrote:
> On Thursday 24 February 2011 11:46 PM, Kevin D. Kissell wrote:
>> On 02/24/11 10:13, Himanshu Chauhan wrote:
>>> 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.
>
> 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Kernel link address assumption
  2011-02-24 18:21   ` Himanshu Chauhan
  2011-02-24 21:44     ` Kevin D. Kissell
@ 2011-03-01  8:06     ` Yang Shi
  1 sibling, 0 replies; 5+ messages in thread
From: Yang Shi @ 2011-03-01  8:06 UTC (permalink / raw)
  To: Himanshu Chauhan; +Cc: Kevin D. Kissell, linux-mips

Himanshu Chauhan 写道:
> On Thursday 24 February 2011 11:46 PM, Kevin D. Kissell wrote:
>   
>> On 02/24/11 10:13, Himanshu Chauhan wrote:
>>     
>>> 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.
>   

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

Yang

> Any pointers?
>
> Regards
> Himanshu
>
>
>
>   

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-03-01  8:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-24 18:13 Kernel link address assumption Himanshu Chauhan
2011-02-24 18:16 ` Kevin D. Kissell
2011-02-24 18:21   ` Himanshu Chauhan
2011-02-24 21:44     ` Kevin D. Kissell
2011-03-01  8:06     ` Yang Shi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.