From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:48762 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751700AbdHCTTv (ORCPT ); Thu, 3 Aug 2017 15:19:51 -0400 Date: Thu, 3 Aug 2017 12:19:49 -0700 From: Greg KH To: Paul Mackerras Cc: stable@vger.kernel.org Subject: Re: [PATCH 2/4 v4.4.y] KVM: PPC: Book3S HV: Restore critical SPRs to host values on guest exit Message-ID: <20170803191949.GC26218@kroah.com> References: <20170731004154.mkyvcbe5q576nnjg@oak.ozlabs.ibm.com> <20170731004241.mxqatl5fwhh5wgfr@oak.ozlabs.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170731004241.mxqatl5fwhh5wgfr@oak.ozlabs.ibm.com> Sender: stable-owner@vger.kernel.org List-ID: On Mon, Jul 31, 2017 at 10:42:41AM +1000, Paul Mackerras wrote: > commit 4c3bb4ccd074e1a0552078c0bf94c662367a1658 upstream. > > This restores several special-purpose registers (SPRs) to sane values > on guest exit that were missed before. > > TAR and VRSAVE are readable and writable by userspace, and we need to > save and restore them to prevent the guest from potentially affecting > userspace execution (not that TAR or VRSAVE are used by any known > program that run uses the KVM_RUN ioctl). We save/restore these > in kvmppc_vcpu_run_hv() rather than on every guest entry/exit. I also already have this one, right?