On Wed, May 05, 2010 at 10:26:43AM +0300, Avi Kivity wrote: > >+ msr_data.info.nmsrs = n; > >+ > >+ return kvm_vcpu_ioctl(env, KVM_SET_MSRS,&msr_data); > >+} > >+ > >+ > > How about a different approach? Query the supported MSRs > (KVM_GET_MSR_LIST or thereabout) and reset them (with special cases > for the TSC, and the old clock MSRs when the new ones are present)? I didn't went that route because I was unsure that every one of them would be resetable by writing 0 on it. And if we are going to special case the most part of it, then there is no point in doing it. If you think it is doable to special case just the tsc, then I am fine. -- 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