diff options
author | Robert Mustacchi <rm@joyent.com> | 2011-06-29 16:40:43 -0700 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2011-06-29 16:40:43 -0700 |
commit | 6a628cf7e18cbd6f033b729ebf006e5577c1db5f (patch) | |
tree | 6d69e29ceeb7ac9a44e52b9591eef9da7985b037 /kvm_lapic.h | |
parent | 718babe9a9a850decf23060a9c32133e7bb943cf (diff) | |
download | illumos-kvm-6a628cf7e18cbd6f033b729ebf006e5577c1db5f.tar.gz |
HVM-445 kvm_lapic.h should be cstyle clean
Diffstat (limited to 'kvm_lapic.h')
-rw-r--r-- | kvm_lapic.h | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/kvm_lapic.h b/kvm_lapic.h index 74fe5dc..c88f513 100644 --- a/kvm_lapic.h +++ b/kvm_lapic.h @@ -1,5 +1,5 @@ #ifndef __KVM_X86_LAPIC_H -#define __KVM_X86_LAPIC_H +#define __KVM_X86_LAPIC_H #include "kvm_iodev.h" #include "kvm_timer.h" @@ -33,18 +33,18 @@ extern void kvm_lapic_sync_to_vapic(struct kvm_vcpu *); extern int kvm_apic_has_interrupt(struct kvm_vcpu *); extern int kvm_apic_accept_pic_intr(struct kvm_vcpu *); extern int kvm_get_apic_interrupt(struct kvm_vcpu *); -extern int kvm_apic_match_dest(struct kvm_vcpu *vcpu, struct kvm_lapic *source, - int short_hand, int dest, int dest_mode); +extern int kvm_apic_match_dest(struct kvm_vcpu *, struct kvm_lapic *, + int, int, int); -extern int kvm_lapic_enabled(struct kvm_vcpu *vcpu); +extern int kvm_lapic_enabled(struct kvm_vcpu *); extern uint64_t kvm_lapic_get_cr8(struct kvm_vcpu *); -extern int kvm_lapic_find_highest_irr(struct kvm_vcpu *vcpu); -extern int kvm_apic_set_irq(struct kvm_vcpu *vcpu, struct kvm_lapic_irq *irq); +extern int kvm_lapic_find_highest_irr(struct kvm_vcpu *); +extern int kvm_apic_set_irq(struct kvm_vcpu *, struct kvm_lapic_irq *); extern int kvm_apic_compare_prio(struct kvm_vcpu *, struct kvm_vcpu *); -extern void kvm_lapic_set_tpr(struct kvm_vcpu *vcpu, unsigned long cr8); -extern void kvm_lapic_set_base(struct kvm_vcpu *vcpu, uint64_t value); -extern int kvm_lapic_set_vapic_addr(struct kvm_vcpu *, struct kvm_vapic_addr *); +extern void kvm_lapic_set_tpr(struct kvm_vcpu *, unsigned long); +extern void kvm_lapic_set_base(struct kvm_vcpu *, uint64_t); +extern int kvm_lapic_set_vapic_addr(struct kvm_vcpu *, struct kvm_vapic_addr *); extern int kvm_x2apic_msr_write(struct kvm_vcpu *, uint32_t, uint64_t); extern int kvm_x2apic_msr_read(struct kvm_vcpu *, uint32_t, uint64_t *); @@ -52,19 +52,11 @@ extern int kvm_x2apic_msr_read(struct kvm_vcpu *, uint32_t, uint64_t *); extern int kvm_hv_vapic_msr_write(struct kvm_vcpu *, uint32_t, uint64_t); extern int kvm_hv_vapic_msr_read(struct kvm_vcpu *, uint32_t, uint64_t *); - - -extern uint64_t kvm_get_apic_base(struct kvm_vcpu *vcpu); -extern void kvm_set_apic_base(struct kvm_vcpu *vcpu, uint64_t data); +extern uint64_t kvm_get_apic_base(struct kvm_vcpu *); +extern void kvm_set_apic_base(struct kvm_vcpu *, uint64_t); extern int kvm_irq_delivery_to_apic(struct kvm *, struct kvm_lapic *, struct kvm_lapic_irq *); extern void kvm_apic_post_state_restore(struct kvm_vcpu *); -/* - * XXX: needs to be in vmx -extern int vm_need_virtualize_apic_accesses(struct kvm *kvm); - */ - - #endif |