From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932992AbbCPSAE (ORCPT ); Mon, 16 Mar 2015 14:00:04 -0400 Received: from cantor2.suse.de ([195.135.220.15]:58392 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932223AbbCPSAB (ORCPT ); Mon, 16 Mar 2015 14:00:01 -0400 Date: Mon, 16 Mar 2015 18:58:26 +0100 From: Borislav Petkov To: Oleg Nesterov Cc: Dave Hansen , Ingo Molnar , Andy Lutomirski , Linus Torvalds , Pekka Riikonen , Rik van Riel , Suresh Siddha , LKML , "Yu, Fenghua" , Quentin Casasnovas , "H. Peter Anvin" Subject: Re: [PATCH RFC 0/2] x86/fpu: avoid "xstate_fault" in xsave_user/xrestore_user Message-ID: <20150316175826.GR22995@pd.tnic> References: <54F74F59.5070107@intel.com> <20150315164948.GA28149@redhat.com> <20150316143605.GL22995@pd.tnic> <20150316145742.GA4059@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20150316145742.GA4059@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 16, 2015 at 03:57:42PM +0100, Oleg Nesterov wrote: > Sure, I won't argue if we use the new macros instead. But we already have > check_insn/user_insn, why not use them? It certainly is worth a try. > to me check_insn(ALTERNATIVE_2(...)) looks better. Except we need the > clobber. It is not easy to read the code like this, imo it would be better > to avoid copy-and-paste and use the helpers we already have. Just we need > to improve them. Yeah, I can't say I'm crazy about those check_insn macros either but certainly worth a try. Apparently they're the way to go in the fpu code so let's try to use them... Thanks. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. --