Skip to content

Simplify initialization of PC machines

Bernhard Beschow qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 5 repliesIn review
  2. v26 patches 11 repliesSuperseded
  3. v19 patches 12 repliesSuperseded

Changes in v3 from the cover letter

* Rebase onto master
* Fix boot-order-test
* Remove the "rtc_state" link again which got accidently reintroduced
* Add patch avoiding one use of the current_machine global

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4hw/i386/pc: Remove "rtc_state" link againhw/i386/pc.c+0 -84 replies
2/4hw/i386/pc: Avoid one use of the current_machine globalhw/i386/pc.c+4 -31 reply
3/4hw/i386/pc: Set "normal" boot device order in pc_basic_device_init()hw/i386/pc.c+2 -20 replies
4/4hw/i386/pc: Inline pc_cmos_init() into pc_cmos_init_late() and remove ithw/i386/pc.c hw/i386/pc_piix.c hw/i386/pc_q35.c +1 more+0 -160 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-Daudé
1/4R-b
2/4R-b
3/4
4/4

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

Read the v3 thread

Cover letter [PATCH v3 0/4] Simplify initialization of PC machines

The series aims to simplify the initialization process of all PC-based machines by streamlining redundant code.

Since I haven't seen patches on the list so far for folding CMOS data generation into pc.c, which frees all PC machines from performing this duty explicitly, I've appended this cleanup as the last two patches.

Testing done:
* make check -> all tests pass
* make check-avocado
* I'm sending this series from within a VM containing these changes.

v3:
* Rebase onto master
* Fix boot-order-test
* Remove the "rtc_state" link again which got accidently reintroduced
* Add patch avoiding one use of the current_machine global

v2:
* Rebase onto master, leaving only patches 1, 3, and 5
* Patch 2: Rename "bus" attribute to "pcibus" (Phil)
* Patch 4: Spotted while rebasing
* Patch 6: New patch possible after [1]

Best regards,
Bernhard

[1]
https://patchew.org/QEMU/[email protected]/20240221211626
[email protected]/

Bernhard Beschow (4):
hw/i386/pc: Remove "rtc_state" link again
hw/i386/pc: Avoid one use of the current_machine global hw/i386/pc: Set "normal" boot device order in pc_basic_device_init() hw/i386/pc: Inline pc_cmos_init() into pc_cmos_init_late() and remove
it

 include/hw/i386/pc.h |  2 --
 hw/i386/pc.c         | 29 ++++++-----------------------
 hw/i386/pc_piix.c    |  2 --
 hw/i386/pc_q35.c     |  2 --
 4 files changed, 6 insertions(+), 29 deletions(-)
Signature · 1 line
2.44.0