Features/Q35: Difference between revisions

From QEMU
No edit summary
m (fixed typo)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
* QEMU pci-e/q35 device model
== Summary ==
  * refactor PC machine, i440fx and piix3 to take advantage of QOM
 
  * piix3: create all child devices as proper QOM children
Add emulation of the ICH9 host chipset as an alternative to the current I440FX emulation.  This will allow for better support of PCI-E passthrough since ICH9 uses a PCI-E bus whereas the I440FX only supports a PCI bus.
    * qom: convert BusState to QOM
 
  * Refactor i440fx to create i440fx-pmc class
== Owner ==
    * qom: convert BusState to QOM
 
  * ich9: model ICH9 Super I/O chip
* '''Name:''' [[User:AnthonyLiguori|Anthony Liguori]]
    * piix3: create all child devices as proper QOM children
* '''Email:''' anthony@codemonkey.ws
  * ich9: make i440fx-pmc a generic PCNorthBridge class and add support for ich9 northbridge
 
    * Refactor i440fx to create i440fx-pmc class
== Challenges ==
  * ich9: implement PM interface
 
  * ich9: introduce support for having a new machine based on the Q35 chipset
The QEMU support for the PC machine type is fairly poor today.  Most platform devices are modelled as ISA devices whereas the ICH9 does not actually have an ISA bus.  Below is a diagram of what the I440FX architecture looks like:
    * ich9: model ICH9 Super I/O chip
 
    * ich9: make i440fx-pmc a generic PCNorthBridge class and add support for ich9 northbridge
[[File:QEMU-PC.png]]
    * ich9: implement PM interface
 
The main bus of the I440FX is PCI and the SuperIO chipset contains an integrated IDE controller, USB controller, and PCI-ISA bridge.  The SuperIO chipset (the PIIX4) contains many common devices such as the RTC, PIT, PICs, etc.  In addition, there's an special bus (X-Bus) for connecting the PC Keyboard controller and I/O APIC since these require special signals.
 
Despite how we currently model this in QEMU, the only devices that actually exist on the ISA bus are the Serial controller, Parallel Port controller, and the Floppy controller.
 
Compare this to the ICH9 diagram from the Intel ICH9 specification:
 
[[File:QEMU-ICH9.png]]
 
The ICH9 has an integrated AHCI controller, USB controller, network adapter, audio adapter, PCI-E and PCI bus, and LPC bus for the SuperIO devices.  There is no ISA bus.
 
== Tasks ==
 
In order to implement ICH9 support properly in QEMU, we need to teach the PC devices to not assume the existence of an ISA bus and restructure the code accordingly.  Here's a brief list of tasks associated with this:
 
* refactor PC machine, i440fx and piix3 to take advantage of QOM
* piix3: create all child devices as proper QOM children
* Refactor i440fx to create i440fx-pmc class
* ich9: model ICH9 Super I/O chip
* ich9: make i440fx-pmc a generic PCNorthBridge class and add support for ich9 northbridge
* Refactor i440fx to create i440fx-pmc class
* ich9: implement PM interface
* ich9: introduce support for having a new machine based on the Q35 chipset
* ich9: make i440fx-pmc a generic PCNorthBridge class and add support for ich9 northbridge
 
== Status ==
 
[[Category:Completed feature pages]]

Latest revision as of 22:16, 12 September 2017

Summary

Add emulation of the ICH9 host chipset as an alternative to the current I440FX emulation. This will allow for better support of PCI-E passthrough since ICH9 uses a PCI-E bus whereas the I440FX only supports a PCI bus.

Owner

Challenges

The QEMU support for the PC machine type is fairly poor today. Most platform devices are modelled as ISA devices whereas the ICH9 does not actually have an ISA bus. Below is a diagram of what the I440FX architecture looks like:

QEMU-PC.png

The main bus of the I440FX is PCI and the SuperIO chipset contains an integrated IDE controller, USB controller, and PCI-ISA bridge. The SuperIO chipset (the PIIX4) contains many common devices such as the RTC, PIT, PICs, etc. In addition, there's an special bus (X-Bus) for connecting the PC Keyboard controller and I/O APIC since these require special signals.

Despite how we currently model this in QEMU, the only devices that actually exist on the ISA bus are the Serial controller, Parallel Port controller, and the Floppy controller.

Compare this to the ICH9 diagram from the Intel ICH9 specification:

QEMU-ICH9.png

The ICH9 has an integrated AHCI controller, USB controller, network adapter, audio adapter, PCI-E and PCI bus, and LPC bus for the SuperIO devices. There is no ISA bus.

Tasks

In order to implement ICH9 support properly in QEMU, we need to teach the PC devices to not assume the existence of an ISA bus and restructure the code accordingly. Here's a brief list of tasks associated with this:

  • refactor PC machine, i440fx and piix3 to take advantage of QOM
  • piix3: create all child devices as proper QOM children
  • Refactor i440fx to create i440fx-pmc class
  • ich9: model ICH9 Super I/O chip
  • ich9: make i440fx-pmc a generic PCNorthBridge class and add support for ich9 northbridge
  • Refactor i440fx to create i440fx-pmc class
  • ich9: implement PM interface
  • ich9: introduce support for having a new machine based on the Q35 chipset
  • ich9: make i440fx-pmc a generic PCNorthBridge class and add support for ich9 northbridge

Status