]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/msi: Allow 15-bit MSI dest_id extension ext_dest_id_4.1
authorDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 5 Aug 2021 16:39:23 +0000 (17:39 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 6 Aug 2021 17:32:51 +0000 (18:32 +0100)
commit766082a96ac7e55f877b696caa19f587744a357b
treec17b61fcb2b34e7e7305838d815ca7b54c6c0509
parentdb83d2a658e3c6c58c5bcab691b0603129c69c90
x86/msi: Allow 15-bit MSI dest_id extension

This is a minimal adaptation and backport of commits:
 • 47bea873cf ("x86/msi: Only use high bits of MSI address for DMAR unit")
 • ab0f59c6f1 ("x86/apic: Support 15 bits of APIC ID in MSI where available")
 • 5a169bf04c ("x86/kvm: Reserve KVM_FEATURE_MSI_EXT_DEST_ID")
 • 2e008ffe42 ("x86/kvm: Enable 15-bit extension when KVM_FEATURE_MSI_EXT_DEST_ID detected")
 • 19e3d60d49 ("x86: Let x2APIC support depend on interrupt remapping or guest support")

This allows APIC IDs up to 32767 and uses the ext dest ID bits in MSI
messages if the KVM hypervisor advertises the capability.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
arch/x86/Kconfig
arch/x86/include/uapi/asm/kvm_para.h
arch/x86/kernel/apic/apic.c
arch/x86/kernel/apic/msi.c