From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <53EC4C17.4070806@linux.vnet.ibm.com> Date: Thu, 14 Aug 2014 13:41:43 +0800 From: Xiao Guangrong MIME-Version: 1.0 To: David Matlack CC: gleb@redhat.com, avi.kivity@gmail.com, mtosatti@redhat.com, Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 1/2] KVM: fix cache stale memslot info with correct mmio generation number References: <1407819721-27833-1-git-send-email-xiaoguangrong@linux.vnet.ibm.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: kvm-owner@vger.kernel.org List-ID: On 08/13/2014 05:18 AM, David Matlack wrote: > On Mon, Aug 11, 2014 at 10:02 PM, Xiao Guangrong > wrote: >> @@ -722,9 +719,10 @@ static struct kvm_memslots *install_new_memslots(struct kvm *kvm, >> { >> struct kvm_memslots *old_memslots = kvm->memslots; >> > > I think you want > > slots->generation = old_memslots->generation; > > here. > > On the KVM_MR_DELETE path, install_new_memslots is called twice so this > patch introduces a short window of time where the generation number > actually decreases. Yes, indeed. Thank you for pointing it out, will update.