aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/lapic.h
diff options
context:
space:
mode:
authorFeng Wu <feng.wu@intel.com>2016-01-25 16:53:33 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2016-02-09 13:24:40 +0100
commit520040146a0af36f7875ec06b58f44b19a0edf53 (patch)
treec6159cfc984ec0e77e7957c87ccc7def68e9ffa8 /arch/x86/kvm/lapic.h
parentKVM: Recover IRTE to remapped mode if the interrupt is not single-destination (diff)
downloadlinux-dev-520040146a0af36f7875ec06b58f44b19a0edf53.tar.xz
linux-dev-520040146a0af36f7875ec06b58f44b19a0edf53.zip
KVM: x86: Use vector-hashing to deliver lowest-priority interrupts
Use vector-hashing to deliver lowest-priority interrupts, As an example, modern Intel CPUs in server platform use this method to handle lowest-priority interrupts. Signed-off-by: Feng Wu <feng.wu@intel.com> Reviewed-by: Radim Krčmář <rkrcmar@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/lapic.h')
-rw-r--r--arch/x86/kvm/lapic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/lapic.h b/arch/x86/kvm/lapic.h
index 41bdb35b4b67..afccf4099b00 100644
--- a/arch/x86/kvm/lapic.h
+++ b/arch/x86/kvm/lapic.h
@@ -175,4 +175,6 @@ void wait_lapic_expire(struct kvm_vcpu *vcpu);
bool kvm_intr_is_single_vcpu_fast(struct kvm *kvm, struct kvm_lapic_irq *irq,
struct kvm_vcpu **dest_vcpu);
+int kvm_vector_to_index(u32 vector, u32 dest_vcpus,
+ const unsigned long *bitmap, u32 bitmap_size);
#endif