From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: R/W HG memory mappings with kvm? Date: Wed, 09 Sep 2009 15:50:33 +0300 Message-ID: <4AA7A499.30208@redhat.com> References: <5f370d430907051541o752d3dbag80d5cb251e5e4d00@mail.gmail.com> <5f370d430907281606j77f0c1a6j5feb081daca187ff@mail.gmail.com> <5f370d430908122107j15acd2c7i96d476e69032fadd@mail.gmail.com> <4A8BEC92.6070105@redhat.com> <5f370d430908231459q4c8cfe3j62c49e33a160ab71@mail.gmail.com> <4A921D3C.6020809@redhat.com> <5f370d430908261934m15f39ab9mf54a19bdee1f278f@mail.gmail.com> <4A9606C5.4060607@redhat.com> <5f370d430908301533l1068692j1ed902a268f0ae41@mail.gmail.com> <4A9B8D5D.2070209@redhat.com> <5f370d430908311413m6cb5951agf8f24e00b75b1eb1@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Cam Macdonell , "kvm@vger.kernel.org list" To: Stephen Donnelly Return-path: Received: from mx1.redhat.com ([209.132.183.28]:4956 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751878AbZIIMug (ORCPT ); Wed, 9 Sep 2009 08:50:36 -0400 In-Reply-To: <5f370d430908311413m6cb5951agf8f24e00b75b1eb1@mail.gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On 09/01/2009 12:13 AM, Stephen Donnelly wrote: > >> I'm totally confused now. >> > Sorry about that. The issue is the BUG in gfn_to_pgn where the pfn is > not calculated correctly after looking up the vma. > > I still don't see how to get the physical address from the vma, since > vm_pgoff is zero, and the vm_ops are not filled. The vma does not seem > to store the physical base address. > So it seems the only place the pfns are stored are in the ptes themselves. Is there an API to recover the ptes from a virtual address? We could use that instead. -- error compiling committee.c: too many arguments to function