Skip to content

RFC pc refactor about memory controller

Hu Tao qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest15 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15i440fx: remove unused parameter i440fx_state of i440fx_init.hw/i386/pc_piix.c hw/pci-host/piix.c include/hw/i386/pc.h+6 -100 replies
2/15i440fx: rename i440FX to i440FX-PMChw/pci-host/piix.c include/hw/i386/pc.h+33 -330 replies
3/15i440fx: rename i440FX-pcihost to i440FXhw/pci-host/piix.c+12 -80 replies
4/15i440fx: prepare for compositionhw/pci-host/piix.c+31 -180 replies
5/15i440fx pmc: create pmc through comositionhw/pci-host/piix.c+76 -470 replies
6/15i440fx-pmc: calculate PCI memory hole directlyhw/i386/pc_piix.c hw/pci-host/piix.c include/hw/i386/pc.h+24 -350 replies
7/15i440fx-pmc: create pci address spacehw/i386/pc_piix.c hw/pci-host/piix.c include/hw/i386/pc.h+25 -260 replies
8/15q35-mch: create pci address spacehw/i386/pc_q35.c hw/pci-host/q35.c include/hw/pci-host/q35.h+12 -140 replies
9/15i440fx-pmc: move ram initialization into i440fx-pmchw/i386/pc.c hw/i386/pc_piix.c hw/pci-host/piix.c +1 more+35 -360 replies
10/15q35-mch: move ram initialization into q35-mchhw/i386/pc.c hw/i386/pc_piix.c hw/i386/pc_q35.c +3 more+43 -170 replies
11/15introduce ISAPchw/i386/pc_piix.c hw/isa/Makefile.objs hw/isa/isa_pc.c +1 more+80 -50 replies
12/15introduce memory controllerhw/i386/pc.c hw/pci-host/piix.c include/hw/i386/pc.h+199 -10 replies
13/15i440fx pmc: inherit from MemoryControllerhw/pci-host/piix.c+22 -1370 replies
14/15q35 mch: inherit from MemoryControllerhw/i386/pc_q35.c hw/pci-host/q35.c include/hw/pci-host/q35.h+32 -1360 replies
15/15move bios loading to MemoryController and ISAPchw/i386/pc.c hw/i386/pc_piix.c hw/i386/pc_q35.c +3 more+33 -470 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH RFC 00/15] pc refactor about memory controller

This series introduces MemoryController, and refactor pc code about i440fx pmc and q35 mch, and introduces ISAPc to resolve breakage of isapc.

The memory hotplug patchset will base on this series. Comments are welcome!

Hu Tao (15):
i440fx: remove unused parameter i440fx_state of i440fx_init.
i440fx: rename i440FX to i440FX-PMC
i440fx: rename i440FX-pcihost to i440FX
i440fx: prepare for composition
i440fx pmc: create pmc through comosition
i440fx-pmc: calculate PCI memory hole directly
i440fx-pmc: create pci address space
q35-mch: create pci address space
i440fx-pmc: move ram initialization into i440fx-pmc
q35-mch: move ram initialization into q35-mch introduce ISAPc
i440fx pmc: inherit from MemoryController
q35 mch: inherit from MemoryController
move bios loading to MemoryController and ISAPc

 hw/i386/pc.c              | 214 +++++++++++++++++++++++++++++++---------
 hw/i386/pc_piix.c         |  52 ++++------
 hw/i386/pc_q35.c          |  31 ++----
 hw/isa/Makefile.objs      |   2 +-
 hw/isa/isa_pc.c           |  53 ++++++++++
 hw/pci-host/piix.c        | 244 +++++++++++++++++++---------------------------
 hw/pci-host/q35.c         | 132 +++++++------------------
 include/hw/i386/pc.h      |  66 ++++++++++---
 include/hw/isa/isa_pc.h   |  27 +++++
 include/hw/pci-host/q35.h |  16 +--
 10 files changed, 465 insertions(+), 372 deletions(-)
 create mode 100644 hw/isa/isa_pc.c
 create mode 100644 include/hw/isa/isa_pc.h
Signature · 1 line
1.8.3.1