Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp950929rbd; Fri, 23 Feb 2024 08:26:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUYFXlDFSBieKnRRV8GBiEas1+GS0yv/y1m2IrFOqS67ATAhF5Lm9FQeJYwMHpjRAdE7BRmOCfb+BfHPQRUO0VBRF/UxKa8Snz1pPIpzQ== X-Google-Smtp-Source: AGHT+IFZQeU3IBb6iQ1EugR5dui3XPwS7NHpT9cZ6f7vShaOie/lpOVr4oVriDv4H3xWP+1oyg6K X-Received: by 2002:a05:620a:1a94:b0:787:3dd6:d85 with SMTP id bl20-20020a05620a1a9400b007873dd60d85mr374252qkb.69.1708705584833; Fri, 23 Feb 2024 08:26:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708705584; cv=pass; d=google.com; s=arc-20160816; b=nkeF6pn/8AEuk0BtKh2DRf20sbkgYrXP3dswGsKTfqWiKxUjWTY8SsRmr9mvROv3jw g5Wnzq0BNUdk3RCSHfOccjTP/lEvBWiCjEn1CKxfq+N++KwRjfReaTbbLV2QJZmxDQAV 3U0+nzrpDRrqi7BU+6FuAt0sLs+Iatv9ASR4E2PcGxlmQvsyWhugwf/ZYcrnRCOOgraH qwdTXmG0buyZNZbe1m2IlK+1KBfhYSGzsD/1SlLIeWAeNCbujEKU4XO1D7NScr0d4Wlb vuIrWwBZNBkSlZoh6lLCHrELlmDP9zQi2xGX7lvcMrbPDuCRmHsQRuL4uDko5KNkoYyQ qIbw== 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:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=940/XEmJBSZDaRCjXuufne7H+L7fc/6jI5oiCpzkdYw=; fh=v+nI0kSB/KLHXr2SU7WcKtMchwZ7HwThaDOnECANDy4=; b=ckmIrpqFoVIwgQrJJTFts7GcIXPRquEpcnoUjgg4jAejzDRJ+tVrz4zoxbvODaAXMP hg85VfufO5HffCSMmQHVEe1/4+ncpGtgNc0Su2D251x/m/b2xnTo2hXPKAYM0x8fAFIC 5Y/18byo9ud8JXNq/pe0jX3f8B54TYaIY4csO02JegnooPJlItUtbDA1Hgb34PDEh7O2 aMJrM8d+vUeS3wwD4ti0ZN9fYIRPvxTshM7lV9OHHGIH2yJZUrfPm0aGE1SCKeIw/JHW Zp8Z4aoJPwDwoaCxKeDbhcMePjhzuUAdGH26EVztUp6mKEyL7JjCzUjnBVT0tc8FKx00 XWwQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="X/aotr/I"; 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-78723-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78723-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u23-20020a05620a085700b00787b3a98db6si1376787qku.772.2024.02.23.08.26.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 08:26:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78723-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="X/aotr/I"; 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-78723-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78723-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 926871C2163C for ; Fri, 23 Feb 2024 16:26:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DFB4784FB4; Fri, 23 Feb 2024 16:26:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="X/aotr/I" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 7BD3984FB3 for ; Fri, 23 Feb 2024 16:26:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708705567; cv=none; b=ezJon0SLLgwDkgZqnI9VLrWcVSU1+p7ZsEMl5sbjrRsp2KYoYcVh6ItYbUHVKUhfy+d6aFg+QB0tR2gKfFeFf6uCrG1KfbL5pkjaPk0xAsa8YdioGOZW/g4o0G/bv7oll6qisDOVmQJEhkFmSebc0te5fM5nqnJHByjzE072/UI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708705567; c=relaxed/simple; bh=87ijvGBUVdk2XeT/USaewCYk4ORdmGu/yjVUInEeHCg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=MHmlX8zRGZ7lBHpSg4BTfvUG5q+TRpDJ3jBi4jqIK88nFS7+3x1D+KQ1Yxu8HpEJ0m/nuXjl+weSW1qT2NG6PFD9DS/w/KynE/kN8S31bBm/ABA/iZs2GLuJxI3i2pHCy+DbLPoMvfHbA6b1geeBKI3RdqGAz8C3pjtO9cDcZQ4= 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=X/aotr/I; arc=none smtp.client-ip=170.10.133.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=1708705564; 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=940/XEmJBSZDaRCjXuufne7H+L7fc/6jI5oiCpzkdYw=; b=X/aotr/I6Uzoc+ur/8Q9SbsSwhB4S9e8cXzI2hMkHqihEkrrVv2jKwxfuafP6LV9WAulwF N/wN50wX2vzSgMqlMY7GRlfrw9fC8MU7mHMockl3kiPAfa3RW2SmHljNkC9VR8xYx3t3iv JOmtIgGPOuaF/A1bCwWKUkqjr9HRIY4= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-522-5Thxf5RlPUmMW9jsBz-5Tw-1; Fri, 23 Feb 2024 11:25:59 -0500 X-MC-Unique: 5Thxf5RlPUmMW9jsBz-5Tw-1 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-a2c4e9cb449so46589966b.1 for ; Fri, 23 Feb 2024 08:25:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708705558; x=1709310358; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=940/XEmJBSZDaRCjXuufne7H+L7fc/6jI5oiCpzkdYw=; b=p/2lMKKcebHO1LLf0C0Fp1MZrzyQe/pZ7Wqy/lfTI2l0hAkqC0G7kctrRSw1ooH/Y9 7u9b0sQGU2hkrS+zRwEx9YQFBngga4D5jEduV3SRoaUIhrwEVG/HkBk3wg4mDseAbKTQ v/umOHSjs7VmodxtLzkaczuIroDSyRCUUz2Sv+EZOWNJFqu5Svnh6+iFxrwEJkva1eet GExZBxn9/7UBQOTcDVM5dch5lN9Oi9Ub4F7fSOT1Z4BbFUHInDR+rIqBtNjrXjD95yFV xrPbIQeYNcca0ni5L7DxASs3NRMg/iV8W48Yygsv2V/XiWEi94zF8OLutEIs1YEbpHWd vYLw== X-Gm-Message-State: AOJu0YzBd77TTbM8Tf/O69TOiIse8CkJ5FaT+MgfjOZILwjk3FydrUpI 2ap3g5M0/cw9x8tqCw1IZKpJMXrcihPACm4AxKfzVkBu7NUTACc3gTNS8NMiQb3Xf79GeGMRF3D tADLkCBUWwZZ8XQexF4DBCyndOn8/uSr3PlYZFbvOsLWDkxz2QDS/ODt6FzgGvw== X-Received: by 2002:a17:906:d923:b0:a41:30be:4a82 with SMTP id rn3-20020a170906d92300b00a4130be4a82mr166472ejb.61.1708705558646; Fri, 23 Feb 2024 08:25:58 -0800 (PST) X-Received: by 2002:a17:906:d923:b0:a41:30be:4a82 with SMTP id rn3-20020a170906d92300b00a4130be4a82mr166460ejb.61.1708705558322; Fri, 23 Feb 2024 08:25:58 -0800 (PST) Received: from ?IPV6:2001:b07:6468:f312:9af8:e5f5:7516:fa89? ([2001:b07:6468:f312:9af8:e5f5:7516:fa89]) by smtp.googlemail.com with ESMTPSA id ld1-20020a170906f94100b00a3e82ec0d76sm5331965ejb.113.2024.02.23.08.25.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Feb 2024 08:25:57 -0800 (PST) Message-ID: <335d6086-2269-46b5-9e45-8707529213cd@redhat.com> Date: Fri, 23 Feb 2024 17:25:57 +0100 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 v2 04/11] KVM: SEV: publish supported VMSA features Content-Language: en-US To: Sean Christopherson Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, michael.roth@amd.com, aik@amd.com References: <20240223104009.632194-1-pbonzini@redhat.com> <20240223104009.632194-5-pbonzini@redhat.com> From: Paolo Bonzini Autocrypt: addr=pbonzini@redhat.com; keydata= xsEhBFRCcBIBDqDGsz4K0zZun3jh+U6Z9wNGLKQ0kSFyjN38gMqU1SfP+TUNQepFHb/Gc0E2 CxXPkIBTvYY+ZPkoTh5xF9oS1jqI8iRLzouzF8yXs3QjQIZ2SfuCxSVwlV65jotcjD2FTN04 hVopm9llFijNZpVIOGUTqzM4U55sdsCcZUluWM6x4HSOdw5F5Utxfp1wOjD/v92Lrax0hjiX DResHSt48q+8FrZzY+AUbkUS+Jm34qjswdrgsC5uxeVcLkBgWLmov2kMaMROT0YmFY6A3m1S P/kXmHDXxhe23gKb3dgwxUTpENDBGcfEzrzilWueOeUWiOcWuFOed/C3SyijBx3Av/lbCsHU Vx6pMycNTdzU1BuAroB+Y3mNEuW56Yd44jlInzG2UOwt9XjjdKkJZ1g0P9dwptwLEgTEd3Fo UdhAQyRXGYO8oROiuh+RZ1lXp6AQ4ZjoyH8WLfTLf5g1EKCTc4C1sy1vQSdzIRu3rBIjAvnC tGZADei1IExLqB3uzXKzZ1BZ+Z8hnt2og9hb7H0y8diYfE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D2sBkmQ14ZryEyTHQ+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: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/23/24 17:07, Sean Christopherson wrote: > And unless dead code elimination isn't as effective as I think it is, > we don't even need any stubs since sev_guest() and sev_es_guest() > are __always_inline specifically so that useless code can be elided. > Or if we want to avoid use of IS_ENABLED(), we could add four stubs, > which is still well worth it. This particular #ifdef was needed to avoid a compilation failure, but I'll check your patches and include them. Paolo