From: Takuya Yoshikawa Subject: Re: [PATCH 1/1 v2] KVM: MMU: Optimize guest page table walk Date: Wed, 27 Apr 2011 00:13:06 +0900 Message-ID: <20110427001306.0f6eb09f.takuya.yoshikawa@gmail.com> References: <20110422003222.9d08aee3.takuya.yoshikawa@gmail.com> <20110422003444.5b3a876a.takuya.yoshikawa@gmail.com> <4DB52B1B.5080407@web.de> <20110425173215.740417ae.yoshikawa.takuya@oss.ntt.co.jp> <4DB53BA8.60401@web.de> <20110426135035.5f569397.yoshikawa.takuya@oss.ntt.co.jp> <4DB66791.50403@web.de> <20110426234034.ab2ed524.takuya.yoshikawa@gmail.com> <4DB6DCA0.1000303@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Jan Kiszka , Takuya Yoshikawa , mtosatti@redhat.com, kvm@vger.kernel.org, xiaoguangrong@cn.fujitsu.com, Joerg.Roedel@amd.com To: Avi Kivity Return-path: Received: from mail-pv0-f174.google.com ([74.125.83.174]:40325 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756885Ab1DZPNL (ORCPT ); Tue, 26 Apr 2011 11:13:11 -0400 Received: by pvg12 with SMTP id 12so479053pvg.19 for ; Tue, 26 Apr 2011 08:13:10 -0700 (PDT) In-Reply-To: <4DB6DCA0.1000303@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: > Please post a simple patch that uses two get_user()s for that case > (64-bit pte on 32-bit host). Then work with the x86 tree to see if > they'll accept 64-bit get_user(), and once they do, we can go back to a > simple get_user() again. > > btw, I think we can use __get_user() here since the address must have > been already validated. Yes, I thought that at first. But don't we need to care KVM's address translation bugs? Takuya