Re: [PATCH 07/14] KVM: x86/mmu: Walk host page tables to find THP mappings

2020-01-21 Thread Paolo Bonzini
On 08/01/20 21:24, Sean Christopherson wrote: > + > + /* > + * Manually do the equivalent of kvm_vcpu_gfn_to_hva() to avoid the > + * "writable" check in __gfn_to_hva_many(), which will always fail on > + * read-only memslots due to gfn_to_hva() assuming writes. Earlier > +

[PATCH 07/14] KVM: x86/mmu: Walk host page tables to find THP mappings

2020-01-08 Thread Sean Christopherson
Explicitly walk the host page tables to identify THP mappings instead of relying solely on the metadata in struct page. This sets the stage for using a common method of identifying huge mappings regardless of the underlying implementation (HugeTLB vs THB vs DAX), and hopefully avoids the pitfalls