Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp167613lqo; Wed, 15 May 2024 10:33:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXhSNHZBwzDMJv3sjV6zObUz/OfMeHCU8JynbiS6Sk4F9eWnNjQwJ7BztsnhMTlc0uFqqoTBWCoxjJOIvYJWUbSStHSuzGcqmp+CQzW3A== X-Google-Smtp-Source: AGHT+IGAtJlAxbAoq1rP36ICSNsKklxjZ/B35rhhARFgP0l+bRsxmZZKH5E9vCmMOMoJSSLoq24S X-Received: by 2002:a17:906:d054:b0:a59:b1dc:57a8 with SMTP id a640c23a62f3a-a5a2d5ee320mr1113763066b.33.1715794408829; Wed, 15 May 2024 10:33:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715794408; cv=pass; d=google.com; s=arc-20160816; b=DjFJIKzkKzkoB+CKy36vh92ByKYqZ8TgYajwzJ3nCInwdwDCeKbPWSDMnjBeQZk2F/ 8UHw47vtFotIhhtUEAihd4gzErwX5MFAlawe8i8aWyMjNu+828ledXrI0LTujOEf0eMZ Sms6cQEDohd2OzrGP6yFcgRYqzJun4k5PuOYvyQuT3Xfuc3TZ5KjdTvv2BJT+InFg2ue 0DJWslnlrsd8xfBWmDQmFAU5uhiXU13FDmFR49NWyCJRrddvMMocUKqoML0HfKZL0Kve odX6bPwKu67N05ULpX0RZKKGcrMgaIvsG3wlLZ47yJDr3LeCyzzd06SRfsJPEt2tJql0 Vc2Q== 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=LfUbT0bqMFevfxtZ83fq1OENBuxrXgJtBQk+DKSrhj8=; fh=KCRSqeQCjYJs/frn5w9CfR7kkZoefTwqiUe4h4BY/fA=; b=OqPlulGvS9zrWG6QNuOaZTrExqBM+y0B+HneozDsFpg83G54xwwvnJWAYeuccj9T6q 4OoXjHM9WT04LlNW69kgrks0vV/TB0/TQeSPiAgo6BSFoDf4uFVIWxqyI1MKvPOwJkN8 EpeOQMkDcpQ6+Y/6dMI0zRVUEppYiW+VXaP8KsZ0ZmhJL9Vxf+vDymadzGnD+HkchgeN AEUmeNIqQKs7x4J+ZlWD9Gdo3NHXtPWsF99fSALBRqaC67KEkHkSIowpVIjcGuE8QoAt /+ijo/QXjl3UJgyZSUZqFdnvLyxu3wqu7zOHvENrdFCv0IN2ltlPhu42E3pXBESix5D3 Q/wQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HXebnCtB; 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-180216-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180216-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17be6d94si779472966b.804.2024.05.15.10.33.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 10:33:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180216-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HXebnCtB; 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-180216-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180216-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6AE2C1F21F29 for ; Wed, 15 May 2024 17:33:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 550B045014; Wed, 15 May 2024 17:33:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="HXebnCtB" 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 8A9B247F69 for ; Wed, 15 May 2024 17:33:18 +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=1715794400; cv=none; b=SZV27X+HPGjYxj2usJCGCWIHc7pB8UQrfU2z6VIGwWy4InKySMPXzSHfMql0QvqXvSU3bvu6bC2PpO/QMugU8fNseYAQGg84f6CK1EL7GRZ+CiorrmBFH4oe7QPQSl1S55oM60CvNNq3LMq5jV3friz8TWE9mYjT+nl745u1oC8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715794400; c=relaxed/simple; bh=KQ7vgtIHJ0lCY1+lYQaLcR526DvemfZD38rR0OBQSp8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rT51Rr7I7bvDed0OCoAiLd2efTJN8uUzNdB1s6fi0oUc6+i2OjXfSesS+yXTRF81nU1OACy/vIYkWRHgF+J/Aj7us3VQdzorCc53tv4tAMz3TWIINkyAt6YDhu3AT5IL+ckdnyo67T2oRnnIV9ln5AYT4RAZyKExNS9DNkPyx24= 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=HXebnCtB; 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=1715794397; 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=LfUbT0bqMFevfxtZ83fq1OENBuxrXgJtBQk+DKSrhj8=; b=HXebnCtBqAbOpMjQP0jkMH6pqfR20DKuWjfUjcd+LA2+ErZ36yG1WsOnj6zxCp/9GfC7Fy bOBPCwHz0cU973voDf2rMqJa6VOGb1MG29VaKJt+t3jsTgFBHwRSKzTwojc9UNr6ioofT8 y80KpiCOBYuBIn5WKZjHnsVZfkXtprQ= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-353-Wn6veW2PP-e4X2kTZJk3uw-1; Wed, 15 May 2024 13:33:16 -0400 X-MC-Unique: Wn6veW2PP-e4X2kTZJk3uw-1 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-351cb5b7649so1013801f8f.3 for ; Wed, 15 May 2024 10:33:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715794395; x=1716399195; 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=LfUbT0bqMFevfxtZ83fq1OENBuxrXgJtBQk+DKSrhj8=; b=B5NWg5j4WeGk/rn8QGakUDCn87b2pe2FFjs/fs5vndikqD9OFGAL5dUMP4TY6zINdO oT0jptGF4AKlb1F7XcHUl2NaA7ynNf+wP9juGqz2rbCiHFjNOSNgEzuJ0zXCeAU13nQN lNQ2tq1ytHD8/5/2PWEi/zuGsjxbN6T8lWiZyIwReNZ4f+Ejyvyt6rvQ9q1j771Ld/Sv xmZQVnzd7yrrHlBj9IsdpZZoaqJ118pBpQSw6ZaaOGKR9PsqT2+hbtYG//Z1nUcnB+LB Rj4kz3fZnn4vBC4pamuH2VkrcvAZUBuF92HgK7cV4xiZ1D7Jd4L/NHXOs6iNXYKnlOhE 7BmA== X-Gm-Message-State: AOJu0YwbZ+hSWpt5hCp4Ig8dsadoZDYM/fHNhmSDeQd7f9nlYT7/E+zK RzvFa5iX2sB+3IYfMbk8iSZiBKkacOE9HZWmecp+esxLSRgKk3vAcz5uXDaY6izouRlkBtX2RCp bpqWNTjZDgBTga8Iu/b5obCUPuFRbkUPPMqw22aFpQqZeOgMeYUDi94gQ6rarqw== X-Received: by 2002:a05:600c:a46:b0:41f:f144:5623 with SMTP id 5b1f17b1804b1-41ff1445732mr130137655e9.14.1715794394970; Wed, 15 May 2024 10:33:14 -0700 (PDT) X-Received: by 2002:a05:600c:a46:b0:41f:f144:5623 with SMTP id 5b1f17b1804b1-41ff1445732mr130137545e9.14.1715794394619; Wed, 15 May 2024 10:33:14 -0700 (PDT) Received: from [192.168.10.81] ([151.95.155.52]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-41fccee92c7sm248384785e9.34.2024.05.15.10.33.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 May 2024 10:33:14 -0700 (PDT) Message-ID: <4d80cec1-9505-4a8c-8bd3-c996b5a42790@redhat.com> Date: Wed, 15 May 2024 19:33:13 +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 2/7] KVM: x86/mmu: Replace hardcoded value 0 for the initial value for SPTE To: Isaku Yamahata Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Sean Christopherson , Xiaoyao Li , Binbin Wu , rick.p.edgecombe@intel.com References: <20240507154459.3950778-1-pbonzini@redhat.com> <20240507154459.3950778-3-pbonzini@redhat.com> <20240515173209.GD168153@ls.amr.corp.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 UdhAQyRXGYO8oROiuh+RZ1lXp6AQ4ZjoyH8WLfTLf5g1EKCTc4C1sy1vQSdzIRu3rBIjAvnC tGZADei1IExLqB3uzXKzZ1BZ+Z8hnt2og9hb7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SSEklA50QtD2sBkmQ14ZryEyTHQ+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: <20240515173209.GD168153@ls.amr.corp.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 5/15/24 19:32, Isaku Yamahata wrote: > Paolo, how do you want me to proceed? I can send a updated patch or you can > directly fix the patch in kvm-coco-queue. I'm fine with either way. I'll fix it, thanks! Paolo > From 7910130c0a3f2c5d814d6f14d663b4b692a2c7e4 Mon Sep 17 00:00:00 2001 > Message-ID:<7910130c0a3f2c5d814d6f14d663b4b692a2c7e4.1715793643.git.isaku.yamahata@intel.com> > From: Isaku Yamahata > Date: Wed, 15 May 2024 10:19:08 -0700 > Subject: [PATCH] fixup! KVM: x86/mmu: Replace hardcoded value 0 for the > initial value for SPTE > > --- > arch/x86/kvm/mmu/tdp_mmu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/kvm/mmu/tdp_mmu.c b/arch/x86/kvm/mmu/tdp_mmu.c > index 1259dd63defc..36539c1b36cd 100644 > --- a/arch/x86/kvm/mmu/tdp_mmu.c > +++ b/arch/x86/kvm/mmu/tdp_mmu.c > @@ -626,7 +626,7 @@ static inline int tdp_mmu_zap_spte_atomic(struct kvm *kvm, > * SPTEs. > */ > handle_changed_spte(kvm, iter->as_id, iter->gfn, iter->old_spte, > - 0, iter->level, true); > + SHADOW_NONPRESENT_VALUE, iter->level, true); > > return 0; > } > > base-commit: 698ca1e403579ca00e16a5b28ae4d576d9f1b20e