lapic.h (8407884dd9164ec18ed2afc00f56b87e36c51fcf) | lapic.h (e9d90d472da97e1b1560bffb89578ba082c88a69) |
---|---|
1#ifndef __KVM_X86_LAPIC_H 2#define __KVM_X86_LAPIC_H 3 4#include "iodev.h" | 1#ifndef __KVM_X86_LAPIC_H 2#define __KVM_X86_LAPIC_H 3 4#include "iodev.h" |
5#include "kvm_timer.h" | |
6 7#include <linux/kvm_host.h> 8 | 5 6#include <linux/kvm_host.h> 7 |
8struct kvm_timer { 9 struct hrtimer timer; 10 s64 period; /* unit: ns */ 11 u32 timer_mode_mask; 12 u64 tscdeadline; 13 atomic_t pending; /* accumulated triggered timers */ 14 bool reinject; 15 struct kvm_timer_ops *t_ops; 16 struct kvm *kvm; 17 struct kvm_vcpu *vcpu; 18}; 19 20struct kvm_timer_ops { 21 bool (*is_periodic)(struct kvm_timer *); 22}; 23 |
|
9struct kvm_lapic { 10 unsigned long base_address; 11 struct kvm_io_device dev; 12 struct kvm_timer lapic_timer; 13 u32 divide_count; 14 struct kvm_vcpu *vcpu; 15 bool irr_pending; 16 /* Number of bits set in ISR. */ --- 58 unchanged lines hidden --- | 24struct kvm_lapic { 25 unsigned long base_address; 26 struct kvm_io_device dev; 27 struct kvm_timer lapic_timer; 28 u32 divide_count; 29 struct kvm_vcpu *vcpu; 30 bool irr_pending; 31 /* Number of bits set in ISR. */ --- 58 unchanged lines hidden --- |