Skip to content

hw/pci: fixed hotplug crash when using rombar=0 with devices having romfile

Marcel Apfelbaum qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 11 repliesIn review
  2. v32 patches 3 repliesSuperseded
  3. v21 patch 8 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch13 repliesSuperseded

Changes in v4 from the cover letter

- Fixed a typo in the commit (Eric Blake)

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2hw/pci: fixed error flow in pci_qdev_inithw/pci/pci.c+6 -12 replies
2/2hw/pci: fixed hotplug crash when using rombar=0 with devices having romfilehw/pci/pci.c+9 -08 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchEric BlakeMarkus Armbruster
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [Qemu-devel] [PATCH v4 0/2] hw/pci: fixed hotplug crash when using rombar=0 with devices having romfile

Hot-plugging a device that has a romfile (either supplied by user or built-in) using rombar=0 option is a user error,
do not allow the device to be hot-plugged.

v3 -> v4:
- Fixed a typo in the commit (Eric Blake)

v2 -> v3:
- Reverse the decision to forbid the hotplug on user error (Michael S. Tsirkin)
- Split the patch in two, first part being a separate fix (Markus Armbruster)

v1 -> v2:
After a discussion with Michael, Paolo and Alex, this patch silent drops the romfile instead of not allowing the hotplug.

Marcel Apfelbaum (2):
hw/pci: fixed error flow in pci_qdev_init
hw/pci: fixed hotplug crash when using rombar=0 with devices having
romfile

 hw/pci/pci.c | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
Signature · 1 line
1.8.3.1