From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752008AbcGHFjN (ORCPT ); Fri, 8 Jul 2016 01:39:13 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:33927 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750985AbcGHFjG (ORCPT ); Fri, 8 Jul 2016 01:39:06 -0400 Date: Fri, 8 Jul 2016 13:39:01 +0800 From: Simon Guo To: Benjamin Herrenschmidt Cc: Laurent Dufour , Michael Ellerman , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Paul Mackerras , Kees Cook , Rashmica Gupta Subject: Re: [v4] powerpc: Export thread_struct.used_vr/used_vsr to user space Message-ID: <20160708053901.GA6489@simonLocalRHEL7.x64> References: <3rlZmP39HNz9sXR@ozlabs.org> <577E5534.70300@linux.vnet.ibm.com> <1467897678.27157.45.camel@kernel.crashing.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1467897678.27157.45.camel@kernel.crashing.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 07, 2016 at 11:21:18PM +1000, Benjamin Herrenschmidt wrote: > I think the right fix is that if a restore_sigcontext() has the MSR bits set, > it should set the corresponding used_* flag. > > Or is there a reason why that won't work ? That sounds reaonable to me. I will prepare a patch based on that. Michael, Ben, Laurent, Thanks the discussion and proposal. - Simon