Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3650598pxb; Fri, 4 Feb 2022 13:17:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpY5rZ9UgKmYGlmxHJVdkvLz8IGQaOeOmByryPDqtR5kf3E13Vv817gP2RfXGg8gxqQiRX X-Received: by 2002:a17:902:d64a:: with SMTP id y10mr4785510plh.66.1644009421208; Fri, 04 Feb 2022 13:17:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644009421; cv=none; d=google.com; s=arc-20160816; b=qmLzmdbZc+qKZaHTSZVeNNS3TVh4oaZKIpw9wCbcbjqd9NyFcw1XLaMsH7Of6FkNNd eOPF52O5JbcdjBZqBjKlYZgBMnuD1BVJvBEGYi2HQrkS5XEnNU4n1jresJiQd5AFrnJk /wS5MbTPZ/u7LRLbdky7jKZVlPbt6L0csobvPFq8swraona7C/HzdoodBVqw71GjWdhW gBAz1F5n4ld0eP71Is1qqahPCQ9b42RHE/Wk6+COluUmJCRkbyUo26aKdLZana14SFzr y5wvHaULGHm5QXcrCLZHL2M1zKNShy1858L3v42QAViVb/OqsHhwD97GE8Qp8G8Rimne AvEQ== 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=meBYTrvQY3Vzaw6ouSwzbarO8+EcbkWn/cKrybubalA=; b=br2V/43s9oFQBDW7uKfTh+PPNwsacnwYrvea5IXj5EaB0JZxc+XRZzaemW4v1qLEyJ BYvRUbNBsp1eitRX5nK0eUbFtMJH3/TiKQYL6qAvNzwkbgg3st1JfuXU9XFUETwRZudo zGA0/IPWoVJbaaefXON7m1tQ21ig4LjB7uieHtWz6gPy/0hZ60IDphLZJMEw+UEaS384 O6NgWLuEfmldtPjaUr2sJjXC/Oy5XGGrzPMCwcyJmrX9YQsnkGfYXu69Nq7nq0OQOKVE DQcOJXkC1mApBoCa31qPbxf75PLdme/jjdkF0RK4Tb1h0+A+IAl9i4h0l8Jr4O5pnJdr Kvmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=As+NSAJl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i4si2426665plb.489.2022.02.04.13.16.49; Fri, 04 Feb 2022 13:17:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=As+NSAJl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376968AbiBDRiG (ORCPT + 99 others); Fri, 4 Feb 2022 12:38:06 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:23991 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377045AbiBDRhr (ORCPT ); Fri, 4 Feb 2022 12:37:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1643996266; 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=meBYTrvQY3Vzaw6ouSwzbarO8+EcbkWn/cKrybubalA=; b=As+NSAJl2PlGhqzCMwkQUVoCh5G42BfHc+oP4Yp4srKW6hmDE3gf9HiCrm8yr1l5NzlL0w QJaMC4KDbLENhnhHE2Bh4mNXzD936p9cildHPoEY2uep4AxNj7uztITzBk0EW5443J0Ptt 5Bxa4RNRYEDGymsvLyE9S5T93wSDXhI= 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-6-qPJobStOO-ivGJ3dYYyzrw-1; Fri, 04 Feb 2022 12:37:44 -0500 X-MC-Unique: qPJobStOO-ivGJ3dYYyzrw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6E6AC801B2D; Fri, 4 Feb 2022 17:37: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 8F8927DE50; Fri, 4 Feb 2022 17:37:08 +0000 (UTC) Received: by fuller.cnet (Postfix, from userid 1000) id 722D2416D5C7; Fri, 4 Feb 2022 14:36:46 -0300 (-03) Message-ID: <20220204173554.491925589@fedora.localdomain> User-Agent: quilt/0.66 Date: Fri, 04 Feb 2022 14:35:38 -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 , linux-s390@vger.kernel.org, Marcelo Tosatti Subject: [patch v11 01/13] s390: 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.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add TIF_TASK_ISOL handling for s390. Cc: linux-s390@vger.kernel.org Signed-off-by: Marcelo Tosatti Index: linux-2.6/arch/s390/include/asm/thread_info.h =================================================================== --- linux-2.6.orig/arch/s390/include/asm/thread_info.h +++ linux-2.6/arch/s390/include/asm/thread_info.h @@ -73,6 +73,7 @@ void arch_setup_new_exec(void); #define TIF_ISOLATE_BP 8 /* Run process with isolated BP */ #define TIF_ISOLATE_BP_GUEST 9 /* Run KVM guests with isolated BP */ #define TIF_PER_TRAP 10 /* Need to handle PER trap on exit to usermode */ +#define TIF_TASK_ISOL 11 /* task isolation work pending */ #define TIF_31BIT 16 /* 32bit process */ #define TIF_MEMDIE 17 /* is terminating due to OOM killer */ @@ -97,6 +98,7 @@ void arch_setup_new_exec(void); #define _TIF_ISOLATE_BP BIT(TIF_ISOLATE_BP) #define _TIF_ISOLATE_BP_GUEST BIT(TIF_ISOLATE_BP_GUEST) #define _TIF_PER_TRAP BIT(TIF_PER_TRAP) +#define _TIF_TASK_ISOL BIT(TIF_TASK_ISOL) #define _TIF_31BIT BIT(TIF_31BIT) #define _TIF_SINGLE_STEP BIT(TIF_SINGLE_STEP)