From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Is there shadow page table cache during context switch? Date: Sun, 11 Jul 2010 15:12:45 +0300 Message-ID: <4C39B53D.30308@redhat.com> References: <4C385FB2.6060402@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Xiao Guangrong , kvm@vger.kernel.org To: "Gu, Zhongshu" Return-path: Received: from mx1.redhat.com ([209.132.183.28]:1418 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751523Ab0GKMMy (ORCPT ); Sun, 11 Jul 2010 08:12:54 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 07/10/2010 04:11 PM, Gu, Zhongshu wrote: > > Thank you for your answer. There is another thing that i am not sure. > Is there any mechanism in the kvm to make sure that it will zap the > mmu root's pages if the process that use this root has terminated in > the guest? Or does it just use kvm_mmu_free_some_pages to make sure > that the number of free mmu pages is above the specified limit? > The root will not be zapped on process termination (kvm is not aware of guest processes). However, if the page is written to several times without being used, kvm will unshadow the page. -- error compiling committee.c: too many arguments to function