qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/6] Simplify initialization of PC machines
@ 2024-02-24 13:58 Bernhard Beschow
  2024-02-24 13:58 ` [PATCH v2 1/6] hw/i386/x86: Let ioapic_init_gsi() take parent as pointer Bernhard Beschow
                   ` (7 more replies)
  0 siblings, 8 replies; 18+ messages in thread
From: Bernhard Beschow @ 2024-02-24 13:58 UTC (permalink / raw)
  To: qemu-devel
  Cc: Ani Sinha, Michael S. Tsirkin, Philippe Mathieu-Daudé,
	Eduardo Habkost, Marcel Apfelbaum, Richard Henderson,
	Paolo Bonzini, Paul Durrant, Igor Mammedov, Jason Wang,
	David Woodhouse, Sergio Lopez, 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`
* `make check-avocado`
* I'm sending this series from within a VM containing these changes.

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 (6):
  hw/i386/x86: Let ioapic_init_gsi() take parent as pointer
  hw/i386/pc: Rename "bus" attribute to "pcibus"
  hw/i386/pc_{piix,q35}: Eliminate local pci_bus/pci_host variables
  hw/i386/pc: Remove unneeded class attribute "kvmclock_enabled"
  hw/i386/pc: Populate RTC attribute directly
  hw/i386/pc: Inline pc_cmos_init() into pc_cmos_init_late() and remove
    it

 include/hw/i386/pc.h     |  5 +----
 include/hw/i386/x86.h    |  2 +-
 hw/i386/acpi-build.c     |  2 +-
 hw/i386/amd_iommu.c      |  2 +-
 hw/i386/intel_iommu.c    |  2 +-
 hw/i386/kvm/xen_evtchn.c |  2 +-
 hw/i386/microvm.c        |  2 +-
 hw/i386/pc.c             | 27 ++++----------------------
 hw/i386/pc_piix.c        | 42 +++++++++++++++++-----------------------
 hw/i386/pc_q35.c         | 25 ++++++++++--------------
 hw/i386/x86-iommu.c      |  2 +-
 hw/i386/x86.c            |  7 +++----
 12 files changed, 43 insertions(+), 77 deletions(-)

-- 
2.44.0



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

end of thread, other threads:[~2024-02-26 17:42 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-24 13:58 [PATCH v2 0/6] Simplify initialization of PC machines Bernhard Beschow
2024-02-24 13:58 ` [PATCH v2 1/6] hw/i386/x86: Let ioapic_init_gsi() take parent as pointer Bernhard Beschow
2024-02-26  8:27   ` Philippe Mathieu-Daudé
2024-02-26  8:54   ` Zhao Liu
2024-02-24 13:58 ` [PATCH v2 2/6] hw/i386/pc: Rename "bus" attribute to "pcibus" Bernhard Beschow
2024-02-26  8:26   ` Philippe Mathieu-Daudé
2024-02-26  8:56   ` Zhao Liu
2024-02-24 13:58 ` [PATCH v2 3/6] hw/i386/pc_{piix, q35}: Eliminate local pci_bus/pci_host variables Bernhard Beschow
2024-02-26  9:00   ` Zhao Liu
2024-02-24 13:58 ` [PATCH v2 4/6] hw/i386/pc: Remove unneeded class attribute "kvmclock_enabled" Bernhard Beschow
2024-02-25 16:32   ` Philippe Mathieu-Daudé
2024-02-26  6:14   ` Thomas Huth
2024-02-26  9:07   ` Zhao Liu
2024-02-24 13:58 ` [PATCH v2 5/6] hw/i386/pc: Populate RTC attribute directly Bernhard Beschow
2024-02-26  9:11   ` Zhao Liu
2024-02-24 13:58 ` [PATCH v2 6/6] hw/i386/pc: Inline pc_cmos_init() into pc_cmos_init_late() and remove it Bernhard Beschow
2024-02-24 14:15 ` [PATCH v2 0/6] Simplify initialization of PC machines Bernhard Beschow
2024-02-26 17:42 ` Philippe Mathieu-Daudé

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