On 9/1/23 18:23, Bernhard Beschow wrote:
Now that the PIIX3 and PIIX4 device models are sufficiently consolidated,
their implementations can be merged into one file for further
consolidation.

Signed-off-by: Bernhard Beschow <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Message-Id: <[email protected]>
---
  hw/isa/{piix3.c => piix.c} | 158 ++++++++++++++++++++
  hw/isa/piix4.c             | 285 -------------------------------------
  MAINTAINERS                |   6 +-
  hw/i386/Kconfig            |   2 +-
  hw/isa/Kconfig             |  12 +-
  hw/isa/meson.build         |   3 +-
  hw/mips/Kconfig            |   2 +-
  7 files changed, 165 insertions(+), 303 deletions(-)
  rename hw/isa/{piix3.c => piix.c} (75%)
  delete mode 100644 hw/isa/piix4.c


@@ -489,11 +534,124 @@ static const TypeInfo piix3_xen_info = {
      .class_init    = piix3_xen_class_init,
  };
+static void piix4_realize(PCIDevice *dev, Error **errp)
+{

+    /* initialize pit */
+    i8254_pit_init(isa_bus, 0x40, 0, NULL);
Pre-existing, why there is no equivalent PIT creation in the
PIIX3 variant? Due to in-kernel PIT in KVM?

Reply via email to