kvm_timer.h 349 B

1234567891011121314151617
  1. struct kvm_timer {
  2. struct hrtimer timer;
  3. s64 period; /* unit: ns */
  4. atomic_t pending; /* accumulated triggered timers */
  5. bool reinject;
  6. struct kvm_timer_ops *t_ops;
  7. struct kvm *kvm;
  8. struct kvm_vcpu *vcpu;
  9. };
  10. struct kvm_timer_ops {
  11. bool (*is_periodic)(struct kvm_timer *);
  12. };
  13. enum hrtimer_restart kvm_timer_fn(struct hrtimer *data);