From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-x244.google.com (mail-pa0-x244.google.com [IPv6:2607:f8b0:400e:c03::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3rrP472xDYzDqFK for ; Fri, 15 Jul 2016 17:15:51 +1000 (AEST) Received: by mail-pa0-x244.google.com with SMTP id ez1so2298951pab.3 for ; Fri, 15 Jul 2016 00:15:51 -0700 (PDT) Date: Fri, 15 Jul 2016 15:15:46 +0800 From: Simon Guo To: Michael Ellerman Cc: Benjamin Herrenschmidt , Laurent Dufour , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Paul Mackerras , Kees Cook , Rashmica Gupta , "cyrilbur@gmail.com" Subject: Re: [v4] powerpc: Export thread_struct.used_vr/used_vsr to user space Message-ID: <20160715071546.GA5290@simonLocalRHEL7.x64> References: <3rlZmP39HNz9sXR@ozlabs.org> <577E5534.70300@linux.vnet.ibm.com> <1467897678.27157.45.camel@kernel.crashing.org> <1467898167.27157.47.camel@kernel.crashing.org> <577f7a45.568f6b0a.bd0eb.4aa8SMTPIN_ADDED_BROKEN@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 In-Reply-To: <577f7a45.568f6b0a.bd0eb.4aa8SMTPIN_ADDED_BROKEN@mx.google.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Michael, Ben, On Fri, Jul 08, 2016 at 08:02:42PM +1000, Michael Ellerman wrote: > Benjamin Herrenschmidt writes: > > > On Thu, 2016-07-07 at 23:21 +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. > > > > Something like this: > > > > (totally untested) > > Simon/Laurent, can you guys test this and let me know if it works for > your usecase. > Sorry for the late reply. I tested Ben's patch and the fix works for the CRIU case mentioned before. Thanks, Simon