Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp317849pxj; Thu, 20 May 2021 10:01:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnRhHhfmrZOl+DTMbmeaJVEF6HsZwCfnsKmjRS5rTK5yAfJO0MtSe4F8Gei543AIAcHFQN X-Received: by 2002:a6b:5a16:: with SMTP id o22mr6931115iob.63.1621530067127; Thu, 20 May 2021 10:01:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621530067; cv=none; d=google.com; s=arc-20160816; b=lTKuG/2xPK/jp+/XZDlJzmd8r3h110qkwrY6oal8tvupqxUa4TxpWQ6ZR5iRY7WrHO /Z0m+AfbndUwDsq8HNON7ZE2NzC2xAWR6BOVVcpst7qk1Q1L2DvFKUOWluQvP+9gfAWd Ub/9k2iYYfXktvoDHXgdZUKV7w5isR5Pn0NvAEo/isPRkDYQxfPxG4T/BakGZrZFkZ/n QMbM8avo7ts8vLmQPJ/X6GRiLGtoD188chCUvQM1eSv7Kle6bdO24nfIc2DGDSwVIUkr didmWqWJUAVcn96WaES3m8+7R7TiMY+B+NUB9kYUW5tJcB1BxgoCn3btXJHbtjgrDMY8 xS1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=XN0KVjrZHQNAp4floqlRnA9InqWCr8Nn/WaTDhZGHb8=; b=K1xDnVEnZBPWIwXgsWzwyjpkD6vKC/uMa9+alrYlag9fnQS3Cf2wDQMkbH5IFRIwx/ D6Fl3BinfCwSFzKfe5XvEZTkrU1Avex9Q6nklSC1iuC4qLQQQ17qQd6VxzNzZ73PcWF1 Ij/OPTHIxALIvyYyqqmJhHZkasizoO6uq94ipvSIKjBb9ujrp1FyUBHpD9as2JM7h/44 fVAAiU4HW0s9jf84X2Yxl4WQjv/ZPBsO43ZlJnDMKVVBHTmwnDOWpO72TpI48RUZVxd7 JQvhtfep9zEA75dqz3T5bmdk7/1p2CdIlvn/2MfY+18mDVlz0gk9bzDtMbig+PbcAuzp dEEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aM9FqjhB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j18si2679165jaq.76.2021.05.20.10.00.52; Thu, 20 May 2021 10:01:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aM9FqjhB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235485AbhETKFH (ORCPT + 99 others); Thu, 20 May 2021 06:05:07 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:33424 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234899AbhETJ7P (ORCPT ); Thu, 20 May 2021 05:59:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1621504673; 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; bh=XN0KVjrZHQNAp4floqlRnA9InqWCr8Nn/WaTDhZGHb8=; b=aM9FqjhBRwGCI0HalTnCtbcMl5eq4QzjiChEw7WkLqKHQw8+K7Um6mIbPU/sjbhphhd1mE 9dy9A8L/qlzC9apA97Oc44oyNYVnBIVY0L+hA01/XLdDv3MvZbtBY8LVY2K0gJDnDr7j9j 7ZLqYDIDwPdW3wHQ7lQMjIV9CHtsK9k= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-45-2H1xG_LePheys97u-EhAmQ-1; Thu, 20 May 2021 05:57:51 -0400 X-MC-Unique: 2H1xG_LePheys97u-EhAmQ-1 Received: by mail-wm1-f70.google.com with SMTP id b206-20020a1c1bd70000b02901713122405eso1242319wmb.1 for ; Thu, 20 May 2021 02:57:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=XN0KVjrZHQNAp4floqlRnA9InqWCr8Nn/WaTDhZGHb8=; b=g+2LATuz0vW7dsK+kyEKDzE00GnMwGGppXeBLROwHIF9/3jmK/VJUvrFCqkjfC7MRw yjxZw1vvj443fAbUeqKAYRTFaj/p8kw6Th58NmULbG/0YmNbxBuEL2LFNBvpoTws++PP fH9BwB4ESGRIKKLwFsQvxhL2+xDHt03DN6MbsDpkTfpATnxjq4r8oEZk4wmtroB7t/Tc EOv7A69UVlzegxGzeQwCq9V7rAbl6ybqgiH1LseNiG0Q8IOpV4XlaMj1izO35EyZeQ5p BrnUjrbqE6+WkmDAKxufIvmhmW+ZBLushEDY2dp2Ln7i1JS5JYnVS5AM3bWHQ+wXAcWx XW+A== X-Gm-Message-State: AOAM532JJVY6rDWCTZyQbsm1eMXHREWNY5xthjXrJn4YNnu+oWZZN3VQ 5Bn/77sKqBVpTvn8TBDvVfrKL2DJWe+y/tsBsMFJeaY7xu4kUpu48bXA1uC10iMtQndTvKJBPbm 23mFSSoRZ4h1o07n5JAXaCqfJ X-Received: by 2002:a7b:ce84:: with SMTP id q4mr2803865wmj.149.1621504670707; Thu, 20 May 2021 02:57:50 -0700 (PDT) X-Received: by 2002:a7b:ce84:: with SMTP id q4mr2803849wmj.149.1621504670510; Thu, 20 May 2021 02:57:50 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id a11sm2607506wrr.48.2021.05.20.02.57.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 May 2021 02:57:49 -0700 (PDT) Subject: Re: [PATCH 5.10 005/289] KVM: x86/mmu: Remove the defunct update_pte() paging hook To: Pavel Machek , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Yu Zhang , Sean Christopherson References: <20210517140305.140529752@linuxfoundation.org> <20210517140305.340027792@linuxfoundation.org> <20210519195651.GA14212@amd> From: Paolo Bonzini Message-ID: <02d72616-2e95-f6cd-403c-60d5f2dfb3f1@redhat.com> Date: Thu, 20 May 2021 11:57:48 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210519195651.GA14212@amd> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/05/21 21:56, Pavel Machek wrote: > Hi! > >> From: Sean Christopherson >> >> commit c5e2184d1544f9e56140791eff1a351bea2e63b9 upstream. >> >> Remove the update_pte() shadow paging logic, which was obsoleted by >> commit 4731d4c7a077 ("KVM: MMU: out of sync shadow core"), but never >> removed. As pointed out by Yu, KVM never write protects leaf page > > First, this is cleanup, not a bugfix. It was reported to also fix a bug. Commit 4731d4c7a077 is 2008 vintage, so it is certainly in 5.10. Paolo > Second, AFAICT 4731d4c7a077 ("KVM: MMU: out of sync shadow core") is > not in 5.10, so this will break stuff according to the changelog.