On Fri, Jun 05, 2015 at 01:20:14AM -0400, Wei Huang wrote: > + > + struct kvm_pmu_ops *(*get_pmu_ops)(void); Can't you just set kvm_pmu_ops in svm.c and vmx.c and save this call-back? Besides that the patch looks good. Joerg -- 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