Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14A50C433EF for ; Wed, 1 Dec 2021 15:47:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351132AbhLAPt2 (ORCPT ); Wed, 1 Dec 2021 10:49:28 -0500 Received: from vps-vb.mhejs.net ([37.28.154.113]:46336 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348015AbhLAPtC (ORCPT ); Wed, 1 Dec 2021 10:49:02 -0500 Received: from MUA by vps-vb.mhejs.net with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1msRnE-0008GC-VT; Wed, 01 Dec 2021 16:45:12 +0100 To: Sean Christopherson Cc: Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Igor Mammedov , Marc Zyngier , James Morse , Julien Thierry , Suzuki K Poulose , Huacai Chen , Aleksandar Markovic , Paul Mackerras , Christian Borntraeger , Janosch Frank , David Hildenbrand , Cornelia Huck , Claudio Imbrenda , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandru Elisei , Atish Patra , Ben Gardon , kvm@vger.kernel.org, linux-kernel@vger.kernel.org References: From: "Maciej S. Szmigiero" Subject: Re: [PATCH v6 03/29] KVM: Resync only arch fields when slots_arch_lock gets reacquired Message-ID: <2154a0ce-7ec7-d9e6-d0e1-5806fba9123a@maciej.szmigiero.name> Date: Wed, 1 Dec 2021 16:45:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01.12.2021 02:07, Sean Christopherson wrote: > On Tue, Nov 30, 2021, Maciej S. Szmigiero wrote: >> From: "Maciej S. Szmigiero" >> >> There is no need to copy the whole memslot data after releasing >> slots_arch_lock for a moment to install temporary memslots copy in >> kvm_set_memslot() since this lock only protects the arch field of each >> memslot. >> >> Just resync this particular field after reacquiring slots_arch_lock. >> >> Note, this also eliminates the need to manually clear the INVALID flag >> when restoring memslots; the "setting" of the INVALID flag was an >> unwanted side effect of copying the entire memslots. >> >> Since kvm_copy_memslots() has just one caller remaining now >> open-code it instead. >> >> Signed-off-by: Maciej S. Szmigiero >> [sean: tweak shortlog, note INVALID flag in changelog, revert comment] >> Signed-off-by: Sean Christopherson > > Heh, I think you can drop my SoB? This is new territory for me, I don't know the > rules for this particular situation. > > Reviewed-by: Sean Christopherson > Will replace your SoB with your R-b on this patch then. Thanks, Maciej