From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: KVM: guest: only batch user pte updates Date: Wed, 11 Feb 2009 13:56:04 +0200 Message-ID: <4992BCD4.7040505@redhat.com> References: <20090210214532.GA4082@amt.cnet> <4991FD0D.1070108@goop.org> <20090210224141.GA4471@amt.cnet> <49920A68.5030408@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Marcelo Tosatti , kvm-devel , Rusty Russell , Zachary Amsden To: Jeremy Fitzhardinge Return-path: Received: from mx2.redhat.com ([66.187.237.31]:45023 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753467AbZBKL4Q (ORCPT ); Wed, 11 Feb 2009 06:56:16 -0500 In-Reply-To: <49920A68.5030408@goop.org> Sender: kvm-owner@vger.kernel.org List-ID: Jeremy Fitzhardinge wrote: >> >> Yes. It seems however that only set_pte_at/pte_update/_defer are >> used under significatly long lazy mmu sections (long as in number of >> updates). Is it worthwhile to bother (and risk) batching kernel pte >> updates ? >> > > Well, that depends on how expensive each update is. For something > like kunmap atomic, I think combining the clear+tlb flush probably is > worthwhile. I agree, kmap_atomic() is fairly common. -- error compiling committee.c: too many arguments to function