Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5476616imm; Wed, 12 Sep 2018 06:36:43 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYGElu4sZUMEnv4sHk0dQY0Qq38ruk5UYj6nuT3rdKVLq3ITNcXLjn7s0YNSvyxBXSaMF59 X-Received: by 2002:a62:90d4:: with SMTP id q81-v6mr2420586pfk.37.1536759402960; Wed, 12 Sep 2018 06:36:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536759402; cv=none; d=google.com; s=arc-20160816; b=Tbq0TYqya8iYv9A7JJt5+neu0o4563+ojVe9xRoRPepXBReNeYcW5gzdjhnWWjWEq9 i1jI9lFY7IFhIIc6y8lutMwopqQUcq8pOdA5hp47ghcdZYrZehqhYQAZqltAwmePbyCG 2iZPcN0f96mhZ1f0wpF2xaK6tFm2OXJud5JnEdCImK4VxkJUiBbH8vfM0IUYABTAb4mc wtStbbIXN+7DBfBND6c+Vr2e3t9qzvNischkiR8CwT0Xwo7SBTowwnx47nfp6xNVALez GFNEcJuZTOkzZ8tcYNUezAwCBGlFl95ogJsFt65YLWKDGLoHpnFK0f/VPKC/aWiC4KVy UuFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=HwgAgYJFC2kwdgY6dLX26wWQwETO0n33YWqel0Dnv0o=; b=j131witGwnSg08ja1uXD79DnWY0yLCcdOUxa3bpsua3J7kwbna1CKcf+u2mBWf6M6x tN8AtlAmxGVPcWOfh7GVZVwTxW+crNFSSw+Uny+BXA1b4kPXsRBFJJey6qTxhB3/CAiW 17eu/zTx+IjaXlqc/9PzXU92BQeYWev6QHYD1ODEDyLdVyZZMSOBaFt6jSqHHbG3R/0R xEMKSw24dm6hpIwxeiK1T5kMp3e3cBGvt/vdOs1Ei3L2jePmYjVBxImggj2GPLmdjRU9 wYpiTuMMJ9NirD0CDNoXqW/td0JpLPNlqnpM4L0Da5Zcp+RVSXY5mLcxLqKJHXq79J92 7rvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1-v6si1147909pgh.160.2018.09.12.06.36.16; Wed, 12 Sep 2018 06:36:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728109AbeILSkf (ORCPT + 99 others); Wed, 12 Sep 2018 14:40:35 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:43909 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728027AbeILSke (ORCPT ); Wed, 12 Sep 2018 14:40:34 -0400 Received: from localhost ([127.0.0.1] helo=bazinga.breakpoint.cc) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1g05JE-0001Ap-QI; Wed, 12 Sep 2018 15:35:57 +0200 From: Sebastian Andrzej Siewior To: linux-kernel@vger.kernel.org Cc: x86@kernel.org, Andy Lutomirski , Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= , kvm@vger.kernel.org, "Jason A. Donenfeld" , Rik van Riel , Sebastian Andrzej Siewior Subject: [RFC PATCH 07/10] x86/entry: add TIF_LOAD_FPU Date: Wed, 12 Sep 2018 15:33:50 +0200 Message-Id: <20180912133353.20595-8-bigeasy@linutronix.de> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180912133353.20595-1-bigeasy@linutronix.de> References: <20180912133353.20595-1-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add TIF_LOAD_FPU. This is reserved for loading the FPU registers before returning to userpace. It is introduced now, so we can add code handling it now before adding the main feature. Signed-off-by: Sebastian Andrzej Siewior --- arch/x86/include/asm/thread_info.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/include/asm/thread_info.h b/arch/x86/include/asm/thread_info.h index cd6920674b905..cd910fd8c8c4c 100644 --- a/arch/x86/include/asm/thread_info.h +++ b/arch/x86/include/asm/thread_info.h @@ -83,6 +83,7 @@ struct thread_info { #define TIF_SYSCALL_EMU 6 /* syscall emulation active */ #define TIF_SYSCALL_AUDIT 7 /* syscall auditing active */ #define TIF_SECCOMP 8 /* secure computing */ +#define TIF_LOAD_FPU 10 /* load FPU on return to userspace */ #define TIF_USER_RETURN_NOTIFY 11 /* notify kernel of userspace return */ #define TIF_UPROBE 12 /* breakpointed or singlestepping */ #define TIF_PATCH_PENDING 13 /* pending live patching update */ @@ -110,6 +111,7 @@ struct thread_info { #define _TIF_SYSCALL_EMU (1 << TIF_SYSCALL_EMU) #define _TIF_SYSCALL_AUDIT (1 << TIF_SYSCALL_AUDIT) #define _TIF_SECCOMP (1 << TIF_SECCOMP) +#define _TIF_LOAD_FPU (1 << TIF_LOAD_FPU) #define _TIF_USER_RETURN_NOTIFY (1 << TIF_USER_RETURN_NOTIFY) #define _TIF_UPROBE (1 << TIF_UPROBE) #define _TIF_PATCH_PENDING (1 << TIF_PATCH_PENDING) -- 2.19.0