From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: [PATCH 1/2] KVM: MMU: Mark sp mmio cached when creating mmio spte Date: Wed, 13 Mar 2013 14:33:58 +0200 Message-ID: <20130313123358.GM11223@redhat.com> References: <20130312174333.7f76148e.yoshikawa_takuya_b1@lab.ntt.co.jp> <20130312174440.5d5199ee.yoshikawa_takuya_b1@lab.ntt.co.jp> <5140094F.5080700@linux.vnet.ibm.com> <20130313162816.c62899dc.yoshikawa_takuya_b1@lab.ntt.co.jp> <51402DDA.607@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Takuya Yoshikawa , mtosatti@redhat.com, kvm@vger.kernel.org To: Xiao Guangrong Return-path: Received: from mx1.redhat.com ([209.132.183.28]:49316 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756178Ab3CMMeF (ORCPT ); Wed, 13 Mar 2013 08:34:05 -0400 Content-Disposition: inline In-Reply-To: <51402DDA.607@linux.vnet.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Mar 13, 2013 at 03:42:18PM +0800, Xiao Guangrong wrote: > On 03/13/2013 03:28 PM, Takuya Yoshikawa wrote: > > On Wed, 13 Mar 2013 13:06:23 +0800 > > Xiao Guangrong wrote: > > > >> On 03/12/2013 04:44 PM, Takuya Yoshikawa wrote: > >>> This will be used not to zap unrelated mmu pages when creating/moving > >>> a memory slot later. > >> > >> How about save all mmio spte into a mmio-rmap? > > > > The problem is that other mmu code would need to care about the pointers > > stored in the new rmap list: when mmu_shrink zaps shadow pages for example. > > It is not hard... all the codes have been wrapped by *zap_spte*. > So are you going to send a patch? What do you think about applying this as temporary solution? -- Gleb.