KVM: X86: Implement PV IPIs in linux guest
authorWanpeng Li <wanpengli@tencent.com>
Mon, 23 Jul 2018 06:39:52 +0000 (14:39 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Aug 2018 15:59:22 +0000 (17:59 +0200)
commitaaffcfd1e82d3378538408d0310b7424b98d8f81
tree22101f976e8eac588ce0ae1fade89df4c50204ab
parentd63bae079b6426afc998c5ea76d9cde8d8c98303
KVM: X86: Implement PV IPIs in linux guest

Implement paravirtual apic hooks to enable PV IPIs for KVM if the "send IPI"
hypercall is available.  The hypercall lets a guest send IPIs, with
at most 128 destinations per hypercall in 64-bit mode and 64 vCPUs per
hypercall in 32-bit mode.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Wanpeng Li <wanpengli@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/uapi/asm/kvm_para.h
arch/x86/kernel/kvm.c
include/uapi/linux/kvm_para.h