From patchwork Fri Jul 25 06:02:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bharat Bhushan X-Patchwork-Id: 373578 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 2419D140270 for ; Fri, 25 Jul 2014 16:04:58 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750979AbaGYGE5 (ORCPT ); Fri, 25 Jul 2014 02:04:57 -0400 Received: from mail-bn1lp0139.outbound.protection.outlook.com ([207.46.163.139]:31056 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750916AbaGYGE4 (ORCPT ); Fri, 25 Jul 2014 02:04:56 -0400 Received: from BN3PR0301CA0024.namprd03.prod.outlook.com (25.160.180.162) by BL2PR03MB562.namprd03.prod.outlook.com (10.141.91.27) with Microsoft SMTP Server (TLS) id 15.0.995.14; Fri, 25 Jul 2014 06:04:54 +0000 Received: from BL2FFO11FD060.protection.gbl (2a01:111:f400:7c09::129) by BN3PR0301CA0024.outlook.office365.com (2a01:111:e400:4000::34) with Microsoft SMTP Server (TLS) id 15.0.995.14 via Frontend Transport; Fri, 25 Jul 2014 06:04:54 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD060.mail.protection.outlook.com (10.173.161.188) with Microsoft SMTP Server (TLS) id 15.0.980.11 via Frontend Transport; Fri, 25 Jul 2014 06:04:54 +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 s6P64o6i004962; Thu, 24 Jul 2014 23:04:51 -0700 From: Bharat Bhushan To: , CC: , , , Bharat Bhushan Subject: [PATCH] KVM: PPC: Remove comment saying SPRG1 is used for vcpu pointer Date: Fri, 25 Jul 2014 11:32:43 +0530 Message-ID: <1406268163-18955-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)(86362001)(93916002)(19580405001)(83322001)(4396001)(19580395003)(36756003)(84676001)(104016003)(92566001)(48376002)(88136002)(92726001)(229853001)(89996001)(83072002)(102836001)(107046002)(85852003)(99396002)(80022001)(6806004)(106466001)(47776003)(44976005)(20776003)(46102001)(64706001)(50466002)(77982001)(95666004)(87936001)(87286001)(76482001)(50986999)(79102001)(81342001)(85306003)(62966002)(68736004)(21056001)(50226001)(74502001)(26826002)(31966008)(74662001)(105606002)(97736001)(104166001)(77156001)(81542001); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR03MB562; H:tx30smr01.am.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 02830F0362 Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; 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-ppc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm-ppc@vger.kernel.org Scott Wood pointed out that We are no longer using SPRG1 for vcpu pointer, but using SPRN_SPRG_THREAD <=> SPRG3 (thread->vcpu). So this comment is not valid now. Note: SPRN_SPRG3R is not supported (do not see any need as of now), and if we want to support this in future then we have to shift to using SPRG1 for VCPU pointer. Signed-off-by: Bharat Bhushan --- arch/powerpc/include/asm/reg.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h index 1f34ef7..d46d92b 100644 --- a/arch/powerpc/include/asm/reg.h +++ b/arch/powerpc/include/asm/reg.h @@ -945,9 +945,6 @@ * readable variant for reads, which can avoid a fault * with KVM type virtualization. * - * (*) Under KVM, the host SPRG1 is used to point to - * the current VCPU data structure - * * 32-bit 8xx: * - SPRG0 scratch for exception vectors * - SPRG1 scratch for exception vectors