From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Date: Sun, 08 Jan 2012 15:24:55 +0000 Subject: Re: [PATCH 40/50] KVM: PPC: Implement MMU notifiers for Book3S HV Message-Id: <4F09B547.3090607@redhat.com> List-Id: References: <1325639448-9494-1-git-send-email-agraf@suse.de> <1325639448-9494-41-git-send-email-agraf@suse.de> <4F099A3F.7070806@redhat.com> <6B52A9A6-2F07-4311-B398-338F798D05BC@suse.de> In-Reply-To: <6B52A9A6-2F07-4311-B398-338F798D05BC@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Alexander Graf Cc: kvm-ppc@vger.kernel.org, kvm list , Marcelo Tosatti , Paul Mackerras On 01/08/2012 05:15 PM, Alexander Graf wrote: > On 08.01.2012, at 14:29, Avi Kivity wrote: > > > 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! > > Half-yay, yes :). It does not work on 970, so we still have a target that doesn't support it. It's okay not to support some features for older cpus. Is the 970 even interesting from a virt perspective? -- error compiling committee.c: too many arguments to function 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 17:24:55 +0200 Message-ID: <4F09B547.3090607@redhat.com> References: <1325639448-9494-1-git-send-email-agraf@suse.de> <1325639448-9494-41-git-send-email-agraf@suse.de> <4F099A3F.7070806@redhat.com> <6B52A9A6-2F07-4311-B398-338F798D05BC@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]:25490 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752727Ab2AHPZA (ORCPT ); Sun, 8 Jan 2012 10:25:00 -0500 In-Reply-To: <6B52A9A6-2F07-4311-B398-338F798D05BC@suse.de> Sender: kvm-owner@vger.kernel.org List-ID: On 01/08/2012 05:15 PM, Alexander Graf wrote: > On 08.01.2012, at 14:29, Avi Kivity wrote: > > > 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! > > Half-yay, yes :). It does not work on 970, so we still have a target that doesn't support it. It's okay not to support some features for older cpus. Is the 970 even interesting from a virt perspective? -- error compiling committee.c: too many arguments to function