]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86: Explicitly treat routing entry type changes as changes
authorSean Christopherson <seanjc@google.com>
Fri, 4 Apr 2025 19:38:18 +0000 (12:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:46:57 +0000 (07:46 +0200)
commit38cfa866b7acba62acab22db53d2cb314b15f3ed
tree7b0fe91780a699d4da00c4b6c99ed3a08d72dc01
parent05a5c6b0e8d3312c7db44d3939e18c034923fc93
KVM: x86: Explicitly treat routing entry type changes as changes

commit bcda70c56f3e718465cab2aad260cf34183ce1ce upstream.

Explicitly treat type differences as GSI routing changes, as comparing MSI
data between two entries could get a false negative, e.g. if userspace
changed the type but left the type-specific data as-is.

Fixes: 515a0c79e796 ("kvm: irqfd: avoid update unmodified entries of the routing")
Cc: stable@vger.kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-ID: <20250404193923.1413163-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/x86.c