From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87FDFC433EF for ; Fri, 4 Feb 2022 17:37:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376996AbiBDRhx (ORCPT ); Fri, 4 Feb 2022 12:37:53 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:48449 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376959AbiBDRhn (ORCPT ); Fri, 4 Feb 2022 12:37:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1643996263; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=UUyh06sFhK83noGoR6qkwTV70ZLwSZFw31jHQTQVbcI=; b=Kip9P/GFIjDdOjTdMIQaC46w0Iyt6R69Op1l0A7tf8XT8MoDPokrYaGpatmhgkJerc8BjL 42hgtPwQ9UFCM9yW7nxlQJ1FRyJHW643g4aAOqREtzlD7ZXkQUm3ouu682jo5ehJ05XRvN 3/cipK9AldZqeNwtkqBP6bjyA2TIJVw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-608-SI-lPwQ_OUu5Y2z9gGTqAA-1; Fri, 04 Feb 2022 12:37:40 -0500 X-MC-Unique: SI-lPwQ_OUu5Y2z9gGTqAA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9D69A18397DD; Fri, 4 Feb 2022 17:37:38 +0000 (UTC) Received: from fuller.cnet (ovpn-112-3.gru2.redhat.com [10.97.112.3]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7FD9510A4B23; Fri, 4 Feb 2022 17:37:11 +0000 (UTC) Received: by fuller.cnet (Postfix, from userid 1000) id 74F5C416D5C9; Fri, 4 Feb 2022 14:36:46 -0300 (-03) Message-ID: <20220204173554.534186379@fedora.localdomain> User-Agent: quilt/0.66 Date: Fri, 04 Feb 2022 14:35:39 -0300 From: Marcelo Tosatti To: linux-kernel@vger.kernel.org Cc: Nitesh Lal , Nicolas Saenz Julienne , Frederic Weisbecker , Christoph Lameter , Juri Lelli , Peter Zijlstra , Alex Belits , Peter Xu , Thomas Gleixner , Daniel Bristot de Oliveira , Oscar Shiang , x86@kernel.org, Marcelo Tosatti Subject: [patch v11 02/13] x86: add support for TIF_TASK_ISOL References: <20220204173537.429902988@fedora.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add TIF_TASK_ISOL handling for x86. Cc: x86@kernel.org Signed-off-by: Marcelo Tosatti Index: linux-2.6/arch/x86/include/asm/thread_info.h =================================================================== --- linux-2.6.orig/arch/x86/include/asm/thread_info.h +++ linux-2.6/arch/x86/include/asm/thread_info.h @@ -83,6 +83,7 @@ struct thread_info { #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ #define TIF_SINGLESTEP 4 /* reenable singlestep on user return*/ #define TIF_SSBD 5 /* Speculative store bypass disable */ +#define TIF_TASK_ISOL 6 /* task isolation work pending */ #define TIF_SPEC_IB 9 /* Indirect branch speculation mitigation */ #define TIF_SPEC_L1D_FLUSH 10 /* Flush L1D on mm switches (processes) */ #define TIF_USER_RETURN_NOTIFY 11 /* notify kernel of userspace return */ @@ -107,6 +108,7 @@ struct thread_info { #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) #define _TIF_SINGLESTEP (1 << TIF_SINGLESTEP) #define _TIF_SSBD (1 << TIF_SSBD) +#define _TIF_TASK_ISOL (1 << TIF_TASK_ISOL) #define _TIF_SPEC_IB (1 << TIF_SPEC_IB) #define _TIF_SPEC_L1D_FLUSH (1 << TIF_SPEC_L1D_FLUSH) #define _TIF_USER_RETURN_NOTIFY (1 << TIF_USER_RETURN_NOTIFY)