From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932150AbcGOHPv (ORCPT ); Fri, 15 Jul 2016 03:15:51 -0400 Received: from mail-pa0-f68.google.com ([209.85.220.68]:34057 "EHLO mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752503AbcGOHPu (ORCPT ); Fri, 15 Jul 2016 03:15:50 -0400 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 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 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