Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp1602737lkv; Wed, 19 May 2021 13:50:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEiakMKt29Bfbzw13QF7NPhcfcwuS7Xy4yitn1uQiQLs5qbqGQTV1gbaqaOUxpwNCvc3NA X-Received: by 2002:a05:6638:134c:: with SMTP id u12mr1282015jad.67.1621457423675; Wed, 19 May 2021 13:50:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621457423; cv=none; d=google.com; s=arc-20160816; b=WR59IEnpqI5u2Yboc4QScGjEh0Chf84X/Fux2abqYTK79B7BYHtAKvbJJo8xwA50Wm 814UmZHSKxzzQimIyuHCTSbUbvPluh79PXvy+FSTEuC+ULkLoOP6zS0mzRkNZFhvgwrB 0VJ7EuKf+lZVHlEDWbvkskyJq/ovmT0ZloGoY/2UswD3E2ZmX4HJeaTwXNMjm1szCfSx jeqTx4ZqOUVb+iaBWF2ZXMIeGVBsX+Ks+VQDbH7miPYRhAOObpqOtxUXvqRqJWHygbgn ALSY4SWqNnztOkEoXCxVaupU4eMPIriZ1lMvR9gj1reh+uoVs5xOTzjCFtHPOFh9qoNd kvXg== 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=BLXG54D1OI0cgKZAilp/LWX6bnfK7e2kYWiKhz7vMl8=; b=CEj6717lOsYAqelGvthhgge7V+HaKSWv8OeuNCNchvwCAMgb3TUpaoZviDxgLQlCqh iCiAIPBeXj75e0mNjkNC4R8SyUHDN97/BltafuS8V4AW/jNMFznkmPnSE2magu9Gh8QA vmSGZo9OISfET3usn2+6bG6uKHp8p6wXonnsdvdIXRDgBM+rZpjYAx/kQdAA7c+UALSv X2Eflsp7raxawgiTt0OrRLyCM9se/ILPHJNt1Xe9fzL5oWxr7qxFBdwrPSs+y/KqGbYB QxKrVw1BOXM5YeJkrzCNnNSdRrx0voYt5J+HEcjRV6ITtFCh6FudlN+/i3lc8BIKEl0X v47w== 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 m12si380571jav.104.2021.05.19.13.50.09; Wed, 19 May 2021 13:50:23 -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 S229543AbhESUu0 (ORCPT + 99 others); Wed, 19 May 2021 16:50:26 -0400 Received: from mga02.intel.com ([134.134.136.20]:43681 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbhESUuZ (ORCPT ); Wed, 19 May 2021 16:50:25 -0400 IronPort-SDR: kdWjDbTKOZB0jBldUpMXf2YqxNfgOsIK8qDum356yV30MGhIjb7b91TR0ISGjtdwPvmqaAlaTa i3oYB4sbc46w== X-IronPort-AV: E=McAfee;i="6200,9189,9989"; a="188203176" X-IronPort-AV: E=Sophos;i="5.82,313,1613462400"; d="scan'208";a="188203176" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2021 13:49:02 -0700 IronPort-SDR: vlvBR4yYWAXNC1jO2cHTsGh3eijnJJitLO21wSAOekzigRdN0wXgHk9C6osOc9ebYHjxHA4m+3 UR4XfuxjBZnw== X-IronPort-AV: E=Sophos;i="5.82,313,1613462400"; d="scan'208";a="411887513" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.209.100.118]) ([10.209.100.118]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2021 13:49:01 -0700 Subject: Re: [RFC v2-fix-v1 1/1] x86/tdx: Add __tdx_module_call() and __tdx_hypercall() helper functions To: Sean Christopherson , "Kuppuswamy, Sathyanarayanan" Cc: Dave Hansen , Peter Zijlstra , Andy Lutomirski , Tony Luck , Kirill Shutemov , Kuppuswamy Sathyanarayanan , Dan Williams , Raj Ashok , linux-kernel@vger.kernel.org References: <3a7c0bba-cc43-e4ba-f7fe-43c8627c2fc2@intel.com> <20210519055842.2048957-1-sathyanarayanan.kuppuswamy@linux.intel.com> <568d2929-f366-e3be-96f9-0bfa91991ef2@intel.com> <02e7b229-4b6f-c1c7-bb63-48e5e9eca5db@linux.intel.com> From: Andi Kleen Message-ID: <77545da6-d534-e4c2-a60b-085705e3f0b7@linux.intel.com> Date: Wed, 19 May 2021 13:49:00 -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: 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 On 5/19/2021 1:09 PM, Sean Christopherson wrote: > On Wed, May 19, 2021, Kuppuswamy, Sathyanarayanan wrote: >> On 5/19/21 8:31 AM, Dave Hansen wrote: >>> Was this "older compiler" argument really the reason? >> It is a speculation. I haven't tried to reproduce it with old compiler. So >> I have removed that point. > It's not "older" compilers. gcc does not support R8-R15 as input/output > constraints, Yes that's true, but they can be in clobbers. So it usually just needs a mov from the input arguments for output, or a mov to the output arguments for output.