]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbd87dea01fbeab7e1ce0032cddbbedcf58648ae2
tree25ea3c1c17e61add6335ca92e182e4d1cc588d6c
parentc4d214a69578cfbbcbd8028201bb31a34c4eb968
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