From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 1/4] KVM: MMU: don't drop spte if overwrite it from W to RO Date: Sun, 14 Nov 2010 12:52:11 +0200 Message-ID: <4CDFBF5B.10706@redhat.com> References: <4CDD173E.8010706@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Marcelo Tosatti , LKML , KVM To: Xiao Guangrong Return-path: Received: from mx1.redhat.com ([209.132.183.28]:5536 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755097Ab0KNKwW (ORCPT ); Sun, 14 Nov 2010 05:52:22 -0500 In-Reply-To: <4CDD173E.8010706@cn.fujitsu.com> Sender: kvm-owner@vger.kernel.org List-ID: On 11/12/2010 12:30 PM, Xiao Guangrong wrote: > We just need flush tlb if overwrite a writable spte with a read-only one > What are the advantages? Avoid playing with rmap, and avoid a window where the spte is missing? (they are worth the patch, just seeing if I'm not missing something) -- error compiling committee.c: too many arguments to function