kvm_timer.h 389 B

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