https://github.com/torvalds/linux
Raw File
Tip revision: 7e27d6e778cd87b6f2415515d7127eba53fe5d02 authored by Linus Torvalds on 12 June 2010, 02:14:04 UTC
Linux 2.6.35-rc3
Tip revision: 7e27d6e
kvm_timer.h

struct kvm_timer {
	struct hrtimer timer;
	s64 period; 				/* unit: ns */
	atomic_t pending;			/* accumulated triggered timers */
	bool reinject;
	struct kvm_timer_ops *t_ops;
	struct kvm *kvm;
	struct kvm_vcpu *vcpu;
};

struct kvm_timer_ops {
	bool (*is_periodic)(struct kvm_timer *);
};

enum hrtimer_restart kvm_timer_fn(struct hrtimer *data);
back to top