From patchwork Mon Oct 17 08:31:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yunfeng Ye X-Patchwork-Id: 195 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1334206wrs; Mon, 17 Oct 2022 01:35:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5sVLfMDW0ttkInYm1ruLAIx9JXMlz42ga91bGCCbZoIE1B3JX5Pn0KkcBJKtyIq4JB/elZ X-Received: by 2002:a05:6a00:13a3:b0:563:6d36:ba58 with SMTP id t35-20020a056a0013a300b005636d36ba58mr11370093pfg.43.1665995741118; Mon, 17 Oct 2022 01:35:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665995741; cv=none; d=google.com; s=arc-20160816; b=qDnUC1h2sW78ZyGtRGu9x0Z15Pof12GMxwe9oOviKvX9omuYWx/NJADh7dx8NxtrfO V85HwQb9SxWK0KCk4RzivCuVXWJfwUgdBomTEVMBoQ1QdNVOflQERlDZM6ulTQ7Dl8Yv Mmqeteqx9zaPpBrVii3zGJE4QLnKeGDrq1+tJXGq+p7yGgHgaz+rBrpMiUFjYLhv+/83 GCliNkUnoIixlJAj/Me72/K1zFWgJmuS6xhc6MOUla4ZBEsJLDKmewgbpAnYsB7/Q/XH CeoXIBvlsUH+2xmPxqTz4MTJSBT9PxyaNI0zUH77yq4oxC0npnR7w5AYoD1RNqUpoTSY iXcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=X4WhMNTqYEtudIbWVN2WjP05TstPAcYUew2LvZIZ1qA=; b=ma6NlL74p+ZzrzRN2wMpDlEPukAKnb//VQr5p6ioSQE2nebc94awPvj7yL613DER2O u7Jfi9inw2gFWxGQVDj+m7yaXDsfvRS0lm+vdQvqpIF0YzJ3dEduMMH2hqnSjhq+p3vP r6bNpaPwlezKmjeROYSANem1Zo5L4sWCtWhsggppEaJ3S/Jsv+a+h65Iy38QrkTcge4y nJnnb4RcFhDAI2C1NTGMx6psi27ROKiY7ck60TqqKOAO3NfXkmhikak6KBqviXUTBDCs DFv8W7S6qOMqZJhrCAX8eN3Z1n/gXw6wWMQ7ocRdtcRd0QKyzWLLt1oDaCLC/Wq1MB42 xAbw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oc9-20020a17090b1c0900b001fe2de6a2c9si13339539pjb.4.2022.10.17.01.35.27; Mon, 17 Oct 2022 01:35:41 -0700 (PDT) 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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230260AbiJQIdA (ORCPT + 99 others); Mon, 17 Oct 2022 04:33:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229796AbiJQIcs (ORCPT ); Mon, 17 Oct 2022 04:32:48 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D8394054F for ; Mon, 17 Oct 2022 01:32:46 -0700 (PDT) Received: from dggpeml500024.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MrVc20K0XzHv4Y; Mon, 17 Oct 2022 16:32:34 +0800 (CST) Received: from huawei.com (10.44.134.232) by dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 17 Oct 2022 16:32:07 +0800 From: Yunfeng Ye To: , , , , , CC: Subject: [PATCH 0/5] Support ASID Isolation mechanism Date: Mon, 17 Oct 2022 16:31:58 +0800 Message-ID: <20221017083203.3690346-1-yeyunfeng@huawei.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Originating-IP: [10.44.134.232] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpeml500024.china.huawei.com (7.185.36.10) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746921911695509546?= X-GMAIL-MSGID: =?utf-8?q?1746923149861434228?= From: y00318929 This series patches introduce an ASID Isolation mechanism to improve isolation. Patch 1-3: Prepare for supporting ASID Isolation mechanism. Patch 4: Detailed Description and Implementation of ASID Isolation mechanism. Patch 5: This patch is used to observe the TLB flush information. Yunfeng Ye (5): arm64: mm: Define asid_bitmap structure for pinned_asid arm64: mm: Extract the processing of asid_generation arm64: mm: Use cpumask in flush_context() arm64: mm: Support ASID isolation feature arm64: mm: Add TLB flush trace on context switch arch/arm64/mm/context.c | 286 ++++++++++++++++++++++++++++++++++------ 1 file changed, 247 insertions(+), 39 deletions(-)