Xiantao Zhang | a4f5003 | 2008-04-01 16:00:24 +0800 | [diff] [blame] | 1 | #ifndef __KVM_IA64_LAPIC_H |
| 2 | #define __KVM_IA64_LAPIC_H |
| 3 | |
| 4 | #include <linux/kvm_host.h> |
| 5 | |
| 6 | /* |
| 7 | * vlsapic |
| 8 | */ |
| 9 | struct kvm_lapic{ |
| 10 | struct kvm_vcpu *vcpu; |
| 11 | uint64_t insvc[4]; |
| 12 | uint64_t vhpi; |
| 13 | uint8_t xtp; |
| 14 | uint8_t pal_init_pending; |
| 15 | uint8_t pad[2]; |
| 16 | }; |
| 17 | |
| 18 | int kvm_create_lapic(struct kvm_vcpu *vcpu); |
| 19 | void kvm_free_lapic(struct kvm_vcpu *vcpu); |
| 20 | |
| 21 | int kvm_apic_match_physical_addr(struct kvm_lapic *apic, u16 dest); |
| 22 | int kvm_apic_match_logical_addr(struct kvm_lapic *apic, u8 mda); |
Gleb Natapov | 343f94f | 2009-03-05 16:34:54 +0200 | [diff] [blame] | 23 | int kvm_apic_match_dest(struct kvm_vcpu *vcpu, struct kvm_lapic *source, |
| 24 | int short_hand, int dest, int dest_mode); |
Gleb Natapov | e103571 | 2009-03-05 16:34:59 +0200 | [diff] [blame^] | 25 | int kvm_apic_compare_prio(struct kvm_vcpu *vcpu1, struct kvm_vcpu *vcpu2); |
Gleb Natapov | 343f94f | 2009-03-05 16:34:54 +0200 | [diff] [blame] | 26 | bool kvm_apic_present(struct kvm_vcpu *vcpu); |
Gleb Natapov | 6da7e3f | 2009-03-05 16:34:44 +0200 | [diff] [blame] | 27 | int kvm_apic_set_irq(struct kvm_vcpu *vcpu, u8 vec, u8 dmode, u8 trig); |
Xiantao Zhang | a4f5003 | 2008-04-01 16:00:24 +0800 | [diff] [blame] | 28 | |
| 29 | #endif |