From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 08/13] KVM: MMU: fask check whether page is writable Date: Thu, 29 Mar 2012 17:49:14 +0200 Message-ID: <4F74847A.1030809@redhat.com> References: <4F742951.7080003@linux.vnet.ibm.com> <4F742A74.1050304@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Marcelo Tosatti , LKML , KVM To: Xiao Guangrong Return-path: Received: from mx1.redhat.com ([209.132.183.28]:50521 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932719Ab2C2PtW (ORCPT ); Thu, 29 Mar 2012 11:49:22 -0400 In-Reply-To: <4F742A74.1050304@linux.vnet.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: On 03/29/2012 11:25 AM, Xiao Guangrong wrote: > Using PTE_LIST_WRITE_PROTECT bit in rmap store the write-protect status to > avoid unnecessary shadow page walking Does kvm_set_pte_rmapp() need adjustment? > Also if no shadow page is indirect, the page is write-free > > > + if (!vcpu->kvm->arch.indirect_shadow_pages) > + return 0; > + Best in its own little patch. -- error compiling committee.c: too many arguments to function