mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-19 15:39:07 +00:00
343f94fe4d
Use kvm_apic_match_dest() in kvm_get_intr_delivery_bitmask() instead of duplicating the same code. Use kvm_get_intr_delivery_bitmask() in apic_send_ipi() to figure out ipi destination instead of reimplementing the logic. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
29 lines
708 B
C
29 lines
708 B
C
#ifndef __KVM_IA64_LAPIC_H
|
|
#define __KVM_IA64_LAPIC_H
|
|
|
|
#include <linux/kvm_host.h>
|
|
|
|
/*
|
|
* vlsapic
|
|
*/
|
|
struct kvm_lapic{
|
|
struct kvm_vcpu *vcpu;
|
|
uint64_t insvc[4];
|
|
uint64_t vhpi;
|
|
uint8_t xtp;
|
|
uint8_t pal_init_pending;
|
|
uint8_t pad[2];
|
|
};
|
|
|
|
int kvm_create_lapic(struct kvm_vcpu *vcpu);
|
|
void kvm_free_lapic(struct kvm_vcpu *vcpu);
|
|
|
|
int kvm_apic_match_physical_addr(struct kvm_lapic *apic, u16 dest);
|
|
int kvm_apic_match_logical_addr(struct kvm_lapic *apic, u8 mda);
|
|
int kvm_apic_match_dest(struct kvm_vcpu *vcpu, struct kvm_lapic *source,
|
|
int short_hand, int dest, int dest_mode);
|
|
bool kvm_apic_present(struct kvm_vcpu *vcpu);
|
|
int kvm_apic_set_irq(struct kvm_vcpu *vcpu, u8 vec, u8 dmode, u8 trig);
|
|
|
|
#endif
|