On 12/03/2010 11:49 AM, Glauber Costa wrote:
+/* This has to happen after vcpu setup*/ +void kvmclock_register_savevm(void) +{ +#ifdef KVM_CAP_ADJUST_CLOCK + if (kvmclock_enabled&& kvm_check_extension(kvm_state, KVM_CAP_ADJUST_CLOCK)) { + printf("registering kvmclock savevm section\n"); + vmstate_register(NULL, 0,&vmstate_kvmclock,&kvmclock_data); + } +#endif +} +
You should use a state change notifier for patch 1. Even better, if you put this patch first adding the state change notifier will be very clean.
Paolo -- 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