lapic.h 808 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef __KVM_IA64_LAPIC_H
  2. #define __KVM_IA64_LAPIC_H
  3. #include <linux/kvm_host.h>
  4. /*
  5. * vlsapic
  6. */
  7. struct kvm_lapic{
  8. struct kvm_vcpu *vcpu;
  9. uint64_t insvc[4];
  10. uint64_t vhpi;
  11. uint8_t xtp;
  12. uint8_t pal_init_pending;
  13. uint8_t pad[2];
  14. };
  15. int kvm_create_lapic(struct kvm_vcpu *vcpu);
  16. void kvm_free_lapic(struct kvm_vcpu *vcpu);
  17. int kvm_apic_match_physical_addr(struct kvm_lapic *apic, u16 dest);
  18. int kvm_apic_match_logical_addr(struct kvm_lapic *apic, u8 mda);
  19. int kvm_apic_match_dest(struct kvm_vcpu *vcpu, struct kvm_lapic *source,
  20. int short_hand, int dest, int dest_mode);
  21. int kvm_apic_compare_prio(struct kvm_vcpu *vcpu1, struct kvm_vcpu *vcpu2);
  22. int kvm_apic_set_irq(struct kvm_vcpu *vcpu, struct kvm_lapic_irq *irq);
  23. #define kvm_apic_present(x) (true)
  24. #define kvm_lapic_enabled(x) (true)
  25. #endif