Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4336581rwl; Mon, 3 Apr 2023 03:35:42 -0700 (PDT) X-Google-Smtp-Source: AKy350ZhfXJHZwbvCiAiI8i1FUMWH6uFoneotxYIhCp2ZmaBfHgW/Zn3dZnCwBHMIIPyIikj/iyH X-Received: by 2002:aa7:c711:0:b0:4a2:588f:b3c5 with SMTP id i17-20020aa7c711000000b004a2588fb3c5mr36300104edq.21.1680518142642; Mon, 03 Apr 2023 03:35:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680518142; cv=none; d=google.com; s=arc-20160816; b=DQHsfwy6/aa1Ts609AhAx4aCCE1RGenkGNhjMr+hIxfLkwPuww8nHzhFkwIzETJ5A0 hzCCYEUwUDFxplHCYbQkz7yX8iqFsk09eYwUy5SvS5TPSOXRzprpyGCgvtjG/Se+gjZD fJO+gZ4b+GoAYYFxnAHn217iSH5EpF59T1XXASJb/oswX0HuWpjy4715F2ad5KfudC5y BJGV2Km/IxUgSxnHcIaDYhVZfzxLfz0AxHbSCt0cCxmaJsLJg8+mJ1TpZw/Tde3EDWp0 /ODXlcO0Yixm2TdVvAj6cCRiU9C2d03P6CK9twAD1DJoHelghsy2XeAHlx8oBjeTdqqs /LiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=lUUNllY8YalVB4WW6NDGWZcMU+uWScy5adnBQ8xJC98=; b=CDxO+hQJuMc1MHi4OrjJK2nwdpChcA1aYtx1S8vZvFWm8DOzVMZ2rWUQ8MvX8U4n0c HXz/dBUHpa71ptZgg4lfefYyRC3iRJtxcHorG0d3Ldzr9UtYDt8cSePFEv+ZCXjMwyWZ b36am7A/QxgNRtzsTFJwVYwtf6uQ/NovB412HwAN2tFQ8bIwTyRwLgArYxPd1Q+jX8Bd Ufd/GYl3uacHndjEhPgZBMME428wHTbDQxoIsR4bergtrG5IENOv/tUixHPWuiFyh6QU w7YKn6/Pql5PE3U6OSO1tqm5ua04/6TjYN5o2GuiJwadmHGwxzMLKCl3SOh96l6SIckC otcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov.name header.s=fm1 header.b=rP1I4Dsn; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=pbOs7yb1; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r1-20020a056402034100b0050202fbb587si2601326edw.352.2023.04.03.03.35.17; Mon, 03 Apr 2023 03:35:42 -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; dkim=pass header.i=@shutemov.name header.s=fm1 header.b=rP1I4Dsn; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=pbOs7yb1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232052AbjDCK1y (ORCPT + 99 others); Mon, 3 Apr 2023 06:27:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231921AbjDCK1w (ORCPT ); Mon, 3 Apr 2023 06:27:52 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9806512875 for ; Mon, 3 Apr 2023 03:27:17 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4E04B5C0109; Mon, 3 Apr 2023 06:27:04 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 03 Apr 2023 06:27:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov.name; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1680517624; x= 1680604024; bh=lUUNllY8YalVB4WW6NDGWZcMU+uWScy5adnBQ8xJC98=; b=r P1I4DsnFNmzuQK4WQ8zXmWi5PKN0ZEYKSb+7g9V7zigwr4kX2b9rk3ZSVMgz1FC7 m+JASbITUPx3dBhXawLdVsRZyQ/rbZ0ZcHBAv3tNNKyyQJlZCrmYfMxbKRSKMhfG XeIFFPDbnzKQRzW+6bNMp97TMDz6/wVeV4bafiC+Cy/ENo7hs+QGc3lYaXPQF0UW 4M8vyvM3omx5YkpJ3A0Z4wrWmhCDN+Pdo1QdZcLEzmBXcKUw4SgPcPqtFuN4Apnj hJKNhivtdwhCAgFTneX+ADBBwo0Z2xpPMLIYTtZ4w2jZGYJ6nG4Elbp/HzSz7nOC DM/+fG30vLdN2BDjwGv/A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1680517624; x=1680604024; bh=lUUNllY8YalVB 4WW6NDGWZcMU+uWScy5adnBQ8xJC98=; b=pbOs7yb1OMx9jALcWtp8nQ4OyTHiW 75PHGIpI5ej4jOA9AMG3gxzrj2rsXxW4dDvm3lqMG2RwGZVmFyapuzNXIitSZsxI +bgeB3LZY1ZwMXNEYMY2QMeZzxTonbCBMj2vWCgVrqxLv8lAd4/rCx7VCbnM4J8z uoBMSWFJ6W7adX+XX61XcNusna2nOVWELIHyY7F5QvHbg+NUsG6z56tSmw0+/te4 0VakuK2uPotVc5etgKBFAQtPJn7wCUAszzLXaqCVgBH6vU2qg3G0Vcn28YQOhiZK Q/VLpPO6n7knN0PxqOq2EAlscjptq2A4NFB5+VxMoh2GoF1ynmCjuH+Dw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeijedgvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepfdfmihhr ihhllhcutedrucfuhhhuthgvmhhovhdfuceokhhirhhilhhlsehshhhuthgvmhhovhdrnh grmhgvqeenucggtffrrghtthgvrhhnpeekvddvjeffheetgedtvdfgieejiedvgeejieet jeehieehveffueekfeehffdvveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehkihhrihhllhesshhhuhhtvghmohhvrdhnrghmvg X-ME-Proxy: Feedback-ID: ie3994620:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 3 Apr 2023 06:27:03 -0400 (EDT) Received: by box.shutemov.name (Postfix, from userid 1000) id 1678310D7B3; Mon, 3 Apr 2023 13:27:02 +0300 (+03) Date: Mon, 3 Apr 2023 13:27:02 +0300 From: "Kirill A. Shutemov" To: Dmitry Vyukov Cc: "Kirill A. Shutemov" , Dave Hansen , Andy Lutomirski , Peter Zijlstra , x86@kernel.org, Kostya Serebryany , Andrey Ryabinin , Andrey Konovalov , Alexander Potapenko , Taras Madan , "H . J . Lu" , Andi Kleen , Rick Edgecombe , Bharata B Rao , Jacob Pan , Ashok Raj , Linus Torvalds , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv16 11/17] x86/mm/iommu/sva: Make LAM and SVA mutually exclusive Message-ID: <20230403102702.teplnhqhvxs4tn4o@box> References: <20230312112612.31869-1-kirill.shutemov@linux.intel.com> <20230312112612.31869-12-kirill.shutemov@linux.intel.com> <20230403094419.zl2ncsd4qyd35fex@box> <20230403101707.satsniziz3tn2zyd@box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS 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 On Mon, Apr 03, 2023 at 12:22:01PM +0200, Dmitry Vyukov wrote: > Then I misunderstood what it means. Ignore. > > While we are here: > > if (mm_valid_pasid(mm) && > !test_bit(MM_CONTEXT_FORCE_TAGGED_SVA, &mm->context.flags)) > return -EINTR; > > should be EINVAL? Yes. My bad. Will fix. -- Kiryl Shutsemau / Kirill A. Shutemov