Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp991062pxp; Wed, 16 Mar 2022 23:42:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJCCjrJNFndkfmt8CPJRzT9Q3rw4oZlbcf0w/vpxWnzFdz3GUj+fzv/NI9uBSAdGBgwCCo X-Received: by 2002:a05:6a00:1596:b0:4f9:f992:9f69 with SMTP id u22-20020a056a00159600b004f9f9929f69mr2922238pfk.7.1647499347196; Wed, 16 Mar 2022 23:42:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647499347; cv=none; d=google.com; s=arc-20160816; b=TcSVQ2wXogIsBlaDuBPYA23L6DdiPfZpE/gF6OW8FAteGH1ljT8KFu9s9EcQya/1eU /X5eLvvh0h75JRLbgzeKyApv3Hkp37i9B/eF6/a5OVsAWrpSgbfjUcv/hkI2kkHiii0U xnFoHZqKVY7dVvXyIU/hW+3Bqdb6aVt8KH2tvqUoJ99l51aUfP0eJ9rJiGAy+KF/4VML ZD4xFUs2pJ5QGqwYnpFVKaqGAwLHWLpriN/WFrpvi+dh/aWJSY7Nu+ySoKZ1pDmGKlXZ ur4el1xM1QnLTQdhw8iTCMR10e9BpnCEGT194VBEQaMuNjNs0t8Yz9trkMTaSRf8SVeI FC6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:subject:cc:to:from:date :user-agent:message-id:dkim-signature; bh=UUyh06sFhK83noGoR6qkwTV70ZLwSZFw31jHQTQVbcI=; b=z+Z1C3nV2ThsyQDMCOvF6SdyI/VZmdELUAY+aRaUr+wojGeuqOcaDQeBTVW1YwCWM5 Vw466i3Zr3JwjzYnjfXuPvc6WrjAmCriofpy4Gs9CebUKSfSq+/LUkjR6wFE4Z1yhtKg MhhJ1L4jMFH6yWX2/pK0JxMgMvk+8AFQMNX0h/z4MuMWgqGFCw/e7/Idn5sutOnN+OTf 6DS5RY6cADwjAtKPxjLoExFqeWe0NA2OmXPAap5gg8wWPGflA2BuvyPQP4xGQkQ3cmDk NZAZzCWN6Cz/2lleRYXHlDu9tMczvKktlhjxz8qE7So1zThU5rfo/ku1FsZ5+ndxqn/9 4fLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VqlzXFCz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l123-20020a632581000000b0038209393f5fsi460363pgl.819.2022.03.16.23.42.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 23:42:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VqlzXFCz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4B3E02C69E7; Wed, 16 Mar 2022 22:26:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351622AbiCOT51 (ORCPT + 99 others); Tue, 15 Mar 2022 15:57:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351612AbiCOT5Q (ORCPT ); Tue, 15 Mar 2022 15:57:16 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 013385676E for ; Tue, 15 Mar 2022 12:55:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1647374147; 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=VqlzXFCzlg4xAxH0MZakMb09K0aUK5h/lvd3JSX5odFVvoKSJoRbykwim/9ivIXoRc50GX zlt5BsrqQ77Q+2Di6FzbFH6Ibg0TTpRfBKDlxRn3LD9YyymhpKfVZwa6J7tJe4I8Waoyix yQzUmLGPQdHCf4wjJDakdQw2AfGqiR4= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-440-IlEVbE0mN9ydpr9l83jJWw-1; Tue, 15 Mar 2022 15:55:43 -0400 X-MC-Unique: IlEVbE0mN9ydpr9l83jJWw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 44F02299E77E; Tue, 15 Mar 2022 19:55:43 +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 E779E202A447; Tue, 15 Mar 2022 19:55:25 +0000 (UTC) Received: by fuller.cnet (Postfix, from userid 1000) id B312A416CE5D; Tue, 15 Mar 2022 12:33:58 -0300 (-03) Message-ID: <20220315153313.817554537@fedora.localdomain> User-Agent: quilt/0.66 Date: Tue, 15 Mar 2022 12:31:34 -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 v12 02/13] x86: add support for TIF_TASK_ISOL References: <20220315153132.717153751@fedora.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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)