hw/misc/ivshmem-pci: Improve error handling
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 0 repliesNew
- v22 patches 2 repliesSuperseded
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | hw/misc/ivshmem-pci: Handle error from kvm_irqchip_add_irqfd_notifier_gsi()hw/ | +9 | 0 replies | |
| 2/2 | hw/misc/ivshmem-pci: Check error after setup_interrupt() in process_msg_connect()hw/ | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
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)