Skip to content

qdev reset refactoring and pci bus reset

Isaku Yamahata qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 23 repliesIn review
  2. v17 patches 10 repliesApplied

Changes in v2 from the cover letter

- update comment

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6qbus: add functions to walk both devices and busseshw/qdev.c hw/qdev.h+57 -00 replies
2/6qdev: reset qdev along with qdev treehw/qdev.c hw/qdev.h vl.c+24 -912 replies
3/6qdev: introduce reset call back for qbus levelhw/qdev.c hw/qdev.h+11 -10 replies
4/6qdev: introduce a helper function which triggers reset from a given devicehw/qdev.c hw/qdev.h+6 -00 replies
5/6pci: make use of qdev reset frame work to pci bus reset.hw/pci.c hw/pci.h+32 -40 replies
6/6pci bridge: implement secondary bus resethw/pci_bridge.c+11 -11 reply

Reviews trailers per patch

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

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/6] qdev reset refactoring and pci bus reset

Here is v2. I updated the comments, and dropped the pci qdev reset patch.

Patch description:
The goal of this patch series is to implement secondary bus reset emulation in pci-to-pci bridge.
At first, this patch series refactors qdev reset,
and then cleans up pci bus reset. Lastly implements pci bridge control secondary bus reset bit.

This patch series is for pci bus reset, which is ported from the following repo.
git://repo.or.cz/qemu/aliguori.git qdev-refactor

Changes v1 -> v2:
- update comment

Anthony Liguori (2):
qbus: add functions to walk both devices and busses
qdev: reset qdev along with qdev tree

Isaku Yamahata (4):
qdev: introduce reset call back for qbus level
qdev: introduce a helper function which triggers reset from a given
device
pci: make use of qdev reset frame work to pci bus reset. pci bridge: implement secondary bus reset

 hw/pci.c        |   33 ++++++++++++++++++--
 hw/pci.h        |    3 ++
 hw/pci_bridge.c |   12 +++++++-
 hw/qdev.c       |   87 +++++++++++++++++++++++++++++++++++++++++++++++++------
 hw/qdev.h       |   18 +++++++++++
 vl.c            |    1 +
 6 files changed, 140 insertions(+), 14 deletions(-)