From: Michael Ellerman Date: Mon, 08 Jul 2019 01:19:42 +0000 Subject: Re: [PATCH] KVM: PPC: Book3S HV: Fix CR0 setting in TM emulation Message-Id: <45hng26v5bz9sP6@ozlabs.org> List-Id: In-Reply-To: <20190620060040.26945-1-mikey@neuling.org> References: <20190620060040.26945-1-mikey@neuling.org> In-Reply-To: <20190620060040.26945-1-mikey@neuling.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Michael Neuling Cc: mikey@neuling.org, linuxppc-dev@lists.ozlabs.org, kvm-ppc@vger.kernel.org, sjitindarsingh@gmail.com On Thu, 2019-06-20 at 06:00:40 UTC, Michael Neuling wrote: > When emulating tsr, treclaim and trechkpt, we incorrectly set CR0. The > code currently sets: > CR0 <- 00 || MSR[TS] > but according to the ISA it should be: > CR0 <- 0 || MSR[TS] || 0 > > This fixes the bit shift to put the bits in the correct location. > > Tested-by: Suraj Jitindar Singh > Signed-off-by: Michael Neuling Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/3fefd1cd95df04da67c83c1cb93b663f04b3324f cheers