Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3709543pxj; Tue, 11 May 2021 10:09:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0RsmsJMb5nKZaEU0fqrZjixewR5cnMw2/F++eIrEGgAUnUyELmUCEs86ud1a7o76+Bv6Q X-Received: by 2002:a2e:5819:: with SMTP id m25mr25070526ljb.144.1620752979560; Tue, 11 May 2021 10:09:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620752979; cv=none; d=google.com; s=arc-20160816; b=WSMMqTCTjzZ3aSRrxrVKR6CLekxIw/SQuUeqMsMTvhw4UtM9xUmuxCu0AiEw6CPhHq 96hUuGYR8HJx5PlrlPq9Mae9HE9AEyYIXSUA22DGCTNEAM4XN/u++puZXWeWQK/QorEF 5CoCCmyiiBbZF7+jOsSoP4PPPda2Ap7kiBuMLeaUt1VywdwR6qazzTDKI/p7iiUAV7Bl Z8/TmwATQrBh1RjkJV64NZowSTQOtyZx/Bvp/H2wxXrgbUQX3wnZnzp7b1S+hSJOiXpP MC73EZ00WNpUQw+1DaaLWt5HPvZJzfA+8HX7jUpupvwVx44qTYGDagSV+M/eYiJujGlx qDrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=Y0TjHiFz14xT/QSywDdPn1S9YpxlRe9cEKkt44Hy4H8=; b=iuip4YNfX4uMQsqZt5Ip5kRCz/en3ByYG/zU+DsU5CfGehy74SxKUeQKSU0ct1RBLy 5MeYKhzSie4PvsjnrPcY48DEtByr59eRoyAOspRfwrlAd8efiFTDNKBj26Xt7Bi+abJE MOjnrQx3/ezj1jg3Lt7uFiDtBC0L4nN90Zy4Cfr0vuZVUz0FZrV3oRTIkGFs7mwYpABk 2KY6HAtvEOEPxLqJ21YTFU3GGr7AitDh+D42iqmQczBFY74Q79CcwPEzACOQVIpCkiJt nAssgatl2jC6VLjJBZBlDdRSnOFKaOYdGNcbmFd1DoNDQZJ6WbXqHbjt0iE1g2Onsisj 840A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b23si21676195ljj.550.2021.05.11.10.09.08; Tue, 11 May 2021 10:09:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231517AbhEKRI3 (ORCPT + 99 others); Tue, 11 May 2021 13:08:29 -0400 Received: from mga02.intel.com ([134.134.136.20]:28322 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230315AbhEKRI3 (ORCPT ); Tue, 11 May 2021 13:08:29 -0400 IronPort-SDR: 6SY2a8gniQ5+PYMG/Oc3v3DhIUGgKdPyQ8p7qaQLcWdJeGtgV1yTSKmpw2ixyIyNhp40LNv5BV 6fLvtDSuNBGw== X-IronPort-AV: E=McAfee;i="6200,9189,9981"; a="186630991" X-IronPort-AV: E=Sophos;i="5.82,291,1613462400"; d="scan'208";a="186630991" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2021 10:06:04 -0700 IronPort-SDR: weymawFcanMxkM6LY4sr8WB9ZE8k5jsqr5i1HbyWA8RJwWYBl3PL6utJRuiyppqhJRw5gGLrX0 1icAVvzumQIQ== X-IronPort-AV: E=Sophos;i="5.82,291,1613462400"; d="scan'208";a="434688159" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.212.131.161]) ([10.212.131.161]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2021 10:06:03 -0700 Subject: Re: [RFC v2 16/32] x86/tdx: Handle MWAIT, MONITOR and WBINVD To: Dave Hansen , Dan Williams Cc: Kuppuswamy Sathyanarayanan , Peter Zijlstra , Andy Lutomirski , Tony Luck , Kirill Shutemov , Kuppuswamy Sathyanarayanan , Raj Ashok , Sean Christopherson , Linux Kernel Mailing List References: <0e577692-101e-38f7-ebe2-2e7222016a9f@linux.intel.com> <43e0a5cc-721a-04f1-50b6-b1319da10bac@intel.com> <01b0e007-6af6-ca2e-2a0d-7ff4ca2a2927@linux.intel.com> <4456b0d0-c392-4691-2963-c349369158c3@intel.com> From: Andi Kleen Message-ID: <497d9293-9111-5d2e-2d19-7343467ff9cd@linux.intel.com> Date: Tue, 11 May 2021 10:06:02 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <4456b0d0-c392-4691-2963-c349369158c3@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org need anything else than what #GP already does. > How do these end up in practice? Do they still say "general protection > fault..."? Yes, but there's a #VE specific message before it that prints the exit reason. > > Isn't that really mean for anyone that goes trying to figure out what > caused these? If they see a "general protection fault" from WBINVD and > go digging in the SDM for how a #GP can come from WBINVD, won't they be > sorely disappointed? They'll see both the message and also that it isn't a true #VE in the backtrace. -Andi