]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: x86: Don't update IRTE entries when old and new routes were !MSI
authorSean Christopherson <seanjc@google.com>
Wed, 11 Jun 2025 22:45:39 +0000 (15:45 -0700)
committerSean Christopherson <seanjc@google.com>
Mon, 23 Jun 2025 16:50:35 +0000 (09:50 -0700)
commitcc8b13105eac969bb721c52cf95fd35818b5c54c
tree00929d6a81604c43c21db831dff0a52e5973d8bc
parentdc6adb13046abe199194f788e5d0dc41c67db5bc
KVM: x86: Don't update IRTE entries when old and new routes were !MSI

Skip the entirety of IRTE updates on a GSI routing change if neither the
old nor the new routing is for an MSI, i.e. if the neither routing setup
allows for posting to a vCPU.  If the IRTE isn't already host controlled,
KVM has bigger problems.

Link: https://lore.kernel.org/r/20250611224604.313496-38-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/irq.c