From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3zZ7yG16wYzDqJM for ; Sun, 4 Feb 2018 22:38:13 +1100 (AEDT) Received: from ozlabs.org (bilbo.ozlabs.org [103.22.144.67]) by bilbo.ozlabs.org (Postfix) with ESMTP id 3zZ7yF1kNKz8wFn for ; Sun, 4 Feb 2018 22:38:13 +1100 (AEDT) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zZ7yD5Tcxz9t2x for ; Sun, 4 Feb 2018 22:38:11 +1100 (AEDT) Date: Sun, 4 Feb 2018 11:53:55 +0100 From: Greg KH To: Michael Ellerman Cc: stable@vger.kernel.org, linuxppc-dev@ozlabs.org Subject: Re: [PATCH v4.4 backport 06/16] powerpc/64: Add macros for annotating the destination of rfid/hrfid Message-ID: <20180204105355.GE7519@kroah.com> References: <20180204050010.13669-1-mpe@ellerman.id.au> <20180204050010.13669-7-mpe@ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20180204050010.13669-7-mpe@ellerman.id.au> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sun, Feb 04, 2018 at 04:00:00PM +1100, Michael Ellerman wrote: > From: Nicholas Piggin > > commit 50e51c13b3822d14ff6df4279423e4b7b2269bc3 upstream. > > The rfid/hrfid ((Hypervisor) Return From Interrupt) instruction is > used for switching from the kernel to userspace, and from the > hypervisor to the guest kernel. However it can and is also used for > other transitions, eg. from real mode kernel code to virtual mode > kernel code, and it's not always clear from the code what the > destination context is. > > To make it clearer when reading the code, add macros which encode the > expected destination context. > > Signed-off-by: Nicholas Piggin > Signed-off-by: Michael Ellerman Also applied to 4.9.y, thanks. greg k-h