From: Takuya Yoshikawa Subject: Re: [PATCH 1/1 v2] KVM: MMU: Optimize guest page table walk Date: Sun, 24 Apr 2011 22:15:16 +0900 Message-ID: <20110424221516.3b30e360.takuya.yoshikawa@gmail.com> References: <20110422003222.9d08aee3.takuya.yoshikawa@gmail.com> <20110422003444.5b3a876a.takuya.yoshikawa@gmail.com> <4DB3D0CA.6050007@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: mtosatti@redhat.com, kvm@vger.kernel.org, yoshikawa.takuya@oss.ntt.co.jp, xiaoguangrong@cn.fujitsu.com, Joerg.Roedel@amd.com To: Avi Kivity Return-path: Received: from mail-px0-f179.google.com ([209.85.212.179]:48526 "EHLO mail-px0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757570Ab1DXNPV (ORCPT ); Sun, 24 Apr 2011 09:15:21 -0400 Received: by pxi2 with SMTP id 2so1341643pxi.10 for ; Sun, 24 Apr 2011 06:15:21 -0700 (PDT) In-Reply-To: <4DB3D0CA.6050007@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Sun, 24 Apr 2011 10:27:06 +0300 Avi Kivity wrote: > On 04/21/2011 06:34 PM, Takuya Yoshikawa wrote: > > From: Takuya Yoshikawa > > > > This patch optimizes the guest page table walk by using get_user() > > instead of copy_from_user(). > > > > With this patch applied, paging64_walk_addr_generic() has become > > about 0.5us to 1.0us faster on my Phenom II machine with NPT on. > > Applied, thanks. Care to send a follow-on patch that makes > cmpxchg_gpte() use ptep_user instead of calculating it by itself? I'll send the patch soon! I was not sure if others might be preparing it. Takuya