]> git.ipfire.org Git - thirdparty/linux.git/commit - arch/x86/kvm/lapic.c
kvm: x86: Extended struct kvm_lapic_irq with msi_redir_hint for MSI delivery
authorJames Sullivan <sullivan.james.f@gmail.com>
Thu, 19 Mar 2015 01:26:03 +0000 (19:26 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 7 May 2015 09:29:44 +0000 (11:29 +0200)
commit93bbf0b8bc80f0ee3c629542a4dea14a3537760b
tree25ea3c1c17e61add6335ca92e182e4d1cc588d6c
parentb7cb22317305883d50f930cd6bf2fdb37df930c1
kvm: x86: Extended struct kvm_lapic_irq with msi_redir_hint for MSI delivery

Extended struct kvm_lapic_irq with bool msi_redir_hint, which will
be used to determine if the delivery of the MSI should target only
the lowest priority CPU in the logical group specified for delivery.
(In physical dest mode, the RH bit is not relevant). Initialized the value
of msi_redir_hint to true when RH=1 in kvm_set_msi_irq(), and initialized
to false in all other cases.

Added value of msi_redir_hint to a debug message dump of an IRQ in
apic_send_ipi().

Signed-off-by: James Sullivan <sullivan.james.f@gmail.com>
Reviewed-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/ioapic.c
arch/x86/kvm/irq_comm.c
arch/x86/kvm/lapic.c
arch/x86/kvm/x86.c