Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4373933rwl; Mon, 3 Apr 2023 04:11:55 -0700 (PDT) X-Google-Smtp-Source: AKy350YYM9C6qA0zaOVAnFGE69b5iUnhX/hT5NWHfVHWwdpsW9S/joPC2QuOE0NPT8Iy1jM6/tvn X-Received: by 2002:aa7:db53:0:b0:4fb:aa0a:5b72 with SMTP id n19-20020aa7db53000000b004fbaa0a5b72mr33933541edt.5.1680520315153; Mon, 03 Apr 2023 04:11:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680520315; cv=none; d=google.com; s=arc-20160816; b=mGLsPfxf8qoVR2yJD3ZayrlguLa3DhRpV09aqc880a/DJSvCK+EKyx3obXPVNg2JKA bu/FY2dwDoXKiyJzRC3dPe4+JUjN9zrf4i6TRW2dB2R3cGr9ADjUhPrf9TqX/wkbcyXV lncVuDOzqGYvUgIVipfbSfTWNDR41XKC3VA4uh8zjSoJGtc2MFYMyUEzsvZ2B7gng8KL 6pzHcq7rJ+tO3cl5lb9Km/A15eFNZdK0F7u49y45G9CNu2aq/MQHoqcrpYD1uPwGwqNn sMupaceqZDjYBp/7cPedJ+pvxkae4PjwkkDWr2/QgmyI3+oTlWV3ZhT1QBLaP4EIBAdl RRvA== 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:dkim-signature; bh=EkHM10IzopIX7pHXLErDqrhGeNWmDqCXXs4ieDYkauI=; b=X9emzMd3LxzS/6pi8pNJHREL7WPgbUWRwalQgGzR1AbjDQHpNvlR93nsFmToQJ9Cmr kWjxmFeXo+AGFVQQ9ZY1RUQ8wHl0Reh4ZXoZp8Ntxqy3vUPsxYrRosvvQSAgKaZKygkC l+2kqiNHBhgo7Dd1cUn5xpSzB6yhaY3UHKKFEDU30pmWG8Spw6BZSih8eLZ/BLwaIeBu Qoq7VGhCRa0h6EZb3UjKdM5tH/R2LtALgFVXmS/m8+wJOY2umdnVtuKE0j+31Z0kKYXa OMKcK/xlIlO1e4WBNqV2QgVJWPuSGjUh/fOD5UIGx9C+xTmnIGxXxQ5gGYMWHY9+bato LgKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=G4gAwzXE; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n13-20020a05640204cd00b00501e4be89e6si265043edw.280.2023.04.03.04.11.30; Mon, 03 Apr 2023 04:11:55 -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=@intel.com header.s=Intel header.b=G4gAwzXE; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232136AbjDCLLM (ORCPT + 99 others); Mon, 3 Apr 2023 07:11:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231790AbjDCLLK (ORCPT ); Mon, 3 Apr 2023 07:11:10 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4992D30FB for ; Mon, 3 Apr 2023 04:10:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680520232; x=1712056232; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=gXsYvqw9RPVvwxej0jm0sxGMXH6vFybKsaGhd9VshZQ=; b=G4gAwzXEd+ZKEes9tXnF/B+SkN5iol76P+08bJx1Be1Kse7oHFQocFoG jVCdobYesirh3l1kp6YM6QgQ8fW1Y/yDWDItjf3hUzJEVeurUBMkRtpLR /+8zDKEot43QtSeLVxcdWjKO6hA7iWfW66v+8ogP19wqfvMRAjlFtmRRT +A7tW4I8N/5oBvdMGiIWXb6HQcmmWyEgojMBdkJTxedkjhMKj/6VS89eq OmNjW5Aw3DjesOceglH0Nj4XTzLaCvG8ZOQMrSjgf6h1huLNUn/2qGtDR +POspHj3wpqH7g61jzhEqOzZ1LS3l8IkEoNPg+Ym5K5UabYAEsEVUAsay Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10668"; a="330440419" X-IronPort-AV: E=Sophos;i="5.98,314,1673942400"; d="scan'208";a="330440419" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2023 04:10:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10668"; a="860164459" X-IronPort-AV: E=Sophos;i="5.98,314,1673942400"; d="scan'208";a="860164459" Received: from amomin-mobl1.ger.corp.intel.com (HELO box.shutemov.name) ([10.251.210.227]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2023 04:10:26 -0700 Received: by box.shutemov.name (Postfix, from userid 1000) id E079A10D7B3; Mon, 3 Apr 2023 14:10:23 +0300 (+03) From: "Kirill A. Shutemov" To: Dave Hansen , Andy Lutomirski , Peter Zijlstra Cc: x86@kernel.org, Kostya Serebryany , Andrey Ryabinin , Andrey Konovalov , Alexander Potapenko , Taras Madan , Dmitry Vyukov , "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, "Kirill A. Shutemov" Subject: [PATCH 0/2] Couple of trivial fixes for LAM vs. SVA interaction Date: Mon, 3 Apr 2023 14:10:18 +0300 Message-Id: <20230403111020.3136-1-kirill.shutemov@linux.intel.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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 - Do not allow to set FORCE_TAGGED_SVA bit for other process; - Use EINVAL instead of EINTR for LAM enabling failure due to SVA; Kirill A. Shutemov (2): x86/mm/iommu/sva: Fix error code for LAM enabling failure due to SVA x86/mm/iommu/sva: Do not allow to set FORCE_TAGGED_SVA bit from outside arch/x86/kernel/process_64.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.39.2