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 -- 1.8.3.1