From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4PYA-0001te-Uq for qemu-devel@nongnu.org; Mon, 15 Jun 2015 04:15:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4PY7-0003bK-Q3 for qemu-devel@nongnu.org; Mon, 15 Jun 2015 04:15:22 -0400 Date: Mon, 15 Jun 2015 10:15:09 +0200 From: Thomas Huth Message-ID: <20150615101509.57063182@thh440s> In-Reply-To: <20150615065908.GJ13352@voom.redhat.com> References: <1433478358-993-1-git-send-email-bharata@linux.vnet.ibm.com> <1433478358-993-6-git-send-email-bharata@linux.vnet.ibm.com> <20150615065908.GJ13352@voom.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4 5/8] spapr: Consolidate cpu init code into a routine List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com, agraf@suse.de, aik@ozlabs.ru, qemu-ppc@nongnu.org, tyreld@linux.vnet.ibm.com, Bharata B Rao , nfont@linux.vnet.ibm.com On Mon, 15 Jun 2015 16:59:08 +1000 David Gibson wrote: > On Fri, Jun 05, 2015 at 09:55:55AM +0530, Bharata B Rao wrote: > > Factor out bits of sPAPR specific CPU initialization code into > > a separate routine so that it can be called from CPU hotplug > > path too. > > > > While at this, use MSR_EP define instead of using 6 directly. > > Don't do this please. MSR[EP] is an obsolete flag from 601. The > MSR[IP] flag that we're controlling here just happened to re-use the > same bit position, so using the existing MSR_EP define is misleading. Actually, I had the same discussion with Bharata already some weeks ago: http://lists.gnu.org/archive/html/qemu-ppc/2015-05/msg00133.html > A symbolic name is good, but you should create a new one for MSR[IP] > instead. ... and I had to realize that IP = EP. IP likely stands for "interrupt prefix" (I guess), and EP simply means "exception prefix", so just two words for the same meaning. It's just the "on 601" comment in QEMU that is completely misleading. So IMHO it should be fine to keep the "MSR_EP" here (and maybe update the comment in cpu.h with a separate patch?). Thomas