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 mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7B10C4332F for ; Mon, 7 Nov 2022 17:19:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 39FDC4B838; Mon, 7 Nov 2022 12:19:24 -0500 (EST) X-Virus-Scanned: at lists.cs.columbia.edu Authentication-Results: mm01.cs.columbia.edu (amavisd-new); dkim=softfail (fail, message has been altered) header.i=@redhat.com Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tv3SxoIVgpOi; Mon, 7 Nov 2022 12:19:23 -0500 (EST) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 0C5854B864; Mon, 7 Nov 2022 12:19:23 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 383D64B850 for ; Mon, 7 Nov 2022 12:19:22 -0500 (EST) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rCQvMkMqW-sZ for ; Mon, 7 Nov 2022 12:19:21 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 43A534B838 for ; Mon, 7 Nov 2022 12:19:21 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667841561; 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: in-reply-to:in-reply-to:references:references; bh=vj6jKgV57HR3Syp9+ASZUDM7wgYRBqwk96cC1Kgx8ZM=; b=Y/rWZ/O0smdPrggoVGxbHyobyVofoAoP3Y5PSGR4RC3j8Gz2pp2V6dtvUR3+fAL9nXFjFv JP5XiHnmawoslI5+J4BAWJNLoutvu0H0MZzApzE4bz6kc99reWjH1FKZzu6DU27AW0mPVd hC9/1YfzSSn9E8dJw+V0irhT2nEGBuA= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-34-5I8FLPu2M7CS5gN_-WeOdA-1; Mon, 07 Nov 2022 12:19:15 -0500 X-MC-Unique: 5I8FLPu2M7CS5gN_-WeOdA-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D34CF101A52A; Mon, 7 Nov 2022 17:19:14 +0000 (UTC) Received: from localhost (unknown [10.39.193.202]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 87685492B05; Mon, 7 Nov 2022 17:19:14 +0000 (UTC) From: Cornelia Huck To: Peter Collingbourne , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu Subject: Re: [PATCH v5 7/8] KVM: arm64: permit all VM_MTE_ALLOWED mappings with MTE enabled In-Reply-To: <20221104011041.290951-8-pcc@google.com> Organization: Red Hat GmbH References: <20221104011041.290951-1-pcc@google.com> <20221104011041.290951-8-pcc@google.com> User-Agent: Notmuch/0.37 (https://notmuchmail.org) Date: Mon, 07 Nov 2022 18:19:13 +0100 Message-ID: <87cz9y3coe.fsf@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 Cc: kvm@vger.kernel.org, Catalin Marinas , Steven Price , Will Deacon , Marc Zyngier , Vincenzo Frascino , Peter Collingbourne , Evgenii Stepanov X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu On Thu, Nov 03 2022, Peter Collingbourne wrote: > Certain VMMs such as crosvm have features (e.g. sandboxing) that depend > on being able to map guest memory as MAP_SHARED. The current restriction > on sharing MAP_SHARED pages with the guest is preventing the use of > those features with MTE. Now that the races between tasks concurrently > clearing tags on the same page have been fixed, remove this restriction. > > Note that this is a relaxation of the ABI. > > Signed-off-by: Peter Collingbourne > Reviewed-by: Catalin Marinas > Reviewed-by: Steven Price > --- > arch/arm64/kvm/mmu.c | 8 -------- > 1 file changed, 8 deletions(-) Reviewed-by: Cornelia Huck _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 29860C4332F for ; Mon, 7 Nov 2022 17:20:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KTQnGozkgeiAZk0blWxVBeeunAOaKjCBrgOTWB6XRHQ=; b=cMYRCU1RStX61m K98IQtBcW959S9qXbcOja7UhvSSDEiAoh6nWe8mro2KrbPCXQMEfvsN35bqp9OFrLixVxK7uQXcX0 CA0jzbMerZxzd3Rg+rhRl3Bm79A4d23j5aNTcEq8zSqZnTLCzzLcKBDDEqjaBi5vQUO1Vt76gqtev CwDngCDd/LdKqNwutWF0W7/aKIwTNEporV2mLSaT96GErZsPSrJujwgyq1T7nNH73ql3uT0L+JHTH u3CZw5NsgEB/HRuc7Lt+48aJXnJ4F3xJUPpo5xLLNfq9nLkFO2BoPFN8UswFZNegvDKgO+bSPmi8i aindnVcTjbnuEZtARbLA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1os5mV-00GcTi-2Y; Mon, 07 Nov 2022 17:19:31 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1os5mJ-00GcOx-Pw for linux-arm-kernel@lists.infradead.org; Mon, 07 Nov 2022 17:19:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667841558; 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: in-reply-to:in-reply-to:references:references; bh=vj6jKgV57HR3Syp9+ASZUDM7wgYRBqwk96cC1Kgx8ZM=; b=Dhg4Wgs7kve2rEk9jRcUkvI9NTN1JpcFASrKgKn7vitmkBf6AuGp9QXzX2gFnr/6JcR6rA SVnJYwqKfW0540CW8dWFFaS7+778IE9cPbyO7eLM1lgy6wN+HkUpFJqTAHmKBi/ScTPnf0 ZiQ/jDLUCAvAJ1yE/9YSg+b8fjfRS9g= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-34-5I8FLPu2M7CS5gN_-WeOdA-1; Mon, 07 Nov 2022 12:19:15 -0500 X-MC-Unique: 5I8FLPu2M7CS5gN_-WeOdA-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D34CF101A52A; Mon, 7 Nov 2022 17:19:14 +0000 (UTC) Received: from localhost (unknown [10.39.193.202]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 87685492B05; Mon, 7 Nov 2022 17:19:14 +0000 (UTC) From: Cornelia Huck To: Peter Collingbourne , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu Cc: Peter Collingbourne , Catalin Marinas , Will Deacon , Marc Zyngier , Evgenii Stepanov , kvm@vger.kernel.org, Steven Price , Vincenzo Frascino Subject: Re: [PATCH v5 7/8] KVM: arm64: permit all VM_MTE_ALLOWED mappings with MTE enabled In-Reply-To: <20221104011041.290951-8-pcc@google.com> Organization: Red Hat GmbH References: <20221104011041.290951-1-pcc@google.com> <20221104011041.290951-8-pcc@google.com> User-Agent: Notmuch/0.37 (https://notmuchmail.org) Date: Mon, 07 Nov 2022 18:19:13 +0100 Message-ID: <87cz9y3coe.fsf@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221107_091919_956415_98AF28D2 X-CRM114-Status: GOOD ( 12.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Nov 03 2022, Peter Collingbourne wrote: > Certain VMMs such as crosvm have features (e.g. sandboxing) that depend > on being able to map guest memory as MAP_SHARED. The current restriction > on sharing MAP_SHARED pages with the guest is preventing the use of > those features with MTE. Now that the races between tasks concurrently > clearing tags on the same page have been fixed, remove this restriction. > > Note that this is a relaxation of the ABI. > > Signed-off-by: Peter Collingbourne > Reviewed-by: Catalin Marinas > Reviewed-by: Steven Price > --- > arch/arm64/kvm/mmu.c | 8 -------- > 1 file changed, 8 deletions(-) Reviewed-by: Cornelia Huck _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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 73ECCC433FE for ; Mon, 7 Nov 2022 17:20:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232481AbiKGRUV (ORCPT ); Mon, 7 Nov 2022 12:20:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232075AbiKGRUU (ORCPT ); Mon, 7 Nov 2022 12:20:20 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F86B23BCD for ; Mon, 7 Nov 2022 09:19:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667841558; 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: in-reply-to:in-reply-to:references:references; bh=vj6jKgV57HR3Syp9+ASZUDM7wgYRBqwk96cC1Kgx8ZM=; b=Dhg4Wgs7kve2rEk9jRcUkvI9NTN1JpcFASrKgKn7vitmkBf6AuGp9QXzX2gFnr/6JcR6rA SVnJYwqKfW0540CW8dWFFaS7+778IE9cPbyO7eLM1lgy6wN+HkUpFJqTAHmKBi/ScTPnf0 ZiQ/jDLUCAvAJ1yE/9YSg+b8fjfRS9g= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-34-5I8FLPu2M7CS5gN_-WeOdA-1; Mon, 07 Nov 2022 12:19:15 -0500 X-MC-Unique: 5I8FLPu2M7CS5gN_-WeOdA-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D34CF101A52A; Mon, 7 Nov 2022 17:19:14 +0000 (UTC) Received: from localhost (unknown [10.39.193.202]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 87685492B05; Mon, 7 Nov 2022 17:19:14 +0000 (UTC) From: Cornelia Huck To: Peter Collingbourne , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu Cc: Peter Collingbourne , Catalin Marinas , Will Deacon , Marc Zyngier , Evgenii Stepanov , kvm@vger.kernel.org, Steven Price , Vincenzo Frascino Subject: Re: [PATCH v5 7/8] KVM: arm64: permit all VM_MTE_ALLOWED mappings with MTE enabled In-Reply-To: <20221104011041.290951-8-pcc@google.com> Organization: Red Hat GmbH References: <20221104011041.290951-1-pcc@google.com> <20221104011041.290951-8-pcc@google.com> User-Agent: Notmuch/0.37 (https://notmuchmail.org) Date: Mon, 07 Nov 2022 18:19:13 +0100 Message-ID: <87cz9y3coe.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Thu, Nov 03 2022, Peter Collingbourne wrote: > Certain VMMs such as crosvm have features (e.g. sandboxing) that depend > on being able to map guest memory as MAP_SHARED. The current restriction > on sharing MAP_SHARED pages with the guest is preventing the use of > those features with MTE. Now that the races between tasks concurrently > clearing tags on the same page have been fixed, remove this restriction. > > Note that this is a relaxation of the ABI. > > Signed-off-by: Peter Collingbourne > Reviewed-by: Catalin Marinas > Reviewed-by: Steven Price > --- > arch/arm64/kvm/mmu.c | 8 -------- > 1 file changed, 8 deletions(-) Reviewed-by: Cornelia Huck