Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1075975lqo; Fri, 17 May 2024 09:54:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXDmiLHiRaMX5VxeEYqSmy3o6ugB1/JY3GPn8jVM1E4BRllB1zzyZ1gnvzo1/S+f//0NTtyeNDW2UozYzNKhFRRfVVtb2F9k8v23bKBaA== X-Google-Smtp-Source: AGHT+IHr8ufuqN+xrJbXTpaV3tfCvF6AFFWm+UgEl5RywQ8nsGC7S35lFnJ8qBobDUFsFJV6v6R/ X-Received: by 2002:a05:6a20:dc95:b0:1af:dae8:5ea2 with SMTP id adf61e73a8af0-1afde1978f8mr32085097637.48.1715964899222; Fri, 17 May 2024 09:54:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715964899; cv=pass; d=google.com; s=arc-20160816; b=Is6Lc3joOUB8cgnJIIlQu7wwQkCE5AIcenXgIGTJoIdkdKC/HltlphwaP8vEpI+5er +RUl2nme4vOhPpk3L45zrLcR6+ijRBUnS8a2EYQuDgXcm3HWFohkqxMGyPipsrJT/9+y cH2/YprfLSFtyO53Wjlr1HRDW8l1OviPrva9xgKDsNMBupKVRUAMul0joUdafdSaDJ8e suKcDegd6NCEYN1aBFfeGvZmr76htSVXGmBoa9FpsE+ztPT52FzLpsFTdpWmPz6WfKYx 5acl8BAMKxF7Wy0RxZuSW93u4x4xK36vVmpx8ZU2fBKwlq9tir4chBfaqEWUr1hJy/Pq Amaw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=GF1WBPKZvZgqchSylvUIsk3qQvjijLvE4tqcy73C8QE=; fh=Nq/JylrmrKm5nT6RHKEqW9xTx9dxYmidt9ZFJkeB2Mg=; b=BijAGYU27/NvcJIyK7nHl9PypDpIb3luwcyAfPUbJSHFE2h8hOeHbnRZutP+/mIkQy t2G5MZ2Qm4/86GXENS1ZH/IGl8+ykZkGydFNl4kirWzA1q1pSYAn0eS17nfZo/azi7P0 PAYxGAIrDeB2ShEAU/lpFnAYAMPKPoIgfkvAXmBJZDYb6EUO8qgJdogFSQbwkq7TggxC 1Y0BwFTsxG/8sBzwTAjopjEa0ccRtyhJe+QSTL8SJJUBN1MQ4y9o3QR2LJj0zJxaqCT/ An2hdlFQ330fyQhDuZ4hBZ4KhSAcdAGqfjaZxVqCG5BTNMsTku9JPBNmOEXi2mz4HfX7 baUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XiDOD0pv; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-182364-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182364-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-63bde1f76fbsi13575103a12.656.2024.05.17.09.54.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 09:54:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182364-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XiDOD0pv; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-182364-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182364-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id DF637B225CF for ; Fri, 17 May 2024 16:54:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C831F13DBA5; Fri, 17 May 2024 16:54:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="XiDOD0pv" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8183A13D8B0 for ; Fri, 17 May 2024 16:54:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715964864; cv=none; b=KrgnyGLTseALgdf4Gj9TZg7XMpSsDXRpgX83q+69b7Kbvsu5MjBkZzIKGCQgF6jNfwVf5D5QvwjNWfR5pmpgqDteIedG8CvkYwt4drNnySnCKr+H43v7KA6xE97CVlMtEHJWzPBt6xS5gcPOqMNwmHu8FFpzb9Eju9RJuUyaoaI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715964864; c=relaxed/simple; bh=YoPUOJ5vAGXPmQOgRbq370zFkqkHGyujhuWx2V7WA/M=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=M1pHgWyPMJTtMP0l1dwAQVvOLbhWOLwQiyP14ov7FtciWh50C3X2Uv0PBK39ucho6AagRzF4O+arKpOoXuVF1agu0LCtzkoN5W8i9imO7YbrhGp6PSQ1sTAs5WMKcoqAIp9tu0AT294lr96SRL5GIMKcoWcn/OPD5cfqDkPG+98= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=XiDOD0pv; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715964862; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=GF1WBPKZvZgqchSylvUIsk3qQvjijLvE4tqcy73C8QE=; b=XiDOD0pvTxINF7kEDpN4akaTpKTJk+SjNMgN6adu3W+ZjqjfJiULqvs8pNyIg9MC089BnE V2b6Yn8rXQUE2b9R1mLx9vBcp/tvBdKJeRH+3oY8Wwxe8nw0Mby/zoE0sRnJroDMfR0wRc zrfMBwI/F4uMpCZ8M9am/fmjobvcJaI= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-499-yhxqI4f9PxmmquR1LtHWpw-1; Fri, 17 May 2024 12:54:20 -0400 X-MC-Unique: yhxqI4f9PxmmquR1LtHWpw-1 Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-572a175621bso3355950a12.3 for ; Fri, 17 May 2024 09:54:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715964860; x=1716569660; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GF1WBPKZvZgqchSylvUIsk3qQvjijLvE4tqcy73C8QE=; b=DJFneV6rgAAvewVunAdRpoqj1gSpgFPO/lvStepCpKZsOe6RTTT4G5o8EgxRHODsDd mtHKpwOgtPGljFI82jbAhMKq0xDHP1UMoOxU5u0UZUI7kXSdCoc8UG5HmhKUpb6srTeL TRLJMDsV5HX4IOfXF8L4TxSFq+PkoJBmgnnpR2kyJSmVQ4wk4Vlkz/1T0jKY/WxnROxL tBIFuFQwDHs09d9J0nGn91945s2T0/bIxNMUB7II0zt9un9Fu6Dc1ltGb2UDQqnywIOZ JKAIMcOxYS6buvRJwdz4q1IdMGlmVbnGLsVjoiwg9AJxf3Tu+lFdXVa1lyJDv1wzuiXr QtIw== X-Forwarded-Encrypted: i=1; AJvYcCUqijcxqMJ+dg07+mgG32WwlrJcNyvkKVs2g/DzM4weKd7KQnkhdRFuY9tGytAehiQG9/aVlqOapsHGvI9mF5udmvMi/saggl7YRoJv X-Gm-Message-State: AOJu0YwgIWP2z0TRwVeJAPJLip9H6o+44tvmvk9UMjMIivRV1F6v5KXs 51ItjR8R5bID7PlMJbNXBf8lSfV/5DpcYZ6N9k1SL+lwBNgXqIaq/NxaiWbGbpdZ6mf8/XwGcFF kNuvIWMPN+1P4KHm17SpQiPIR279zDu+5MFrw3AHFvbmwIPQtD7DIp9GMI6xlDA== X-Received: by 2002:a50:d6d9:0:b0:572:9c4c:2503 with SMTP id 4fb4d7f45d1cf-5734d70378fmr15180739a12.38.1715964859811; Fri, 17 May 2024 09:54:19 -0700 (PDT) X-Received: by 2002:a50:d6d9:0:b0:572:9c4c:2503 with SMTP id 4fb4d7f45d1cf-5734d70378fmr15180720a12.38.1715964859422; Fri, 17 May 2024 09:54:19 -0700 (PDT) Received: from [192.168.10.81] ([151.95.155.52]) by smtp.googlemail.com with ESMTPSA id 4fb4d7f45d1cf-5750d24c8c1sm2249663a12.72.2024.05.17.09.54.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 May 2024 09:54:17 -0700 (PDT) Message-ID: <58b02adc-7389-4fcd-a443-1856af7886b7@redhat.com> Date: Fri, 17 May 2024 18:54:15 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 02/20] x86/tdx: Add macros to generate TDVMCALL wrappers To: "Kirill A. Shutemov" , Sean Christopherson , Dave Hansen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Josh Poimboeuf , Peter Zijlstra Cc: linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org References: <20240517141938.4177174-1-kirill.shutemov@linux.intel.com> <20240517141938.4177174-3-kirill.shutemov@linux.intel.com> From: Paolo Bonzini Content-Language: en-US Autocrypt: addr=pbonzini@redhat.com; keydata= xsEhBFRCcBIBDqDGsz4K0zZun3jh+U6Z9wNGLKQ0kSFyjN38gMqU1SfP+TUNQepFHb/Gc0E2 CxXPkIBTvYY+ZPkoTh5xF9oS1jqI8iRLzouzF8yXs3QjQIZ2SfuCxSVwlV65jotcjD2FTN04 hVopm9llFijNZpVIOGUTqzM4U55sdsCcZUluWM6x4HSOdw5F5Utxfp1wOjD/v92Lrax0hjiX DResHSt48q+8FrZzY+AUbkUS+Jm34qjswdrgsC5uxeVcLkBgWLmov2kMaMROT0YmFY6A3m1S P/kXmHDXxhe23gKb3dgwxUTp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FFuVjArBZcapSIe6NV8C4cEiSTOwE0EVEJx7gEIAMeHcVzuv2bp9HlWDp6+RkZe+vtl KwAHplb/WH59j2wyG8V6i33+6MlSSJMOFnYUCCL77bucx9uImI5nX24PIlqT+zasVEEVGSRF m8dgkcJDB7Tps0IkNrUi4yof3B3shR+vMY3i3Ip0e41zKx0CvlAhMOo6otaHmcxr35sWq1Jk tLkbn3wG+fPQCVudJJECvVQ//UAthSSEklA50QtD2sBkmQ14ZryEyTHQ+E42K3j2IUmOLriF dNr9NvE1QGmGyIcbw2NIVEBOK/GWxkS5+dmxM2iD4Jdaf2nSn3jlHjEXoPwpMs0KZsgdU0pP JQzMUMwmB1wM8JxovFlPYrhNT9MAEQEAAcLBMwQYAQIACQUCVEJx7gIbDAAKCRB+FRAMzTZp sadRDqCctLmYICZu4GSnie4lKXl+HqlLanpVMOoFNnWs9oRP47MbE2wv8OaYh5pNR9VVgyhD OG0AU7oidG36OeUlrFDTfnPYYSF/mPCxHttosyt8O5kabxnIPv2URuAxDByz+iVbL+RjKaGM GDph56ZTswlx75nZVtIukqzLAQ5fa8OALSGum0cFi4ptZUOhDNz1onz61klD6z3MODi0sBZN Aj6guB2L/+2ZwElZEeRBERRd/uommlYuToAXfNRdUwrwl9gRMiA0WSyTb190zneRRDfpSK5d usXnM/O+kr3Dm+Ui+UioPf6wgbn3T0o6I5BhVhs4h4hWmIW7iNhPjX1iybXfmb1gAFfjtHfL xRUr64svXpyfJMScIQtBAm0ihWPltXkyITA92ngCmPdHa6M1hMh4RDX+Jf1fiWubzp1voAg0 JBrdmNZSQDz0iKmSrx8xkoXYfA3bgtFN8WJH2xgFL28XnqY4M6dLhJwV3z08tPSRqYFm4NMP dRsn0/7oymhneL8RthIvjDDQ5ktUjMe8LtHr70OZE/TT88qvEdhiIVUogHdo4qBrk41+gGQh b906Dudw5YhTJFU3nC6bbF2nrLlB4C/XSiH76ZvqzV0Z/cAMBo5NF/w= In-Reply-To: <20240517141938.4177174-3-kirill.shutemov@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 5/17/24 16:19, Kirill A. Shutemov wrote: > Introduce a set of macros that allow to generate wrappers for TDVMCALL > leafs. The macros uses tdvmcall_trmapoline() and provides SYSV-complaint > ABI on top of it. Not really SYSV-compliant, more like "The macros use asm() to call tdvmcall_trampoline with its custom parameter passing convention". Paolo