Re: [PATCH v5 8/9] KVM: MMU: combine guest pte read between fetch and pte prefetch

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

 




Marcelo Tosatti wrote:

>>
>> Below codes read gptes in the prefetch path:
>>
>> 	index = sptep - sp->spt;
>> 	i = index & ~(PTE_PREFETCH_NUM - 1);
>> 	max = index | (PTE_PREFETCH_NUM - 1);
>>
>> 	if (PTTYPE == 32)
>> 		offset = sp->role.quadrant << PT64_LEVEL_BITS;
>>
>> 	first_pte_gpa = gfn_to_gpa(sp->gfn) +
>> 				(offset + i) * sizeof(pt_element_t);
>>
>> 	if (kvm_read_guest_atomic(vcpu->kvm, first_pte_gpa, gptep,
>> 					sizeof(gptep)) < 0)
>> 		return;
>>
>> It reads the 16 aligned items around sptep's corresponding gpte and this gpte
>> is also in this area. :-)
> 
> But you removed that in patch 8?
> 

Oh, i just want it good for review, you mean it's better let patch 7 and 8 in one patch?

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