qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] Simplify initialization of PC machines
@ 2024-03-03 18:53 Bernhard Beschow
  2024-03-03 18:53 ` [PATCH v3 1/4] hw/i386/pc: Remove "rtc_state" link again Bernhard Beschow
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Bernhard Beschow @ 2024-03-03 18:53 UTC (permalink / raw)
  To: qemu-devel
  Cc: Philippe Mathieu-Daudé, Jason Wang, Eduardo Habkost,
	Marcel Apfelbaum, Michael S. Tsirkin, Paolo Bonzini, Sergio Lopez,
	Paul Durrant, David Woodhouse, Richard Henderson, Igor Mammedov,
	Ani Sinha, Bernhard Beschow

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/20240221211626.48190-1-philmd@linaro.org/20240221211626
.48190-10-philmd@linaro.org/

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(-)

-- 
2.44.0



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-03-05 20:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-03 18:53 [PATCH v3 0/4] Simplify initialization of PC machines Bernhard Beschow
2024-03-03 18:53 ` [PATCH v3 1/4] hw/i386/pc: Remove "rtc_state" link again Bernhard Beschow
2024-03-05 15:51   ` Philippe Mathieu-Daudé
2024-03-05 15:57   ` Peter Maydell
2024-03-05 19:54     ` Bernhard Beschow
2024-03-05 20:00       ` Michael S. Tsirkin
2024-03-03 18:53 ` [PATCH v3 2/4] hw/i386/pc: Avoid one use of the current_machine global Bernhard Beschow
2024-03-05 15:52   ` Philippe Mathieu-Daudé
2024-03-03 18:53 ` [PATCH v3 3/4] hw/i386/pc: Set "normal" boot device order in pc_basic_device_init() Bernhard Beschow
2024-03-03 18:53 ` [PATCH v3 4/4] hw/i386/pc: Inline pc_cmos_init() into pc_cmos_init_late() and remove it Bernhard Beschow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).