RFC hw/i386/pc: Decouple ISA vs PCI-based machines
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest29 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/29 | hw/i386/pc: Declare CPU QOM types using DEFINE_TYPES() macrohw/ | +14 | 0 replies | |
| 2/29 | hw/i386/pc: Extract pc_machine_is_pci_enabled() helperhw/ hw/ hw/ +2 more | +22 | 0 replies | |
| 3/29 | hw/i386/pc: Pass base machine type as argument to DEFINE_PC_MACHINE()hw/ hw/ include/ | +9 | 0 replies | |
| 4/29 | hw/i386/pc: Introduce PC_PCI_MACHINE QOM typehw/ hw/ hw/ +1 more | +45 | 0 replies | |
| 5/29 | hw/i386/pc: Remove PCMachineClass::pci_enabled fieldhw/ hw/ include/ | +1 | 0 replies | |
| 6/29 | hw/i386/pc: Move pci_root_uid field to PcPciMachineClasshw/ hw/ hw/ +1 more | +20 | 0 replies | |
| 7/29 | hw/i386/pc: Call fw_cfg_add_extra_pci_roots() in pc_pci_machine_done()hw/ | +6 | 0 replies | |
| 8/29 | hw/i386/pc: Move CXLState to PcPciMachineStatehw/ hw/ include/ | +33 | 1 reply | |
| 9/29 | hw/i386/pc: Pass PCMachineState argument to acpi_setup()hw/ hw/ hw/ | +5 | 3 replies | |
| 10/29 | hw/i386/pc: Remove PCMachineClass::has_acpi_build fieldhw/ hw/ include/ | +3 | 0 replies | |
| 11/29 | hw/i386/pc: Move acpi_setup() call to pc_pci_machine_done()hw/ | +2 | 0 replies | |
| 12/29 | hw/i386/pc: Move acpi_build_enabled to PcPciMachineStatehw/ hw/ hw/ +2 more | +11 | 0 replies | |
| 13/29 | hw/i386/pc: Remove non-PCI code from pc_system_firmware_init()hw/ hw/ | +6 | 2 replies | |
| 14/29 | hw/i386/pc: Move pc_system_flash_create() to pc_pci_machine_initfn()hw/ hw/ | +5 | 1 reply | |
| 15/29 | hw/i386/pc: Move FW/pflash related fields to PcPciMachineStatehw/ hw/ hw/ +1 more | +45 | 0 replies | |
| 16/29 | hw/i386/pc: Move south-bridge related fields to PcPciMachinehw/ hw/ include/ | +12 | 0 replies | |
| 17/29 | hw/i386/pc: Inline gigabyte_align()hw/ hw/ include/ | +13 | 0 replies | |
| 18/29 | hw/i386/pc: Inline has_reserved_memory()hw/ hw/ include/ | +10 | 0 replies | |
| 19/29 | hw/i386/pc: Pass PcPciMachineState argument to CXL helpershw/ | +7 | 0 replies | |
| 20/29 | hw/i386/pc: Pass PcPciMachineState argument to pc_pci_hole64_start()hw/ hw/ hw/ +1 more | +7 | 0 replies | |
| 21/29 | hw/i386/fw_cfg: Include missing 'qapi-types-machine.h' headerhw/ | +1 | 0 replies | |
| 22/29 | hw/i386/fw_cfg: Define fw_cfg_build_smbios() stubhw/ hw/ hw/ | +18 | 0 replies | |
| 23/29 | hw/i386/fw_cfg: Inline smbios_defaults()hw/ hw/ hw/ +1 more | +6 | 0 replies | |
| 24/29 | hw/i386/fw_cfg: Inline smbios_legacy_mode()hw/ hw/ include/ | +6 | 0 replies | |
| 25/29 | hw/i386/fw_cfg: Replace smbios_defaults() by !smbios_legacy_mode()hw/ | +1 | 0 replies | |
| 26/29 | hw/i386/fw_cfg: Factor fw_cfg_build_smbios_legacy() outhw/ hw/ hw/ | +27 | 0 replies | |
| 27/29 | hw/i386/pc: Call fw_cfg_build_smbios_legacy() in pc_machine_done()hw/ hw/ | +11 | 0 replies | |
| 28/29 | hw/i386/pc: Rename pc_init1() -> pc_piix_init()hw/ hw/ hw/ +1 more | +7 | 0 replies | |
| 29/29 | hw/i386/pc: Move ISA-only PC machine to pc_isa.cMAINTAINERS hw/ hw/ +1 more | +35 | 0 replies |
Reviews trailers per patch
3 of 29 patches have a Reviewed-by or Acked-by.
| Patch | Jonathan Cameron | Bernhard Beschow |
|---|---|---|
| 1/29 | ||
| 2/29 | ||
| 3/29 | ||
| 4/29 | ||
| 5/29 | ||
| 6/29 | ||
| 7/29 | ||
| 8/29 | A-b | |
| 9/29 | R-b | |
| 10/29 | ||
| 11/29 | ||
| 12/29 | ||
| 13/29 | R-b | |
| 14/29 | ||
| 15/29 | ||
| 16/29 | ||
| 17/29 | ||
| 18/29 | ||
| 19/29 | ||
| 20/29 | ||
| 21/29 | ||
| 22/29 | ||
| 23/29 | ||
| 24/29 | ||
| 25/29 | ||
| 26/29 | ||
| 27/29 | ||
| 28/29 | ||
| 29/29 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC PATCH-for-9.1 00/29] hw/i386/pc: Decouple ISA vs PCI-based machines
Hi Igor,
This is the first steps to decouple the isapc VS q35/i440fx machines. A new TYPE_PC_PCI_MACHINE is introduced to help differentiating. Fields unrelated to the legacy isapc are moved to the new PcPciMachineState structure.
More work remain in hw/i386/pc_piix.c so we can build a binary with only CONFIG_ISAPC enabled.
Based-on: <[email protected]> "hw/i386: Remove deprecated pc-i440fx-2.0 -> 2.3 machines"
Philippe Mathieu-Daudé (29):
hw/i386/pc: Declare CPU QOM types using DEFINE_TYPES() macro hw/i386/pc: Extract pc_machine_is_pci_enabled() helper hw/i386/pc: Pass base machine type as argument to DEFINE_PC_MACHINE() hw/i386/pc: Introduce PC_PCI_MACHINE QOM type
hw/i386/pc: Remove PCMachineClass::pci_enabled field hw/i386/pc: Move pci_root_uid field to PcPciMachineClass hw/i386/pc: Call fw_cfg_add_extra_pci_roots() in pc_pci_machine_done() hw/i386/pc: Move CXLState to PcPciMachineState
hw/i386/pc: Pass PCMachineState argument to acpi_setup() hw/i386/pc: Remove PCMachineClass::has_acpi_build field hw/i386/pc: Move acpi_setup() call to pc_pci_machine_done() hw/i386/pc: Move acpi_build_enabled to PcPciMachineState hw/i386/pc: Remove non-PCI code from pc_system_firmware_init() hw/i386/pc: Move pc_system_flash_create() to pc_pci_machine_initfn() hw/i386/pc: Move FW/pflash related fields to PcPciMachineState hw/i386/pc: Move south-bridge related fields to PcPciMachine hw/i386/pc: Inline gigabyte_align()
hw/i386/pc: Inline has_reserved_memory()
hw/i386/pc: Pass PcPciMachineState argument to CXL helpers hw/i386/pc: Pass PcPciMachineState argument to pc_pci_hole64_start() hw/i386/fw_cfg: Include missing 'qapi-types-machine.h' header hw/i386/fw_cfg: Define fw_cfg_build_smbios() stub hw/i386/fw_cfg: Inline smbios_defaults()
hw/i386/fw_cfg: Inline smbios_legacy_mode() hw/i386/fw_cfg: Replace smbios_defaults() by !smbios_legacy_mode() hw/i386/fw_cfg: Factor fw_cfg_build_smbios_legacy() out hw/i386/pc: Call fw_cfg_build_smbios_legacy() in pc_machine_done() hw/i386/pc: Rename pc_init1() -> pc_piix_init() hw/i386/pc: Move ISA-only PC machine to pc_isa.c
MAINTAINERS | 1 + hw/i386/acpi-build.h | 3 +- hw/i386/fw_cfg.h | 2 + include/hw/i386/pc.h | 78 +++++++------- hw/i386/acpi-build.c | 34 ++++-- hw/i386/fw_cfg-smbios-stub.c | 19 ++++ hw/i386/fw_cfg.c | 35 +++--- hw/i386/pc.c | 199 ++++++++++++++++++++++------------- hw/i386/pc_isa.c | 33 ++++++ hw/i386/pc_piix.c | 91 +++++++--------- hw/i386/pc_q35.c | 12 ++- hw/i386/pc_sysfw.c | 68 +++++------- hw/i386/xen/xen-hvm.c | 3 +- hw/isa/piix.c | 2 +- hw/pci-host/i440fx.c | 4 +- hw/pci-host/q35.c | 2 +- hw/i386/meson.build | 2 + 17 files changed, 342 insertions(+), 246 deletions(-) create mode 100644 hw/i386/fw_cfg-smbios-stub.c create mode 100644 hw/i386/pc_isa.c
Signature · 1 line
2.41.0