lapic.h (ce40cd3fc7fa40a6119e5fe6c0f2bc0eb4541009) | lapic.h (f077825a8758d79838a757dafb79adcdd047ef3a) |
---|---|
1#ifndef __KVM_X86_LAPIC_H 2#define __KVM_X86_LAPIC_H 3 4#include <kvm/iodev.h> 5 6#include <linux/kvm_host.h> 7 8#define KVM_APIC_INIT 0 --- 145 unchanged lines hidden (view full) --- 154} 155 156static inline bool kvm_lowest_prio_delivery(struct kvm_lapic_irq *irq) 157{ 158 return (irq->delivery_mode == APIC_DM_LOWEST || 159 irq->msi_redir_hint); 160} 161 | 1#ifndef __KVM_X86_LAPIC_H 2#define __KVM_X86_LAPIC_H 3 4#include <kvm/iodev.h> 5 6#include <linux/kvm_host.h> 7 8#define KVM_APIC_INIT 0 --- 145 unchanged lines hidden (view full) --- 154} 155 156static inline bool kvm_lowest_prio_delivery(struct kvm_lapic_irq *irq) 157{ 158 return (irq->delivery_mode == APIC_DM_LOWEST || 159 irq->msi_redir_hint); 160} 161 |
162static inline int kvm_lapic_latched_init(struct kvm_vcpu *vcpu) 163{ 164 return kvm_vcpu_has_lapic(vcpu) && test_bit(KVM_APIC_INIT, &vcpu->arch.apic->pending_events); 165} 166 |
|
162bool kvm_apic_pending_eoi(struct kvm_vcpu *vcpu, int vector); 163 164void wait_lapic_expire(struct kvm_vcpu *vcpu); 165 166#endif | 167bool kvm_apic_pending_eoi(struct kvm_vcpu *vcpu, int vector); 168 169void wait_lapic_expire(struct kvm_vcpu *vcpu); 170 171#endif |