qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 00/10] Cleanup patches, mostly PC-related
@ 2025-10-19 21:02 Bernhard Beschow
  2025-10-19 21:02 ` [PATCH v3 01/10] hw/timer/i8254: Add I/O trace events Bernhard Beschow
                   ` (10 more replies)
  0 siblings, 11 replies; 25+ messages in thread
From: Bernhard Beschow @ 2025-10-19 21:02 UTC (permalink / raw)
  To: qemu-devel
  Cc: Marcel Apfelbaum, Laurent Vivier, Michael S. Tsirkin,
	Eduardo Habkost, Zhao Liu, kvm, Michael Tokarev, Cameron Esfahani,
	qemu-block, Paolo Bonzini, qemu-trivial, Laurent Vivier,
	Richard Henderson, Roman Bolshakov, Phil Dennis-Jordan, John Snow,
	Fabiano Rosas, Gerd Hoffmann, Sunil Muthuswamy, Marcelo Tosatti,
	Bernhard Beschow

This series mostly contains PC-related patches I came up with when doing
"virtual retrocomputing" with my via-apollo-pro-133t branch [1]. It includes
improved tracing and reduced usage of cpu_get_current_apic(). The remaining
patch resolves duplicate code in the test of DS1338 RTC which is used in e500
machines.

v3:
* Don't remove cpu_get_current_apic() since it is needed in
  apic_mem_{read,write} (the local APIC memory regions aren't per CPU)

v2:
* Remove some redundant APIC_COMMON(cpu->apic_state) casts
* Resolve cpu_get_current_apic()

Testing done:
* make check
* Work with recent x86_64 Linux distribution running on WHPX

[1] https://github.com/shentok/qemu/tree/via-apollo-pro-133t

Bernhard Beschow (10):
  hw/timer/i8254: Add I/O trace events
  hw/audio/pcspk: Add I/O trace events
  hw/rtc/mc146818rtc: Convert CMOS_DPRINTF() into trace events
  hw/rtc/mc146818rtc: Use ARRAY_SIZE macro
  hw/rtc/mc146818rtc: Assert correct usage of
    mc146818rtc_set_cmos_data()
  hw/ide/ide-internal: Move dma_buf_commit() into ide "namespace"
  hw/i386/apic: Prefer APICCommonState over DeviceState
  hw/i386/apic: Ensure own APIC use in apic_msr_{read,write}
  hw/intc/apic: Pass APICCommonState to apic_register_{read,write}
  tests/qtest/ds1338-test: Reuse from_bcd()

 hw/ide/ide-internal.h                |   2 +-
 include/hw/i386/apic.h               |  37 ++++----
 include/hw/i386/apic_internal.h      |   7 +-
 target/i386/cpu.h                    |   4 +-
 target/i386/kvm/kvm_i386.h           |   2 +-
 target/i386/whpx/whpx-internal.h     |   2 +-
 hw/audio/pcspk.c                     |  10 ++-
 hw/i386/kvm/apic.c                   |   3 +-
 hw/i386/vapic.c                      |   2 +-
 hw/i386/x86-cpu.c                    |   2 +-
 hw/ide/ahci.c                        |   8 +-
 hw/ide/core.c                        |  10 +--
 hw/intc/apic.c                       | 126 ++++++++++-----------------
 hw/intc/apic_common.c                |  56 ++++--------
 hw/rtc/mc146818rtc.c                 |  20 ++---
 hw/timer/i8254.c                     |   6 ++
 target/i386/cpu-apic.c               |  18 ++--
 target/i386/cpu-dump.c               |   2 +-
 target/i386/cpu.c                    |   2 +-
 target/i386/hvf/hvf.c                |   4 +-
 target/i386/kvm/kvm.c                |   2 +-
 target/i386/tcg/system/misc_helper.c |   4 +-
 target/i386/whpx/whpx-apic.c         |   3 +-
 tests/qtest/ds1338-test.c            |  12 +--
 hw/audio/trace-events                |   4 +
 hw/rtc/trace-events                  |   4 +
 hw/timer/trace-events                |   4 +
 27 files changed, 158 insertions(+), 198 deletions(-)

-- 
2.51.1.dirty



^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2025-10-21 20:33 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-19 21:02 [PATCH v3 00/10] Cleanup patches, mostly PC-related Bernhard Beschow
2025-10-19 21:02 ` [PATCH v3 01/10] hw/timer/i8254: Add I/O trace events Bernhard Beschow
2025-10-20  8:31   ` Philippe Mathieu-Daudé
2025-10-19 21:02 ` [PATCH v3 02/10] hw/audio/pcspk: " Bernhard Beschow
2025-10-20  8:29   ` Philippe Mathieu-Daudé
2025-10-19 21:02 ` [PATCH v3 03/10] hw/rtc/mc146818rtc: Convert CMOS_DPRINTF() into " Bernhard Beschow
2025-10-20  8:34   ` Philippe Mathieu-Daudé
2025-10-19 21:02 ` [PATCH v3 04/10] hw/rtc/mc146818rtc: Use ARRAY_SIZE macro Bernhard Beschow
2025-10-20  6:06   ` Philippe Mathieu-Daudé
2025-10-19 21:02 ` [PATCH v3 05/10] hw/rtc/mc146818rtc: Assert correct usage of mc146818rtc_set_cmos_data() Bernhard Beschow
2025-10-21 15:53   ` Philippe Mathieu-Daudé
2025-10-19 21:02 ` [PATCH v3 06/10] hw/ide/ide-internal: Move dma_buf_commit() into ide "namespace" Bernhard Beschow
2025-10-20  6:08   ` Philippe Mathieu-Daudé
2025-10-19 21:03 ` [PATCH v3 07/10] hw/i386/apic: Prefer APICCommonState over DeviceState Bernhard Beschow
2025-10-21 15:57   ` Philippe Mathieu-Daudé
2025-10-19 21:03 ` [PATCH v3 08/10] hw/i386/apic: Ensure own APIC use in apic_msr_{read, write} Bernhard Beschow
2025-10-20  6:09   ` Philippe Mathieu-Daudé
2025-10-20 17:22     ` Bernhard Beschow
2025-10-19 21:03 ` [PATCH v3 09/10] hw/intc/apic: Pass APICCommonState to apic_register_{read, write} Bernhard Beschow
2025-10-21 16:01   ` Philippe Mathieu-Daudé
2025-10-21 20:31   ` Philippe Mathieu-Daudé
2025-10-19 21:03 ` [PATCH v3 10/10] tests/qtest/ds1338-test: Reuse from_bcd() Bernhard Beschow
2025-10-20  6:11   ` Philippe Mathieu-Daudé
2025-10-21 16:07 ` [PATCH v3 00/10] Cleanup patches, mostly PC-related Philippe Mathieu-Daudé
2025-10-21 20:32   ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).