From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [patch 3/4] KVM: MMU: reload request from GET_DIRTY_LOG path Date: Wed, 8 Oct 2014 16:22:31 -0300 Message-ID: <20141008192231.GA5866@amt.cnet> References: <20140709191250.408928362@amt.cnet> <20140709191611.280800634@amt.cnet> <20140721131424.GZ18167@minantech.com> <20140909152811.GA4153@amt.cnet> <20141004072332.GS26540@minantech.com> <20141006171932.GA1011@amt.cnet> <20141008065636.GU26540@minantech.com> <20141008171534.GA2651@amt.cnet> <20141008175937.GV26540@minantech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org, ak@linux.intel.com, pbonzini@redhat.com, xiaoguangrong@linux.vnet.ibm.com, avi.kivity@gmail.com To: Gleb Natapov Return-path: Received: from mx1.redhat.com ([209.132.183.28]:39985 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751517AbaJHTWy (ORCPT ); Wed, 8 Oct 2014 15:22:54 -0400 Content-Disposition: inline In-Reply-To: <20141008175937.GV26540@minantech.com> Sender: kvm-owner@vger.kernel.org List-ID: > > > > Argh, lets try again: > > > > skip_pinned = true > > ------------------ > > > > mark page dirty, keep spte intact > > > > called from get dirty log path. > > > > skip_pinned = false > > ------------------- > > reload remote mmu > > destroy pinned spte. > > > > called from: dirty log enablement, rmap write protect (unused for pinned > > sptes) > > > > > > Note this behaviour is your suggestion: > > Yes, I remember that and I thought we will not need this skip_pinned > at all. For rmap write protect case there shouldn't be any pinned pages, > but why dirty log enablement sets skip_pinned to false? Why not mark > pinned pages as dirty just like you do in get dirty log path? Because if its a large spte, it must be nuked (or marked read-only, which for pinned sptes, is not possible).