hw/pci/msix: Warn on PBA writes
authorNicholas Piggin <npiggin@gmail.com>
Fri, 17 Jan 2025 17:28:40 +0000 (03:28 +1000)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 21 Feb 2025 12:18:03 +0000 (07:18 -0500)
commit44ed44aefec571041fe3b3a8b6849613a74b520a
treeac0c4033da0a2ddc0c5ded56d9761ec34a6ba0d3
parent9e837c961a883392f8c4707a8d3d2e6c6aa793b6
hw/pci/msix: Warn on PBA writes

Of the MSI-X PBA pending bits, the PCI Local Bus Specification says:

  Software should never write, and should only read
  Pending Bits. If software writes to Pending Bits, the
  result is undefined.

Log a GUEST_ERROR message if the PBA is written to by software.

Cc: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Cc: Dmitry Fleytman <dmitry.fleytman@gmail.com>
Cc: Sriram Yagnaraman <sriram.yagnaraman@ericsson.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Message-Id: <20250117172842.406338-2-npiggin@gmail.com>
Reviewed-by: Phil Dennis-Jordan <phil@philjordan.eu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/msix.c