Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp838621rwd; Wed, 7 Jun 2023 07:33:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7n2SrHdV/QDf8iktOueSYt1TpiMvYYgf7plpvMXffSGhrJgZlQEBRfNpY0ha0qYaqvwoFK X-Received: by 2002:a05:6a00:2403:b0:652:7b99:df30 with SMTP id z3-20020a056a00240300b006527b99df30mr6126521pfh.25.1686148401312; Wed, 07 Jun 2023 07:33:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686148401; cv=none; d=google.com; s=arc-20160816; b=fynIQ2O4OsjbPrw+UFoEeYwpSJrCOssfpj9DMVVy4g+VPnyiLcBLMBK/vF6+0HM7eu tyMC8cL5rfXk5RADIz9OgW0bNTmbAbgFm4MBRDpqTitNP9nX9cxWi7aVx3CWlnYDt/BS ld6WQTlBPD7L26d+rDRysozMVH92I1nzIUUVlaBfDrcV7/LciGZN4FuL0GL8tEgE0Il0 DzmSnxuHH5keSBi9cyKQB6pORfhBi/eUKFp5//f1+6mgH/6pdvNvF2yQQvcyjHNm+dRZ LWIBymqA+fq1VB3rUX0KWU+tdHW/pmzghW4nphPtvnw9qkZl7/m2a4hcm3UQYBNQPxBB RHEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=260b7i+MTNu0YLxTmzjLFhNtomFyIftfbG7teufVYQo=; b=wj4s0IoiKbbebyMKBuAyUxpwHghCy3cQd4ISxRIdqV3uuv/T09mtWv//jGxN7Hpdts TBiX/YJ0p4fSRQQ2MFXBC91z+bf/WwMjHHrRg+vpNPT6GPTIZzxNjQ+CBFWAyxU2HXhE jv5m/b3pBYd4ITmqzJWtzkfjfVKEl6wA7OQuB+3RMcSGuxtRrEEhBcfDNeiGfmavNyqZ wVGSwc6Rg5RGE8biYrfHoM7z4qQ+3/ysGXEkXzsU5PPmYtbGDxBV+DneKBql8Hp9waXG Tsmulf9ziiVWgI5ytUKNNQ7GpLlZrqeyVn3xoiakagw8CJgq+EdaIxdMHYN6LqiMOTzt FO8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SiGtxUCV; 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 c18-20020a056a00009200b0066181b3b6ebsi1647078pfj.243.2023.06.07.07.33.09; Wed, 07 Jun 2023 07:33:21 -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=SiGtxUCV; 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 S241065AbjFGOQG (ORCPT + 99 others); Wed, 7 Jun 2023 10:16:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240039AbjFGOQA (ORCPT ); Wed, 7 Jun 2023 10:16:00 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DD9F1BEA; Wed, 7 Jun 2023 07:15:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686147358; x=1717683358; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=iQiCIoJzhIO4mN9Mh3ygJf9p/9Yr66SOAT+qlykhdT8=; b=SiGtxUCVRtdRS1liazLn6mNl7F4KB4rwujD347NGYkgxjSQdEElCOTSm yW9GavB66chIH48HB9nZOx3SfrBykW+OoRqr/8PlnGCFqDbwMigY4RbS+ AiZv4ByEIrHMjwn4Xo8nDkGUyCgjRAVq+LaEyBV9Mqpv5/4hEng1nNd8U 6WyuPoPZ+EDA3XivQhrqLuoxMGN8ZALLgKkaFSSKQR7OX4wDdGfB8n4+Q Xt+/eGuaE2zAUzLvMQZ6rvFcKoEHMkOrbF5Q9oHCTTWaSJCBVpgncpE/F CIfu09kTao1nHKL1pfOnROOwr6+OdX9AfyRMX3LgoQkVuNDGn4NHKLLUs w==; X-IronPort-AV: E=McAfee;i="6600,9927,10734"; a="355851828" X-IronPort-AV: E=Sophos;i="6.00,224,1681196400"; d="scan'208";a="355851828" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2023 07:15:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10734"; a="822171650" X-IronPort-AV: E=Sophos;i="6.00,224,1681196400"; d="scan'208";a="822171650" Received: from vsmyers-mobl2.amr.corp.intel.com (HELO [10.212.146.233]) ([10.212.146.233]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2023 07:15:55 -0700 Message-ID: Date: Wed, 7 Jun 2023 07:15:54 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v11 04/20] x86/cpu: Detect TDX partial write machine check erratum Content-Language: en-US To: Kai Huang , linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: linux-mm@kvack.org, kirill.shutemov@linux.intel.com, tony.luck@intel.com, peterz@infradead.org, tglx@linutronix.de, seanjc@google.com, pbonzini@redhat.com, david@redhat.com, dan.j.williams@intel.com, rafael.j.wysocki@intel.com, ying.huang@intel.com, reinette.chatre@intel.com, len.brown@intel.com, ak@linux.intel.com, isaku.yamahata@intel.com, chao.gao@intel.com, sathyanarayanan.kuppuswamy@linux.intel.com, bagasdotme@gmail.com, sagis@google.com, imammedo@redhat.com References: <86f2a8814240f4bbe850f6a09fc9d0b934979d1b.1685887183.git.kai.huang@intel.com> From: Dave Hansen In-Reply-To: <86f2a8814240f4bbe850f6a09fc9d0b934979d1b.1685887183.git.kai.huang@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham 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 6/4/23 07:27, Kai Huang wrote: > TDX memory has integrity and confidentiality protections. Violations of > this integrity protection are supposed to only affect TDX operations and > are never supposed to affect the host kernel itself. In other words, > the host kernel should never, itself, see machine checks induced by the > TDX integrity hardware. At the risk of patting myself on the back by acking a changelog that I wrote 95% of: Reviewed-by: Dave Hansen