Re: [patch 2/4] KVM: MMU: allow pinning spte translations (TDP-only)

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

 



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 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