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=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 8B587C433B4 for ; Wed, 7 Apr 2021 15:24:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 593DC61222 for ; Wed, 7 Apr 2021 15:24:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353482AbhDGPYc (ORCPT ); Wed, 7 Apr 2021 11:24:32 -0400 Received: from mga02.intel.com ([134.134.136.20]:37622 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231579AbhDGPYb (ORCPT ); Wed, 7 Apr 2021 11:24:31 -0400 IronPort-SDR: LmHq+2fnsAQ5px8h9OhWAgAxhlraOm13asDDg0eg2s0txJz9gvlw+MesJNJNnvg1NRbqMs3SUR CLEyOJIX4igQ== X-IronPort-AV: E=McAfee;i="6000,8403,9947"; a="180464345" X-IronPort-AV: E=Sophos;i="5.82,203,1613462400"; d="scan'208";a="180464345" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2021 08:24:21 -0700 IronPort-SDR: 75+igPB4OKJBCJ97rxPE+M2owKYHWZCa5M+tjR8PpGDzpaCeP58tFetO/OuJiJsJtRew3Xa5gP w6eIs/VM6UOQ== X-IronPort-AV: E=Sophos;i="5.82,203,1613462400"; d="scan'208";a="415314114" Received: from tassilo.jf.intel.com ([10.54.74.11]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2021 08:24:19 -0700 Date: Wed, 7 Apr 2021 08:24:17 -0700 From: Andi Kleen To: Sean Christopherson Cc: Andy Lutomirski , Andy Lutomirski , "Kuppuswamy, Sathyanarayanan" , Peter Zijlstra , Dave Hansen , Kirill Shutemov , Kuppuswamy Sathyanarayanan , Dan Williams , Raj Ashok , LKML Subject: Re: [PATCH v3 1/1] x86/tdx: Handle MWAIT, MONITOR and WBINVD Message-ID: <20210407152417.GM1285835@tassilo.jf.intel.com> References: <4DD05B91-13B3-4842-A215-C8DC6F34F219@amacapital.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Hmm, I forgot about that quirk. I would expect the TDX Module to inject a #GP > for that case. I can't find anything in the spec that confirms or denies that, > but injecting #VE would be weird and pointless. > > Andi/Sathya, the TDX Module spec should be updated to state that XSETBV will > #GP at CPL!=0. If that's not already the behavior, the module should probably > be changed... I asked about this and the answer was that XSETBV behaves architecturally inside a TD (no #VE), thus there is nothing to document. -Andi