Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6053783rwb; Tue, 22 Nov 2022 08:12:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf4wiJ9MaT8VD5rT0CX1hGbKTT0HjLoMVWckGHW3lzltmy3dPRVPw5LDesPAMeTKNoieRJsv X-Received: by 2002:a17:90a:5801:b0:218:90b5:d1f2 with SMTP id h1-20020a17090a580100b0021890b5d1f2mr18769556pji.142.1669133522263; Tue, 22 Nov 2022 08:12:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669133522; cv=none; d=google.com; s=arc-20160816; b=FI4QgGO6EZHlbQRXWJc4V3HrLU0eXniyfcltnqYz3gOg+zho/lAc6FqpQ2R7uVo6vK SrsC6QVb5EUaj/BqqQTgsTJTE2/1tnHXDsizRwVWUqVV4zsKuMjGCTALZzEIdskLBU5z cAlwb62IOPOBidZa8vxrFoPFfbfhNAQsemqJ8BbFk3+XC4WW8RTp8+k5/XL/vbBRsjXq ZO7DAFTwjdC4CsQ4IdXJzG8UxMRhFAQ7iABJucQ1g6MCcPHnVa0xbP/zx2OxXB1FzK2D 8so0ObZdBucEBouhGAp01NGOx2t6tKWfU9xmtz+1BCAhguHNvokeXPWYwAxByLFESOVu DqGw== 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=tjc6Wa2J5uyfJysreZv34SSyM7pyO9IImkHg2zGmMhY=; b=OYKR3J6/uF4YIO6t1u8Q3aVmOdPPPU7KBdx9TmKg+1Mm9t7xcnY+tyVv2c5N1QH7Z6 Gg+yTOx/uT9796bQS0zpUYx6+AyzFN04gPstz5HFeUAj0Y0jiDngqc+uRPpYJ2VG1umM FvYH6/54T111P8Csx6mwU51uAjj8DkahlkL2QrYLFXI5mS84pXo+hzuKs0OT/M86SqyA iinL+W7Za8v5jDm1cSV1V0qnQtT5XS14oiDjw2A3ICZUSxhGzprhjwWL9BpJUXp+qLE1 e7nlggCrZBv5U9JWA+MHHc9oT3OMWPvlKtUwHvrBrvfzyqdcK0v/FWwbtBeTMCogzR7X qqfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ejhBbwm7; 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 x24-20020a63db58000000b0047751f6c725si8876127pgi.159.2022.11.22.08.11.47; Tue, 22 Nov 2022 08:12:02 -0800 (PST) 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=ejhBbwm7; 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 S234006AbiKVPVF (ORCPT + 90 others); Tue, 22 Nov 2022 10:21:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233896AbiKVPVB (ORCPT ); Tue, 22 Nov 2022 10:21:01 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DEC268691; Tue, 22 Nov 2022 07:21:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669130460; x=1700666460; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=7pZC/dz8/S5EuOYF3Mhliy+TJEj50Cth3ybWyWk6W2Q=; b=ejhBbwm7kuuF8ARU6nz3rsTzkdBWAJQxbcJjC7sdqG0BoC9Ll/0p4UrQ GImpERlD41BLTipUN378L+AqVMUy1D0+KbvvJKRCxBlnHrm/wz86HKGNt gF5s/IsXEuIsUt3im7utp062ngvX/nY5mFdzm5KXk5yHquhmW5Sd+A5XL 3mn9LWSMp8uopmDA6rNk/PstQhXwd0NukCyf7aOWcoXJTvsGGj6cKnFeM mugfUAUc5VbCIAdMH3uGX3rVqk46MuVEfbnyk61OStS2AgBXT7fVAxjOR tywmHVAdvwoUR8f6mbFFuikXmRgafrood3/l+DqM3iV7OXI7l0U7OZnI3 A==; X-IronPort-AV: E=McAfee;i="6500,9779,10539"; a="313869913" X-IronPort-AV: E=Sophos;i="5.96,184,1665471600"; d="scan'208";a="313869913" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2022 07:20:30 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10539"; a="783872775" X-IronPort-AV: E=Sophos;i="5.96,184,1665471600"; d="scan'208";a="783872775" Received: from lcano-mobl1.amr.corp.intel.com (HELO [10.255.231.75]) ([10.255.231.75]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2022 07:20:28 -0800 Message-ID: <058a6033-a5e0-771b-3c16-950fdbb8c1e5@intel.com> Date: Tue, 22 Nov 2022 07:20:28 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v7 06/20] x86/virt/tdx: Shut down TDX module in case of error Content-Language: en-US To: Peter Zijlstra , Kai Huang Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-mm@kvack.org, seanjc@google.com, pbonzini@redhat.com, dan.j.williams@intel.com, rafael.j.wysocki@intel.com, kirill.shutemov@linux.intel.com, ying.huang@intel.com, reinette.chatre@intel.com, len.brown@intel.com, tony.luck@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: <48505089b645019a734d85c2c29f3c8ae2dbd6bd.1668988357.git.kai.huang@intel.com> From: Dave Hansen In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 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_HI,SPF_HELO_NONE,SPF_NONE 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 11/22/22 01:20, Peter Zijlstra wrote: > Either the Changelog is broken or this TDX crud is worse crap than I > thought possible, because the only way to actually meet that requirement > as stated is stop_machine(). I think the changelog is broken. I don't see anything in the TDX module spec about "the SEMACALL can run concurrently on different CPUs". Shutdown, as far as I can tell, just requires that the shutdown seamcall be run once on each CPU. Concurrency and ordering don't seem to matter at all.