Skip to content

RFC hw/i386/q35: Decouple virtual SMI# lines and wire them to ICH9 chipset

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5target/i386/cpu: Expose SMI# IRQ line via QDevtarget/i386/cpu-internal.h target/i386/cpu-sysemu.c target/i386/cpu.c+14 -00 replies
2/5hw/i386/piix: Set CPU SMI# interrupt using QDev GPIO APIhw/i386/pc.c hw/i386/pc_piix.c include/hw/i386/pc.h+2 -130 replies
3/5hw/ahci/ich9_tco: Set CPU SMI# interrupt using QDev GPIO APIhw/acpi/ich9.c hw/acpi/ich9_tco.c hw/isa/ich9_lpc.c +2 more+15 -110 replies
4/5hw/i386/q35: Wire virtual SMI# lines to ICH9 chipsethw/i386/pc_q35.c hw/isa/ich9_lpc.c hw/southbridge/ich9.c +2 more+44 -68 replies
5/5hw/isa: Build ich9_lpc.c oncehw/isa/meson.build+1 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/5] hw/i386/q35: Decouple virtual SMI# lines and wire them to ICH9 chipset

Hi,

This is an experimental series to reduce calls to the cpu_interrupt() API from generic HW/. I'm trying to use the ICH9 chipset from a non-x86 machine. Without this experiment, we can not because cpu_interrupt() is target specific. Here the interrupt is decoupled using the QDev GPIO API. Even if the SMI# line is left unconnected, the device is still usable by a guest.

Based-on: <[email protected]>

Philippe Mathieu-Daudé (5):
target/i386/cpu: Expose SMI# IRQ line via QDev hw/i386/piix: Set CPU SMI# interrupt using QDev GPIO API hw/ahci/ich9_tco: Set CPU SMI# interrupt using QDev GPIO API hw/i386/q35: Wire virtual SMI# lines to ICH9 chipset hw/isa: Build ich9_lpc.c once

 include/hw/acpi/ich9.h        |  1 +
 include/hw/acpi/ich9_tco.h    |  4 ++--
 include/hw/i386/pc.h          |  2 --
 include/hw/isa/ich9_lpc.h     | 12 ++++++++++++
 include/hw/southbridge/ich9.h |  1 +
 target/i386/cpu-internal.h    |  1 +
 hw/acpi/ich9.c                |  3 ++-
 hw/acpi/ich9_tco.c            | 13 ++++++++++---
 hw/i386/pc.c                  |  9 ---------
 hw/i386/pc_piix.c             |  4 ++--
 hw/i386/pc_q35.c              | 26 ++++++++++++++++++++++++++
 hw/isa/ich9_lpc.c             | 15 ++++-----------
 hw/southbridge/ich9.c         |  1 +
 target/i386/cpu-sysemu.c      | 11 +++++++++++
 target/i386/cpu.c             |  2 ++
 hw/isa/meson.build            |  3 +--
 16 files changed, 76 insertions(+), 32 deletions(-)
Signature · 1 line
2.41.0