On 07/22/2014 05:46 AM, Xiao Guangrong wrote:

>> +            if (is_pinned_spte(*sptep)) {
>> +                    /* don't nuke pinned sptes if page aging: return
>> +                     * young=yes instead.
>> +                     */
>> +                    if (age)
>> +                            return 1;
>> +                    mmu_reload_pinned_vcpus(kvm);
>> +            }
>>              drop_spte(kvm, step);
> 
> This has a window between zapping spte and re-pin spte, so guest will fail
> at this time.

I got it, mmu_reload_pinned_vcpus will kick all vcpus out of guest and
pin the pages again... so it is ok. :)

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

Reply via email to