Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2958198pxb; Tue, 24 Aug 2021 11:29:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpIVoM/zrLcK7gv3830rkyMeIuAAH/09josT8LEbEHRf6+I+Hxsuq46Rnm+CnnvpLD3o48 X-Received: by 2002:a02:c8cc:: with SMTP id q12mr35879316jao.93.1629829780283; Tue, 24 Aug 2021 11:29:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629829780; cv=none; d=google.com; s=arc-20160816; b=HcFcigDniL1U08hLDP3bm20DT6Ahc23airrMS39hF88aJowfPaN4gZpvm8lO5mkpiO geILLbzaISIbl8etAJTDMjhZmMOHLoYyrDUgTTPbgNFvGBUfCF2jtXdVYPuemW2L5Oj4 wZwpzhrnGSztcp5CGIj+edzJ3oWyCloKTwYTofOvjtW9dS9rSI7JI7DTr9U7HIWiocV5 +Jz0w/VtR49X62Lqe8tty/T6Dwo+QLt3JPjgQSq1ZvJWf+VLhbO2qUPrg6pz73fOX6Z8 zLLtQ0oRaPA6ermY7DEooqp/0+Q0Q3yIiSRGlFpENSxu79TcdQCTkivITrYQM/m+UJ6s 97+Q== 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; bh=EdwEGdBqDwMNp9jJf/2vppb1RWwgDMWaMFOhth7EGfo=; b=boCfuUdJb1Lmsk7rKWdFGLdatksPsl7b0RC6BclpvqyB3V67N//Y0JqQT9E6FNncqW lGxe5k+NS3IiHaSqttTh/jJsNiaguVVC2EuCRIsLCKhzQvZw7wiR80p1ZMR84RejmAdN xShVMZwisc+D9OobzEAcFvC83i4Rz8u5VHNX4aP2pFpqEjifFuTaTfUEYZOHtGYl6bV7 5HzxFoqFYgjV5MtMn3Bw0PlOV8zUYUf9NJrzzM9UuvueYk8CSdIzEfhLs+uRg6EwCjpV vc4lOn/KAqMOwX0yhJhbAXeaeTsZQrt7XhR42yHjcE6aV/DFwYItw4cKzxcZIqrrAVol 4kdw== 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 t4si1122438iof.69.2021.08.24.11.29.28; Tue, 24 Aug 2021 11:29:40 -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 S233669AbhHXS3U (ORCPT + 99 others); Tue, 24 Aug 2021 14:29:20 -0400 Received: from mga07.intel.com ([134.134.136.100]:26037 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232993AbhHXS3T (ORCPT ); Tue, 24 Aug 2021 14:29:19 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10086"; a="281091227" X-IronPort-AV: E=Sophos;i="5.84,347,1620716400"; d="scan'208";a="281091227" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Aug 2021 11:28:33 -0700 X-IronPort-AV: E=Sophos;i="5.84,347,1620716400"; d="scan'208";a="526728839" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.209.119.65]) ([10.209.119.65]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Aug 2021 11:28:32 -0700 Subject: Re: [PATCH v5 08/12] x86/tdx: Add HLT support for TDX guest To: "Kuppuswamy, Sathyanarayanan" , Sean Christopherson , Borislav Petkov Cc: Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Andy Lutomirski , Peter H Anvin , Dave Hansen , Tony Luck , Dan Williams , Kirill Shutemov , Kuppuswamy Sathyanarayanan , x86@kernel.org, linux-kernel@vger.kernel.org References: <20210804181329.2899708-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20210804181329.2899708-9-sathyanarayanan.kuppuswamy@linux.intel.com> From: Andi Kleen Message-ID: <67faf8de-0bd6-7991-c9bd-f36810df4bd0@linux.intel.com> Date: Tue, 24 Aug 2021 11:28:31 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> It would be helpful to use local variables to document what's up, e.g. >> >>       const bool irqs_enabled = true; >>     const bool do_sti = true; >> >>     ret = _tdx_hypercall(EXIT_REASON_HLT, irqs_enabled0, 0, 0, >> do_sti, NULL); > > Ok. I can follow your suggestion in next submission. I would use defines for the argument values, then it's self documenting. -Andi