Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1219231lqo; Fri, 17 May 2024 15:01:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXGxxsqQjHoV8+Gzj93au6sfo5UcjH5X5EzeVmh/uE2xrWuaWFP6W2owWPoyo380lRE00Q6WfxqiH2CwsXZKUikocDBBdP0V9P7U0ee4A== X-Google-Smtp-Source: AGHT+IEcXlAd8tHB5uL8tjRX9/9gt+XK+/YJAd4+22aJb3VGanO8l/FpZEDOk3CjSYoDIj2mjndJ X-Received: by 2002:a05:6122:3118:b0:4d8:7970:28e6 with SMTP id 71dfb90a1353d-4df8813f821mr22901235e0c.0.1715983282837; Fri, 17 May 2024 15:01:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715983282; cv=pass; d=google.com; s=arc-20160816; b=SIGpHbxcke70OHdKwK+YMf+7P6lbKdTK5i4bTdnWnHQyve80JW9kmgiCWyB6efzgVU fWBrJsTiXfaFS6irNqSnPsiN2Rn1aMSUrHUNCNC37YIVz1g5VIvd/hxWqKZA+EuT2ibZ tgGD69y89Tm8GwH1lfHwFAYJ4k5lJgwvgvlSFGfKE0HZRO4HCOnN5oTDB+wojiR+1rC6 CosyQeZ+aB/+1HyGxcSScfT1ohWYT76DAutSpERfb26bBTJg082bCd866LwBf/NREE4w 11Me7J0EcLAjPcHWI/8X5hHuAHID9AVisiRyg4r69hfHivLxOeyUuSshRabcw3h/uzQU 685Q== 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=qdpUFXRIVfL52195MnmJDcIlCYPzvNX7uOwOv3Xc+XA=; fh=/E9If18ToqOsPPCYV+4tDQZ7VaD80O5EKbSLzAJmWvI=; b=ORcjin80qxGmTROs0XMrGpQuAE/fB9U1dTpmITIBit1/PMxfgMlRXBRRVDUicweWWe 8E36cE+WzjdfYdq8SsYo2L/tGOSqsj7zzxp/ZMkKFi03zsD5SIHW+/V88bSSSj1nJodL VMWKw4Jv/MYEK717e2YeR4FE5sS65vaYYfB/dfmsMt3lfuoC80+leilNYHKgLVda45NQ OageD6BQcGFkhTgeYRrpjupDkNN4uVnZhsAmCihd1MnYRuolwq0iaKpAkd0uYXJFByQX nKoDvGebwKAlyWUbdyEAt5Ws8xTclpLvkp0/B9NlT9uPLHyMZzDu7znngoLb07voTF8c W5HA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Z6wzOec0; 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-182664-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182664-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 71dfb90a1353d-4df7c05cc81si4132680e0c.172.2024.05.17.15.01.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 15:01:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182664-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=Z6wzOec0; 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-182664-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182664-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 7F3091C220AD for ; Fri, 17 May 2024 22:01:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57A0614198A; Fri, 17 May 2024 22:01:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Z6wzOec0" 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 C8E8C4C69 for ; Fri, 17 May 2024 22:01:10 +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=1715983272; cv=none; b=p4gKw8Y8hTIalP2xDPOyh3z7jyq4xz62ZhECO8Vi1uW/3Hn+NpFe3TZRRcKwKnjjRxkumL0Lp1ZdPPJOP9ruPBCALH+nOcaB7rpA8dFJrqyUt46mAA4fWeeHZ3folG+Iuij9m3ydnSC9+lJPo7dA1OFNTVZU5/XYayBqJdyyghg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715983272; c=relaxed/simple; bh=tKFUvI5gt7hLN6dkyDdXMdQUukxhrEOMhNZL9hIIlpY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=VDoumU6zSidV6xKfszESRf9o2SszhbL+R1fH5dVBnyZgArQVGouYom3jyth4lSyarkCI687pmZnC7gth5p1hCYv5+EGRVH6vPeE7wENtr8lyUKbSqa4P7fnmgr+7WACX8CzSFK3Dhi2y8W756Yxc3POsq8aol8WTZq133cBWFIc= 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=Z6wzOec0; 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=1715983269; 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=qdpUFXRIVfL52195MnmJDcIlCYPzvNX7uOwOv3Xc+XA=; b=Z6wzOec0L4AIPo2nU3bXjszdl0yozFbwEVxYBc5hmHqDNFOrR7Y1bQBxrLj/Nri1FbJ5Hd IMrBGb8JtxWO/9lGcNXttzzeD4bQbgnRMRgoliic6/m26ZZTe2ssDG8KCcuGSNwjypchwN 6Q6utoAtYeMT6Z64zeokbttZTKF+yho= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-99-j546UfodNQ62tI6Jq76CAQ-1; Fri, 17 May 2024 18:01:08 -0400 X-MC-Unique: j546UfodNQ62tI6Jq76CAQ-1 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-a59c2583f0bso524041566b.1 for ; Fri, 17 May 2024 15:01:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715983267; x=1716588067; 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=qdpUFXRIVfL52195MnmJDcIlCYPzvNX7uOwOv3Xc+XA=; b=jNI3/3NxlqWSsWYJwWcdXIz7t5DRalCbmdBGsO/HzUT6OJ+nF4svkmnqDgmr8zcKtt P+I36kLyzE8rNgiCqS8BUVc2oyB12JLprLiVGc82zVitHBcNLOHTkY5SDqZ4Wo60jUa/ VouM3GYFxg2+L61VJPcik8QorHZSo1VO6leVf6jrXmPorGUExNd3vlSr+ohA6u4S3IXY VE3pKOkaV/VoZD9VLlK4mT/6NQFTTB1WRYxo4qycHGbnfklCO6FWIrivOosSTH0V7ntQ oxDz4T/C5cdP+4ySANTjFM2BTVbNl4MtHw05LkOYpS7HANW+Oh/OgyxXTq2MqkXCynX4 A1rA== X-Forwarded-Encrypted: i=1; AJvYcCVjmUr4jxfSQe+Tu0cNZMheIvjH8E62sC1kQikQqdfARTM771INXL589HOptk1fTt4XEtJ/ZJ3rUuS+6PyvcQD+CvEzaFbU3ZqW/a/O X-Gm-Message-State: AOJu0YxoNBalJ/XBdFwdedxwx68l3HD1E83ABxhY5g9QhZKSHZZN/gQZ hNfj9B/2MN6H1jWgxsUbU3eIfYRhMlCIj/01OfwZ8JHq3rmw45pupa/ci7OYlzD+WIc/r36mQnV 97Zk2Kxas6pcSIR56e1tE8ohhFoXqQYkDhaAv0vOUOSZ2KsYbD35P13qgRdF7KQ== X-Received: by 2002:a17:907:7da3:b0:a59:d063:f5f3 with SMTP id a640c23a62f3a-a5a2d673401mr2047180266b.63.1715983267336; Fri, 17 May 2024 15:01:07 -0700 (PDT) X-Received: by 2002:a17:907:7da3:b0:a59:d063:f5f3 with SMTP id a640c23a62f3a-a5a2d673401mr2047178366b.63.1715983266873; Fri, 17 May 2024 15:01:06 -0700 (PDT) Received: from [192.168.10.81] ([151.95.155.52]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-a5a69148b97sm701619366b.114.2024.05.17.15.01.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 May 2024 15:01:06 -0700 (PDT) Message-ID: <58492a1a-63bb-47d2-afef-164557d15261@redhat.com> Date: Sat, 18 May 2024 00:01:05 +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: [PULL 17/19] KVM: SEV: Provide support for SNP_GUEST_REQUEST NAE event To: "Edgecombe, Rick P" , "michael.roth@amd.com" Cc: "aik@amd.com" , "kvm@vger.kernel.org" , "ashish.kalra@amd.com" , "thomas.lendacky@amd.com" , "linux-kernel@vger.kernel.org" , "seanjc@google.com" , "brijesh.singh@amd.com" References: <20240510211024.556136-1-michael.roth@amd.com> <20240510211024.556136-18-michael.roth@amd.com> <96cf4b4929f489f291b3ae8385bb3527cbdf9400.camel@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/kXmHDXxhe23gKb3dgwxUTpENDBGcfEzrzilWueOeUWiOcWuFOed/C3SyijBx3Av/lbCsHU Vx6pMycNTdzU1BuAroB+Y3mNEuW56Yd44jlInzG2UOwt9XjjdKkJZ1g0P9dwptwLEgTEd3Fo UdhA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+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: <96cf4b4929f489f291b3ae8385bb3527cbdf9400.camel@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 5/17/24 22:41, Edgecombe, Rick P wrote: > I get a build error in kvm-coco-queue with W=1: > > arch/x86/kvm/svm/sev.c: In function ‘__snp_handle_guest_req’: > arch/x86/kvm/svm/sev.c:3968:30: error: variable ‘sev’ set but not used [- > Werror=unused-but-set-variable] > 3968 | struct kvm_sev_info *sev; > | ^~~ > cc1: all warnings being treated as errors > > To fix it: > > diff --git a/arch/x86/kvm/svm/sev.c b/arch/x86/kvm/svm/sev.c > index 57c2c8025547..6beaa6d42de9 100644 > --- a/arch/x86/kvm/svm/sev.c > +++ b/arch/x86/kvm/svm/sev.c > @@ -3965,14 +3965,11 @@ static int __snp_handle_guest_req(struct kvm *kvm, gpa_t > req_gpa, gpa_t resp_gpa > sev_ret_code *fw_err) > { > struct sev_data_snp_guest_request data = {0}; > - struct kvm_sev_info *sev; > int ret; > > if (!sev_snp_guest(kvm)) > return -EINVAL; > > - sev = &to_kvm_svm(kvm)->sev_info; > - > ret = snp_setup_guest_buf(kvm, &data, req_gpa, resp_gpa); > if (ret) > return ret; I'll post a fully updated version tomorrow with all the pending fixes. Or today depending on the timezone. Paolo