Skip to content

hw/misc/ivshmem-pci: Improve error handling

David Hamilton qemu-devel 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v22 patches 2 repliesSuperseded
  3. v12 patches 1 replySuperseded

Changes in v3 from the cover letter

- Added close(fd) cleanup on setup_interrupt() failure (Markus)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2hw/misc/ivshmem-pci: Handle error from kvm_irqchip_add_irqfd_notifier_gsi()hw/misc/ivshmem-pci.c+9 -40 replies
2/2hw/misc/ivshmem-pci: Check error after setup_interrupt() in process_msg_connect()hw/misc/ivshmem-pci.c+4 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] hw/misc/ivshmem-pci: Improve error handling

This series addresses two error handling issues in the ivshmem PCI device:

1. Handle the return value of kvm_irqchip_add_irqfd_notifier_gsi() which was being silently ignored.

2. Check for errors from setup_interrupt() in process_msg_connect() before continuing to ioeventfd setup.

Changes from v2:
- Added close(fd) cleanup on setup_interrupt() failure (Markus)

Changes from v1:
- Made setup_interrupt() return bool per QEMU conventions (Markus)
- Simplified errp check using bool return, dropped ERRP_GUARD()
- Dropped vector number from error message

David Hamilton (2):
hw/misc/ivshmem-pci: Handle error from
kvm_irqchip_add_irqfd_notifier_gsi()
hw/misc/ivshmem-pci: Check error after setup_interrupt() in
process_msg_connect()

 hw/misc/ivshmem-pci.c | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)
Signature · 1 line
2.50.1 (Apple Git-155)