From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Vogel Subject: Re: [PATCH] KVM: Document mmu Date: Thu, 22 Apr 2010 09:13:58 +0200 Message-ID: <4BCFF736.4030707@gmail.com> References: <1271855361-9279-1-git-send-email-avi@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, Marcelo Tosatti To: Avi Kivity Return-path: Received: from mail-ww0-f46.google.com ([74.125.82.46]:36826 "EHLO mail-ww0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751918Ab0DVHOD (ORCPT ); Thu, 22 Apr 2010 03:14:03 -0400 Received: by wwb24 with SMTP id 24so4575174wwb.19 for ; Thu, 22 Apr 2010 00:14:02 -0700 (PDT) In-Reply-To: <1271855361-9279-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Avi Kivity wrote: > +Translation > +=========== > + > +The primary job of the mmu is to program the processor's mmu to translate > +addresses for the guest. Different translations are required at different > +times: > + > +- when guest paging is disabled, we translate guest physical addresses to > + host physical addresses (gpa->hpa) > +- when guest paging is enabled, we translate guest virtual addresses, to > + guest virtual addresses, to host physical addresses (gva->gpa->hpa) I think you meant 'to guest physical addresses' here.