From: Paul Mackerras Subject: Re: [PATCH] KVM: PPC: Book3S PR: Use SLB entry 0 Date: Sat, 17 May 2014 15:26:05 +1000 Message-ID: <20140517052605.GA22449@iris.ozlabs.ibm.com> References: <1400157831-52267-1-git-send-email-agraf@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm-ppc@vger.kernel.org, kvm@vger.kernel.org To: Alexander Graf Return-path: Content-Disposition: inline In-Reply-To: <1400157831-52267-1-git-send-email-agraf@suse.de> Sender: kvm-ppc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Thu, May 15, 2014 at 02:43:51PM +0200, Alexander Graf wrote: > We didn't make use of SLB entry 0 because ... of no good reason. SLB entry 0 > will always be used by the Linux linear SLB entry, so the fact that slbia > does not invalidate it doesn't matter as we overwrite SLB 0 on exit anyway. > > Just enable use of SLB entry 0 for our shadow SLB code. I think that this is a good idea, but to be sure of invalidating all ERAT entries you should write zeroes to SLB entry 0 before the slbia on guest exit. Paul.