RFC Refactor PC machine to take advantage of QOM
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest20 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/20 | i440fx: remove unused parameter i440fx_state of i440fx_init.hw/ hw/ include/ | +6 | 0 replies | |
| 2/20 | i440fx: rename i440FX to i440FX-PMChw/ include/ | +33 | 0 replies | |
| 3/20 | i440fx: rename i440FX-pcihost to i440FXhw/ | +12 | 0 replies | |
| 4/20 | i440fx: prepare for compositionhw/ | +31 | 0 replies | |
| 5/20 | piix3: make PIIX3-xen a subclass of PIIX3hw/ | +1 | 0 replies | |
| 6/20 | piix3: prepare for compositionhw/ | +20 | 0 replies | |
| 7/20 | piix3: create piix3 through composition.hw/ | +44 | 0 replies | |
| 8/20 | rtc: remove rtc_set_dateinclude/ | +0 | 1 reply | |
| 9/20 | ich9: function renamehw/ | +7 | 0 replies | |
| 10/20 | piix3, ich9: create the HPET through compositionhw/ hw/ hw/ +4 more | +71 | 0 replies | |
| 11/20 | add rtc_set_irqhw/ include/ | +7 | 0 replies | |
| 12/20 | piix3, ich9: create the RTC through compositionhw/ hw/ hw/ +5 more | +44 | 0 replies | |
| 13/20 | piix3, ich9: create pit through compositionhw/ hw/ hw/ +2 more | +67 | 0 replies | |
| 14/20 | piix3, ich9: create pc speaker through compositionhw/ hw/ include/ | +16 | 0 replies | |
| 15/20 | i440fx pmc: create pmc through comositionhw/ | +64 | 0 replies | |
| 16/20 | i440fx-pmc: calculate PCI memory hole directlyhw/ hw/ include/ | +24 | 0 replies | |
| 17/20 | i440fx-pmc: create pci address spacehw/ hw/ include/ | +25 | 0 replies | |
| 18/20 | q35-mch: create pci address spacehw/ hw/ include/ | +12 | 0 replies | |
| 19/20 | i440fx-pmc: move ram initialization into i440fx-pmchw/ hw/ hw/ +1 more | +37 | 0 replies | |
| 20/20 | q35-mch: move ram initialization into q35-mchhw/ hw/ include/ | +40 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Qemu-devel] [RFC PATCH v1 00/20] Refactor PC machine to take advantage of QOM
This is a re-do of original series posted by Anthony Liguori at:
http://lists.gnu.org/archive/html/qemu-devel/2012-01/msg03501.html
I post this series because:
1. there are no news from Anthony since the first version for more than a year
2. Li Wanfeng di some work on the refactor last year, but no news for half a year
3. memory hotplug requires i440fx pmc refactor if I'm getting it right
(http://lists.gnu.org/archive/html/qemu-devel/2012-12/msg02693.html)
Problems:
1. isapc is broken
2. too many code duplication between piix and ich
3. others
TODO:
1. make a proper ISA model
2. a base class PCSuperIO that piix and ich can inherit from. isapc may also be modelled with PCSuperIO. But there was argument on this.
(http://lists.gnu.org/archive/html/qemu-devel/2012-01/msg03626.html)
3. a base class MemoryController that i440fx-pmc and q35-mch can inherit from
4. others
Hu Tao (20):
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
piix3: make PIIX3-xen a subclass of PIIX3
piix3: prepare for composition
piix3: create piix3 through composition.
rtc: remove rtc_set_date
ich9: function rename
piix3,ich9: create the HPET through composition add rtc_set_irq
piix3,ich9: create the RTC through composition piix3,ich9: create pit through composition piix3,ich9: create pc speaker through 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
hw/i386/pc.c | 71 +------ hw/i386/pc_piix.c | 50 ++--- hw/i386/pc_q35.c | 35 ++-- hw/isa/lpc_ich9.c | 87 +++++++- hw/pci-host/piix.c | 447 ++++++++++++++++++++++++++++------------- hw/pci-host/q35.c | 48 ++++- hw/timer/hpet.c | 2 +- hw/timer/mc146818rtc.c | 8 +- include/hw/i386/ich9.h | 5 + include/hw/i386/pc.h | 20 +- include/hw/pci-host/q35.h | 10 +- include/hw/timer/hpet.h | 3 + include/hw/timer/i8254.h | 3 + include/hw/timer/mc146818rtc.h | 2 +- 14 files changed, 504 insertions(+), 287 deletions(-)
Signature · 1 line
1.8.2.3