Re: [PATCH 0/2] KVM: MMU: support VMAs that got remap_pfn_range-ed

From: Paolo Bonzini
Date: Mon Jul 04 2016 - 04:49:10 EST




On 04/07/2016 10:21, Xiao Guangrong wrote:
>>
>> /*
>> * In case the VMA has VM_MIXEDMAP set, whoever called
>> remap_pfn_range
>> * is also going to call e.g. unmap_mapping_range before the
>> underlying
>> * non-reserved pages are freed, which will then call our MMU
>> notifier.
>> * We still have to get a reference here to the page, because the
>> callers
>> * of *hva_to_pfn* and *gfn_to_pfn* ultimately end up doing a
>> * kvm_release_pfn_clean on the returned pfn. If the pfn is
>> * reserved, the kvm_get_pfn/kvm_release_pfn_clean pair will simply
>> * do nothing.
>> */
>>
>
> Excellent. I like it. :)

So is it Reviewed-by Guangrong? :)

Paolo