From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 40/50] KVM: PPC: Implement MMU notifiers for Book3S HV guests Date: Sun, 08 Jan 2012 15:29:35 +0200 Message-ID: <4F099A3F.7070806@redhat.com> References: <1325639448-9494-1-git-send-email-agraf@suse.de> <1325639448-9494-41-git-send-email-agraf@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: kvm-ppc@vger.kernel.org, kvm list , Marcelo Tosatti , Paul Mackerras To: Alexander Graf Return-path: Received: from mx1.redhat.com ([209.132.183.28]:31972 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753462Ab2AHN3o (ORCPT ); Sun, 8 Jan 2012 08:29:44 -0500 In-Reply-To: <1325639448-9494-41-git-send-email-agraf@suse.de> Sender: kvm-owner@vger.kernel.org List-ID: On 01/04/2012 03:10 AM, Alexander Graf wrote: > From: Paul Mackerras > > This adds the infrastructure to enable us to page out pages underneath > a Book3S HV guest, on processors that support virtualized partition > memory, that is, POWER7. Instead of pinning all the guest's pages, > we now look in the host userspace Linux page tables to find the > mapping for a given guest page. Then, if the userspace Linux PTE > gets invalidated, kvm_unmap_hva() gets called for that address, and > we replace all the guest HPTEs that refer to that page with absent > HPTEs, i.e. ones with the valid bit clear and the HPTE_V_ABSENT bit > set, which will cause an HDSI when the guest tries to access them. > Finally, the page fault handler is extended to reinstantiate the > guest HPTE when the guest tries to access a page which has been paged > out. Yay! -- error compiling committee.c: too many arguments to function