On 28/09/2015 07:38, Haozhong Zhang wrote: > + > +static inline void adjust_tsc_offset_guest(struct kvm_vcpu *vcpu, > + s64 adjustment) > +{ > + kvm_x86_ops->adjust_tsc_offset(vcpu, adjustment, false); > +} > + > +static inline void adjust_tsc_offset_host(struct kvm_vcpu *vcpu, s64 adjustment) > +{ > + if (vcpu->arch.tsc_scaling_ratio != kvm_default_tsc_scaling_ratio) > + WARN_ON(adjustment < 0); > + adjustment = kvm_scale_tsc(vcpu, (u64) adjustment); > + kvm_x86_ops->adjust_tsc_offset(vcpu, adjustment, true); > +} You can remove the final argument to the callback (and possibly change the callback's name to adjust_tsc_offset_guest), because it is now unused. 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