Re: [PATCH 6/6] KVM: MMU: trace pte prefetch

From: Xiao Guangrong
Date: Thu Jun 17 2010 - 03:31:24 EST




Avi Kivity wrote:

>> @@ -2066,11 +2071,16 @@ static void direct_pte_prefetch(struct
>> kvm_vcpu *vcpu, u64 *sptep)
>> pfn = gfn_to_pfn_atomic(vcpu->kvm, gfn);
>> if (is_error_pfn(pfn)) {
>> kvm_release_pfn_clean(pfn);
>> + trace_pte_prefetch(true, PREFETCH_ERR_GFN2PFN);
>> break;
>> }
>>
>
> What about virtual addresses and gptes? They can be helpful too.
>

OK, will do it in the next version.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/