Return-Path: Received: from mx2.suse.de ([195.135.220.15]:46377 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932111AbcJQHrw (ORCPT ); Mon, 17 Oct 2016 03:47:52 -0400 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 0B0D1ACBD for ; Mon, 17 Oct 2016 07:47:51 +0000 (UTC) From: Jiri Slaby To: stable@vger.kernel.org Cc: Alexander Graf , Jiri Slaby Subject: [patch added to 3.12-stable] KVM: PPC: Book3S PR: Emulate TIR register Date: Mon, 17 Oct 2016 09:47:42 +0200 Message-Id: <20161017074748.20426-3-jslaby@suse.cz> In-Reply-To: <20161017074748.20426-1-jslaby@suse.cz> References: <20161017074748.20426-1-jslaby@suse.cz> Sender: stable-owner@vger.kernel.org List-ID: From: Alexander Graf This patch has been added to the 3.12 stable tree. If you have any objections, please let us know. =============== commit a5948fa092a04dfd6b9ee31c99eb6896c158eb08 upstream. In parallel to the Processor ID Register (PIR) threaded POWER8 also adds a Thread ID Register (TIR). Since PR KVM doesn't emulate more than one thread per core, we can just always expose 0 here. Signed-off-by: Alexander Graf Signed-off-by: Jiri Slaby --- arch/powerpc/kvm/book3s_emulate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kvm/book3s_emulate.c b/arch/powerpc/kvm/book3s_emulate.c index 57913b199919..cda2cba56915 100644 --- a/arch/powerpc/kvm/book3s_emulate.c +++ b/arch/powerpc/kvm/book3s_emulate.c @@ -570,6 +570,7 @@ int kvmppc_core_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, ulong *spr_val) case SPRN_MMCR0: case SPRN_MMCR1: case SPRN_MMCR2: + case SPRN_TIR: #endif *spr_val = 0; break; -- 2.10.1