From patchwork Mon Jul 14 09:27:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bharat Bhushan X-Patchwork-Id: 4543711 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E226BC0514 for ; Mon, 14 Jul 2014 09:29:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2025120136 for ; Mon, 14 Jul 2014 09:29:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2B95E20131 for ; Mon, 14 Jul 2014 09:29:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753446AbaGNJ3z (ORCPT ); Mon, 14 Jul 2014 05:29:55 -0400 Received: from mail-bl2lp0210.outbound.protection.outlook.com ([207.46.163.210]:22643 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751282AbaGNJ3x (ORCPT ); Mon, 14 Jul 2014 05:29:53 -0400 Received: from DM2PR03CA007.namprd03.prod.outlook.com (10.141.52.155) by DM2PR03MB398.namprd03.prod.outlook.com (10.141.84.140) with Microsoft SMTP Server (TLS) id 15.0.985.8; Mon, 14 Jul 2014 09:29:32 +0000 Received: from BN1BFFO11FD028.protection.gbl (2a01:111:f400:7c10::1:187) by DM2PR03CA007.outlook.office365.com (2a01:111:e400:2414::27) with Microsoft SMTP Server (TLS) id 15.0.985.8 via Frontend Transport; Mon, 14 Jul 2014 09:29:32 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD028.mail.protection.outlook.com (10.58.144.91) with Microsoft SMTP Server (TLS) id 15.0.980.11 via Frontend Transport; Mon, 14 Jul 2014 09:29:32 +0000 Received: from kvm.ap.freescale.net (kvm.ap.freescale.net [10.232.14.24]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id s6E9TRLN005790; Mon, 14 Jul 2014 02:29:29 -0700 From: Bharat Bhushan To: , CC: , , , Bharat Bhushan Subject: [PATCH] kvm: ppc: bookehv: Sync srr0/1 into GSRR0/1 Date: Mon, 14 Jul 2014 14:57:44 +0530 Message-ID: <1405330064-10384-1-git-send-email-Bharat.Bhushan@freescale.com> X-Mailer: git-send-email 1.9.3 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6009001)(199002)(189002)(95666004)(84676001)(64706001)(77982001)(106466001)(4396001)(93916002)(86362001)(81542001)(80022001)(50466002)(99396002)(50226001)(81342001)(20776003)(47776003)(6806004)(79102001)(229853001)(50986999)(97736001)(46102001)(76482001)(107046002)(104016003)(85306003)(105606002)(48376002)(85852003)(77156001)(89996001)(87936001)(88136002)(92726001)(92566001)(19580395003)(44976005)(62966002)(74662001)(83072002)(74502001)(36756003)(68736004)(26826002)(87286001)(83322001)(31966008)(102836001)(19580405001)(104166001)(21056001); DIR:OUT; SFP:; SCL:1; SRVR:DM2PR03MB398; H:tx30smr01.am.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; LANG:; MIME-Version: 1.0 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 02723F29C4 Received-SPF: Fail (: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=Bharat.Bhushan@freescale.com; X-OriginatorOrg: freescale.com Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds missing sync of SRR0/1 in set SREGS interface. Signed-off-by: Bharat Bhushan --- arch/powerpc/kvm/booke.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c index c2471ed..368b48e 100644 --- a/arch/powerpc/kvm/booke.c +++ b/arch/powerpc/kvm/booke.c @@ -1326,6 +1326,10 @@ int kvm_arch_vcpu_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) kvmppc_set_msr(vcpu, regs->msr); vcpu->arch.shared->srr0 = regs->srr0; vcpu->arch.shared->srr1 = regs->srr1; +#ifdef CONFIG_KVM_BOOKE_HV + mtspr(SPRN_GSRR0, regs->srr0); + mtspr(SPRN_GSRR1, regs->srr1); +#endif kvmppc_set_pid(vcpu, regs->pid); vcpu->arch.shared->sprg0 = regs->sprg0; vcpu->arch.shared->sprg1 = regs->sprg1;