Re: [PATCH 2/5] KVM: SVM: Optimize nested svm msrpm merging

From: Avi Kivity
Date: Fri Feb 26 2010 - 08:59:52 EST


On 02/26/2010 03:30 PM, Joerg Roedel wrote:

So the msrpm bitmap changes dynamically for each vcpu? Great, make it
fully dynamic then, changing the vcpu->arch.msrpm only from within its
vcpu context. No need for atomic ops.
The msrpm_offsets table is global. But I think I will follow Avis
suggestions and create a static direct_access_msrs list and generate the
msrpm_offsets at module_init. This solves the problem of two independent
lists too.


But with LBR virt, maybe a fully dynamic approach is better. Just have static lists for updating the msrpm and offset table dynamically.

--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.

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