Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6148295iog; Thu, 23 Jun 2022 12:20:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ufAUpdY2VxZqRcpFiZbMwbBMKbRNPGXJMNWg0PvWSFnf15Vp7IXDEI5P4rRem3mjZlYUiG X-Received: by 2002:a17:906:2b84:b0:718:6034:7562 with SMTP id m4-20020a1709062b8400b0071860347562mr9863439ejg.288.1656012028474; Thu, 23 Jun 2022 12:20:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656012028; cv=none; d=google.com; s=arc-20160816; b=0OmFsS26ikervCBNrTNgtei7iu2L5Dk8t96g7/998iEkSgOQ/cIeLQr9xdsYlC5kQ0 b9y6ACgoBHgqDQcmMSrgI6bkWWS/fXPC1PfK0OjBqpOp5LZ0jdWBXnvk1H77yyUYLh/s rO567wvmww0QgZFAURY9XSS39xrtg8rV06x8LNUAPVTsQ2FP/Qi91ReGH8kuTW8WTjsN 4GjBBcIvZLdKXjVqC2t7FEfRv3ZUqZY/zvrNV6UVSIPg5TOEG2nj3YVi5BgjB+J8zfhn QmGrNhRrUC0ePImE8+mKYOAR2HlS0O++gzMJx1KSSwxnZyS+TyhwoEND5RVDNF0OoMB/ 0NNw== 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=mPhVG13ODu/32XZYGH4C8al74ZOk3vVqbmjWt3NpoUE=; b=SgoPGa9X2GtI9NZDlsTgtHnoVjbssQNd7ar4PuYCQjwpvdNwKB+76tVupdKPsRtlHH SbPOy3p2sopV0lzabjOb0xseXjKHdBwT6tXx0bB7TOcMIj5RdYft34Ek8nC69h8HH2jd bA7xNG04IxzojoBLee+B8gpSg7S0ucBsHxumX47SnBGi96kCRJUjLiiiMKnGPw4Zqx5o TTlFznrQszWESk3KGy8nwBo87Y2eBzwMDWkvupfUKTv2HsUhf8fFgSwNgeawCXMTZ5VE h1VtpcZh6ZVOjkTrD5EGvEU6FbbstXZAtZnXX69tKx6OKFJEK56IEbmgLmI+FfKz2J8F 75IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MHuMkRKq; 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 e5-20020a17090658c500b00711ff36ad6bsi359607ejs.498.2022.06.23.12.20.02; Thu, 23 Jun 2022 12:20:28 -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=MHuMkRKq; 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 S234664AbiFWS36 (ORCPT + 99 others); Thu, 23 Jun 2022 14:29:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235866AbiFWS3q (ORCPT ); Thu, 23 Jun 2022 14:29:46 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6E8B81719; Thu, 23 Jun 2022 10:31:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656005492; x=1687541492; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=zIaYVEomzwgXfaMMISVY2yLjmfGKJg5F3MdqvIB4X34=; b=MHuMkRKqW+3jHcD6lD9LxL+WKfIux1lm5y2ZjXeaFUPapi2fT1BmLDhc mOA51qnTY+FxGOXdXWZxIxMKJphXvIYVNt9BRy7X8SQDIsh8sk+lgKkJ1 6vola/oqS661RDKukGh4Y4vln5v2GjzfQxFF3Ye8p4FcZ+kylzSsGKwCh 2NED6twObYpFqDKZ9XStoSi1UQ8RpWts4iKDle6SZ1U9M8O9m4MYTLtfU 8AD2GezN7dKpYybLvwSFLiRYgTaqwkd57iixNOFrfMPsi1M/24S0h6A67 8rqbv2y4aPUOynMNKb296wNvv2HihiXdUxJUPANO4ty9Vh9nhFpTVd0KB A==; X-IronPort-AV: E=McAfee;i="6400,9594,10387"; a="269513665" X-IronPort-AV: E=Sophos;i="5.92,216,1650956400"; d="scan'208";a="269513665" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 10:31:32 -0700 X-IronPort-AV: E=Sophos;i="5.92,216,1650956400"; d="scan'208";a="563533778" Received: from ckeane-mobl1.amr.corp.intel.com (HELO [10.209.81.98]) ([10.209.81.98]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 10:31:31 -0700 Message-ID: <9b350e82-9fcf-b871-ed6c-92848dfa484e@intel.com> Date: Thu, 23 Jun 2022 10:31:05 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCHv7 13/14] x86/tdx: Refactor try_accept_one() Content-Language: en-US To: "Kirill A. Shutemov" , Borislav Petkov , Andy Lutomirski , Sean Christopherson , Andrew Morton , Joerg Roedel , Ard Biesheuvel Cc: Andi Kleen , Kuppuswamy Sathyanarayanan , David Rientjes , Vlastimil Babka , Tom Lendacky , Thomas Gleixner , Peter Zijlstra , Paolo Bonzini , Ingo Molnar , Varad Gautam , Dario Faggioli , Mike Rapoport , David Hildenbrand , marcelo.cerri@canonical.com, tim.gardner@canonical.com, khalid.elmously@canonical.com, philip.cox@canonical.com, x86@kernel.org, linux-mm@kvack.org, linux-coco@lists.linux.dev, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220614120231.48165-1-kirill.shutemov@linux.intel.com> <20220614120231.48165-14-kirill.shutemov@linux.intel.com> From: Dave Hansen In-Reply-To: <20220614120231.48165-14-kirill.shutemov@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 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,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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/14/22 05:02, Kirill A. Shutemov wrote: > Rework try_accept_one() to return accepted size instead of modifying > 'start' inside the helper. It makes 'start' in-only argumaent and ^ argument > streamlines code on the caller side. > > Signed-off-by: Kirill A. Shutemov > Suggested-by: Borislav Petkov I'm not sure how much it actually streamlines things. The line count looks pretty similar. But, I do generally dislike implicit return values, so with that typo fixed: Reviewed-by: Dave Hansen