From: "sahlot arvind" Subject: Re: TLB Question Date: Tue, 5 Feb 2008 17:59:31 +0530 Message-ID: References: <7783925d0802042204n20bb1acch4aa1d422dd44d9e8@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9339_15740412.1202214571894" Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=cWQYWMIZ0i7JRiZxUSv4wYjlVwOpTpM2vmZxS7ozLXg=; b=WD4aBKdz9n4YRrAxpoqAcRuLOSDFz8uhxlD/kXb9mowm2+tOfVA5g0MV6oRUAw0ENOeXaQcxdQm6zdt+gCiJPLmJ9chaQkMO59kgL8ynPwR1/FCw9bPPSXoFLKrBOXMY/HpZYf8nZvdI2kItdBCiZ0LOFwSovcRhyK/M3xMU53o= In-Reply-To: Sender: kernelnewbies-bounce@nl.linux.org Errors-to: kernelnewbies-bounce@nl.linux.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: List-subscribe: List-owner: List-post: List-archive: To: Mulyadi Santosa Cc: Rick Brown , kernelnewbies , linux-newbie@vger.kernel.org ------=_Part_9339_15740412.1202214571894 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline >AFAIK, by using certain instructions...you can manually insert >entry/entries to TLB. Same thing to deleting TLB entries. Yes you can insert/delete entries in TLB manually. Though I am not sure but AFAIK, linux kernel does do this. Please correct if I am wrong. Regards On 2/5/08, Mulyadi Santosa wrote: > > Hi... > > On 2/5/08, sahlot arvind wrote: > > > TLB entries are filled by H/W and not explicitly by kernel. Whenever MMU > > translates VA to PA it caches that translation into TLB. If TLB is full > then > > MMU uses its own algorithms to replace some entry in TLB e.g. MMU might > > consider TLB as circular buffer and replace first entry once TLB is > full. > > AFAIK, by using certain instructions...you can manually insert > entry/entries to TLB. Same thing to deleting TLB entries. This kind of > technique is used for example on security related software such as > PaX/grsecurity > > regards, > > Mulyadi. > ------=_Part_9339_15740412.1202214571894 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
>AFAIK, by using certain instructions...you can manually insert
>entry/entries to TLB. Same thing to deleting TLB entries.
 
Yes you can insert/delete entries in TLB manually. Though I am not sure but AFAIK, linux kernel does do this.
Please correct if I am wrong.
 
Regards

 
On 2/5/08, Mulyadi Santosa <mulyadi.santosa@gmail.com> wrote:
Hi...

On 2/5/08, sahlot arvind <asahlot@gmail.com> wrote:

> TLB entries are filled by H/W and not explicitly by kernel. Whenever MMU
> translates VA to PA it caches that translation into TLB. If TLB is full then
> MMU uses its own algorithms to replace some entry in TLB e.g. MMU might
> consider TLB as circular buffer and replace first entry once TLB is full.

AFAIK, by using certain instructions...you can manually insert
entry/entries to TLB. Same thing to deleting TLB entries. This kind of
technique is used for example on security related software such as
PaX/grsecurity

regards,

Mulyadi.

------=_Part_9339_15740412.1202214571894-- -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ