From: "Maciej S. Szmigiero" Date: Thu, 11 Nov 2021 23:52:47 +0000 Subject: Re: [PATCH v5.5 29/30] KVM: Wait 'til the bitter end to initialize the "new" memslot Message-Id: <676299e2-a59b-2af0-7e6a-b2b47b7765e0@oracle.com> List-Id: References: <20211104002531.1176691-1-seanjc@google.com> <20211104002531.1176691-30-seanjc@google.com> In-Reply-To: <20211104002531.1176691-30-seanjc@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Sean Christopherson Cc: James Morse , Alexandru Elisei , Suzuki K Poulose , Atish Patra , David Hildenbrand , Cornelia Huck , Claudio Imbrenda , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-mips@vger.kernel.org, kvm@vger.kernel.org, kvm-ppc@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Ben Gardon , Marc Zyngier , Huacai Chen , Aleksandar Markovic , Paul Mackerras , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , Paolo Bonzini On 04.11.2021 01:25, Sean Christopherson wrote: > Initialize the "new" memslot in the !DELETE path only after the various > sanity checks have passed. This will allow a future commit to allocate > @new dynamically without having to copy a memslot, and without having to > deal with freeing @new in error paths and in the "nothing to change" path > that's hiding in the sanity checks. > > No functional change intended. > > Signed-off-by: Sean Christopherson > --- Reviewed-by: Maciej S. Szmigiero