]> bbs.cooldavid.org Git - net-next-2.6.git/blame - arch/x86/kvm/kvm_timer.h
KVM: arch/x86/kvm/kvm_timer.h checkpatch cleanup
[net-next-2.6.git] / arch / x86 / kvm / kvm_timer.h
CommitLineData
d3c7b77d
MT
1
2struct kvm_timer {
3 struct hrtimer timer;
4 s64 period; /* unit: ns */
5 atomic_t pending; /* accumulated triggered timers */
6 bool reinject;
7 struct kvm_timer_ops *t_ops;
8 struct kvm *kvm;
1ed0ce00 9 struct kvm_vcpu *vcpu;
d3c7b77d
MT
10};
11
12struct kvm_timer_ops {
0fc5c3a5 13 bool (*is_periodic)(struct kvm_timer *);
d3c7b77d
MT
14};
15
d3c7b77d 16enum hrtimer_restart kvm_timer_fn(struct hrtimer *data);