From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from am1outboundpool.messaging.microsoft.com (am1ehsobe001.messaging.microsoft.com [213.199.154.204]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client CN "mail.global.frontbridge.com", Issuer "Microsoft Secure Server Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 606852C007A for ; Thu, 21 Feb 2013 01:31:35 +1100 (EST) Message-ID: <5124DE3A.8040309@freescale.com> Date: Wed, 20 Feb 2013 16:31:22 +0200 From: Diana Craciun MIME-Version: 1.0 To: Stuart Yoder Subject: Re: [PATCH][RFC] Replaced tlbilx with tlbwe in the initialization code References: <1360846595-3397-1-git-send-email-diana.craciun@freescale.com> <1360887119.22260.10.camel@pasglop> <511E513F.7090103@freescale.com> <1361303278.29654.7@snotra> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Cc: Scott Wood , linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 02/20/2013 04:22 PM, Stuart Yoder wrote: > On Tue, Feb 19, 2013 at 1:47 PM, Scott Wood wrote: >> This patch addresses boot-time invalidations only. How will you handle >> hugetlb invalidations (or indirect entry invalidations, once that becomes >> supported)? > We do envision that "direct guest TLB management" is an opt-in option > that a guest can enable. > > If LRAT is on, with TLB management directly handled by guests, the only > mechanism we have to do TLB1 invalidates is tlbwe. That is our only option > as far as I know. So, hugetlb and indirect entries will each need to be > addressed separately. The kernel code that handles these either needs > to be A) modified to unconditionally do all invalidates by tlbwe or B) > conditionally > use tlbwe depending on whether this is a guest that has enabled direct > TLB management. > > Stuart > In case of indirect entries I think we can configure tlbwe and tlbilx to go to the hypervisor. The guest should not mix tlbwe (for TLB0) and hardware page table walk, so we can support this scenario without modifying the guest. Diana