From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiao Guangrong Subject: Re: [PATCH 03/15] KVM: x86: avoid unnecessarily guest page table walking Date: Fri, 10 Jun 2011 11:51:17 +0800 Message-ID: <4DF194B5.1050104@cn.fujitsu.com> References: <4DEE205E.8000601@cn.fujitsu.com> <4DEE20CA.90206@cn.fujitsu.com> <4DF06F5E.9070608@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Marcelo Tosatti , LKML , KVM To: Avi Kivity Return-path: Received: from cn.fujitsu.com ([222.73.24.84]:59990 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1753657Ab1FJDtR (ORCPT ); Thu, 9 Jun 2011 23:49:17 -0400 In-Reply-To: <4DF06F5E.9070608@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 06/09/2011 02:59 PM, Avi Kivity wrote: > This breaks is addr/bytes spans a page boundary. > > (the current code is also broken, but only for mmio; the new code is broken for ram as well). > > We need a gva_to_gpa() that returns a range of pages. > Thanks for you point it out, will fix it in the next version.