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 X-Spam-Level: X-Spam-Status: No, score=-7.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B40D9C48BCF for ; Wed, 9 Jun 2021 23:34:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 816C660FDC for ; Wed, 9 Jun 2021 23:34:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229715AbhFIXg3 (ORCPT ); Wed, 9 Jun 2021 19:36:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:39982 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbhFIXg2 (ORCPT ); Wed, 9 Jun 2021 19:36:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C8478613EA; Wed, 9 Jun 2021 23:34:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623281672; bh=v/OMLrZ7k1ho5plhz+nTklqFfax/AAUTQJ3FLEHqrb0=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=r9XhoTnmXYMSJWHKIs4KYbb8PWWQYhZlDxwpUA22hukjgfvytH2lFZD4XcBmLtMjF j0817xJ70upRSk0Ooh8FXVR4T54Kpo7OjI5dPSI33iXoAV3PN3VmKzYGuEUN2hLyeV J0ePjL2Cq9nCeturi+r/eUzOTYRLYPeYqPr3629SglOJfmYpIqtC1M/OD6zFgLSpat VJA6gtDMJNrjiaXaJbYZ7u6lQjaVV9W+TS0fi+wTmGeDpczh0uDBthEcJ7gbyfAaAg 885L/ML0f2Xnh4Afw7IXB8whR5z3zfNUFzK1qY8M4nyKB21xt8VmQGffXUTneBMTjn o34O/maI4AiDg== Subject: Re: [PATCH] x86/cpufeatures: Force disable X86_FEATURE_ENQCMD and remove update_pasid() To: "Luck, Tony" , Thomas Gleixner , Borislav Petkov Cc: "Yu, Fenghua" , linux-kernel , x86 , "iommu@lists.linux-foundation.org" , Ingo Molnar , H Peter Anvin , Jean-Philippe Brucker , Christoph Hellwig , Peter Zijlstra , David Woodhouse , Lu Baolu , "Hansen, Dave" , Randy Dunlap , "Raj, Ashok" , "Pan, Jacob jun" , "Jiang, Dave" , "Mehta, Sohil" , "Shankar, Ravi V" References: <1600187413-163670-1-git-send-email-fenghua.yu@intel.com> <1600187413-163670-10-git-send-email-fenghua.yu@intel.com> <87mtsd6gr9.ffs@nanos.tec.linutronix.de> <87y2bv438p.ffs@nanos.tec.linutronix.de> <36866b38ec92425b879881a88acf547b@intel.com> <7d8788a9e04d4901a03bcea11e8e842b@intel.com> From: Andy Lutomirski Message-ID: Date: Wed, 9 Jun 2021 16:34:31 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <7d8788a9e04d4901a03bcea11e8e842b@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/9/21 10:32 AM, Luck, Tony wrote: >>> I've told Fenghua to dig out the previous iteration of this patch where >>> the plan was to lazily fix the PASID_MSR in other threads in the #GP >>> handler. >> >> Blech. Also this won't work for other PASID-like features. >> >> I have a half-written patch to fix this up for real. Stay tuned. > > Andy: Any update on this? > > -Tony > Let me try to merge my pile with tglx's pile and come up with something halfway sane. 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 X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_RED, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37509C48BCD for ; Wed, 9 Jun 2021 23:34:37 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CC228613F1 for ; Wed, 9 Jun 2021 23:34:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CC228613F1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 8F4A683D35; Wed, 9 Jun 2021 23:34:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cdTIaWjDhB32; Wed, 9 Jun 2021 23:34:35 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp1.osuosl.org (Postfix) with ESMTPS id 8F88483CBB; Wed, 9 Jun 2021 23:34:35 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 5100CC000E; Wed, 9 Jun 2021 23:34:35 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) by lists.linuxfoundation.org (Postfix) with ESMTP id D2707C000B for ; Wed, 9 Jun 2021 23:34:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id B602540569 for ; Wed, 9 Jun 2021 23:34:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23oNjG9zcmyc for ; Wed, 9 Jun 2021 23:34:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp4.osuosl.org (Postfix) with ESMTPS id 28B5C40552 for ; Wed, 9 Jun 2021 23:34:33 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id C8478613EA; Wed, 9 Jun 2021 23:34:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623281672; bh=v/OMLrZ7k1ho5plhz+nTklqFfax/AAUTQJ3FLEHqrb0=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=r9XhoTnmXYMSJWHKIs4KYbb8PWWQYhZlDxwpUA22hukjgfvytH2lFZD4XcBmLtMjF j0817xJ70upRSk0Ooh8FXVR4T54Kpo7OjI5dPSI33iXoAV3PN3VmKzYGuEUN2hLyeV J0ePjL2Cq9nCeturi+r/eUzOTYRLYPeYqPr3629SglOJfmYpIqtC1M/OD6zFgLSpat VJA6gtDMJNrjiaXaJbYZ7u6lQjaVV9W+TS0fi+wTmGeDpczh0uDBthEcJ7gbyfAaAg 885L/ML0f2Xnh4Afw7IXB8whR5z3zfNUFzK1qY8M4nyKB21xt8VmQGffXUTneBMTjn o34O/maI4AiDg== Subject: Re: [PATCH] x86/cpufeatures: Force disable X86_FEATURE_ENQCMD and remove update_pasid() To: "Luck, Tony" , Thomas Gleixner , Borislav Petkov References: <1600187413-163670-1-git-send-email-fenghua.yu@intel.com> <1600187413-163670-10-git-send-email-fenghua.yu@intel.com> <87mtsd6gr9.ffs@nanos.tec.linutronix.de> <87y2bv438p.ffs@nanos.tec.linutronix.de> <36866b38ec92425b879881a88acf547b@intel.com> <7d8788a9e04d4901a03bcea11e8e842b@intel.com> From: Andy Lutomirski Message-ID: Date: Wed, 9 Jun 2021 16:34:31 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <7d8788a9e04d4901a03bcea11e8e842b@intel.com> Content-Language: en-US Cc: "Yu, Fenghua" , Randy Dunlap , "Jiang, Dave" , "Raj, Ashok" , "Shankar, Ravi V" , Jean-Philippe Brucker , Peter Zijlstra , x86 , linux-kernel , Christoph Hellwig , "Hansen, Dave" , "iommu@lists.linux-foundation.org" , Ingo Molnar , "Pan, Jacob jun" , H Peter Anvin , David Woodhouse X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" On 6/9/21 10:32 AM, Luck, Tony wrote: >>> I've told Fenghua to dig out the previous iteration of this patch where >>> the plan was to lazily fix the PASID_MSR in other threads in the #GP >>> handler. >> >> Blech. Also this won't work for other PASID-like features. >> >> I have a half-written patch to fix this up for real. Stay tuned. > > Andy: Any update on this? > > -Tony > Let me try to merge my pile with tglx's pile and come up with something halfway sane. _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu