From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932771AbcGLCQv (ORCPT ); Mon, 11 Jul 2016 22:16:51 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:33972 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932129AbcGLCQt (ORCPT ); Mon, 11 Jul 2016 22:16:49 -0400 Date: Tue, 12 Jul 2016 01:39:13 +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: <20160711173913.GA24401@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 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <577f7a45.568f6b0a.bd0eb.4aa8SMTPIN_ADDED_BROKEN@mx.google.com> 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 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. Just notice this note. Yes I will test it on CRIU and update later. Thanks, - Simon