From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] kvm mmu: reduce 50% memory usage Date: Fri, 30 Apr 2010 10:26:50 +0300 Message-ID: <4BDA863A.9060702@redhat.com> References: <4BD8228D.7090708@cn.fujitsu.com> <20100429180955.GA17909@amt.cnet> <4BD9D35C.5090403@redhat.com> <4BDA3F9B.8040708@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Marcelo Tosatti , LKML , kvm@vger.kernel.org To: Lai Jiangshan Return-path: Received: from mx1.redhat.com ([209.132.183.28]:13490 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933110Ab0D3RVg (ORCPT ); Fri, 30 Apr 2010 13:21:36 -0400 In-Reply-To: <4BDA3F9B.8040708@cn.fujitsu.com> Sender: kvm-owner@vger.kernel.org List-ID: On 04/30/2010 05:25 AM, Lai Jiangshan wrote: > >> It's unrelated to TDP, same issue with shadow. I think the calculation >> is correct. For example the 4th spte for a level=2 page will yield >> gfn=4*512. >> > Avi, Marcelo > Thank you very much. > > The calculation I used is correct. > Yes. btw, can you update the patch to also correct mmu.txt? > The fault is comes from the FNAME(fetch) when using shadow page. > > I have fix it in the patch > "[RFC PATCH] kvm: calculate correct gfn for small host pages which emulates large guest pages" > > (It seems that the mail lists is unreachable, did you receive it?) > The lists are down at the moment. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.