From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C23DC433ED for ; Wed, 19 May 2021 20:49:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1635C611AE for ; Wed, 19 May 2021 20:49:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229565AbhESUu1 (ORCPT ); Wed, 19 May 2021 16:50:27 -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.