Re: [PATCH 40/50] KVM: PPC: Implement MMU notifiers for Book3S HV guests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08.01.2012, at 14:29, Avi Kivity wrote:

> On 01/04/2012 03:10 AM, Alexander Graf wrote:
>> From: Paul Mackerras <paulus@xxxxxxxxx>
>> 
>> 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.


Alex

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux