From: Bernhard Beschow <shentey@gmail.com>
To: qemu-devel@nongnu.org
Cc: Roman Bolshakov <rbolshakov@ddn.com>,
Laurent Vivier <laurent@vivier.eu>,
Eduardo Habkost <eduardo@habkost.net>,
Cameron Esfahani <dirty@apple.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
Marcelo Tosatti <mtosatti@redhat.com>,
Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Sunil Muthuswamy <sunilmut@microsoft.com>,
Zhao Liu <zhao1.liu@intel.com>,
Richard Henderson <richard.henderson@linaro.org>,
Fabiano Rosas <farosas@suse.de>,
qemu-trivial@nongnu.org, Gerd Hoffmann <kraxel@redhat.com>,
qemu-block@nongnu.org, Phil Dennis-Jordan <phil@philjordan.eu>,
Michael Tokarev <mjt@tls.msk.ru>, John Snow <jsnow@redhat.com>,
kvm@vger.kernel.org, Laurent Vivier <lvivier@redhat.com>,
Bernhard Beschow <shentey@gmail.com>
Subject: [PATCH v2 00/11] Cleanup patches, mostly PC-related
Date: Fri, 17 Oct 2025 16:11:06 +0200 [thread overview]
Message-ID: <20251017141117.105944-1-shentey@gmail.com> (raw)
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 removal of cpu_get_current_apic(). The remaining patch
resolves duplicate code in the test of DS1338 RTC which is used in e500
machines.
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
Supersedes: 20251017113338.7953-1-shentey@gmail.com
Bernhard Beschow (11):
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: Ensure own APIC use in apic_register_{read,write}
hw/i386/x86-cpu: Remove now unused cpu_get_current_apic()
tests/qtest/ds1338-test: Reuse from_bcd()
hw/ide/ide-internal.h | 2 +-
include/hw/i386/apic.h | 38 +++++----
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 | 10 ---
hw/ide/ahci.c | 8 +-
hw/ide/core.c | 10 +--
hw/intc/apic.c | 116 +++++++++------------------
hw/intc/apic_common.c | 56 +++++--------
hw/rtc/mc146818rtc.c | 20 ++---
hw/timer/i8254.c | 6 ++
target/i386/cpu-apic.c | 16 ++--
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 | 5 +-
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, 146 insertions(+), 208 deletions(-)
--
2.51.1.dirty
next reply other threads:[~2025-10-17 14:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-17 14:11 Bernhard Beschow [this message]
2025-10-17 14:11 ` [PATCH v2 01/11] hw/timer/i8254: Add I/O trace events Bernhard Beschow
2025-10-17 14:11 ` [PATCH v2 02/11] hw/audio/pcspk: " Bernhard Beschow
2025-10-17 14:11 ` [PATCH v2 03/11] hw/rtc/mc146818rtc: Convert CMOS_DPRINTF() into " Bernhard Beschow
2025-10-17 14:11 ` [PATCH v2 04/11] hw/rtc/mc146818rtc: Use ARRAY_SIZE macro Bernhard Beschow
2025-10-17 14:11 ` [PATCH v2 05/11] hw/rtc/mc146818rtc: Assert correct usage of mc146818rtc_set_cmos_data() Bernhard Beschow
2025-10-17 14:11 ` [PATCH v2 06/11] hw/ide/ide-internal: Move dma_buf_commit() into ide "namespace" Bernhard Beschow
2025-10-17 14:11 ` [PATCH v2 07/11] hw/i386/apic: Prefer APICCommonState over DeviceState Bernhard Beschow
2025-10-17 14:11 ` [PATCH v2 08/11] hw/i386/apic: Ensure own APIC use in apic_msr_{read, write} Bernhard Beschow
2025-10-17 14:11 ` [PATCH v2 09/11] hw/intc/apic: Ensure own APIC use in apic_register_{read, write} Bernhard Beschow
2025-10-17 14:58 ` Michael Tokarev
2025-10-17 19:34 ` Bernhard Beschow
2025-10-19 22:38 ` Bernhard Beschow
2025-10-17 14:11 ` [PATCH v2 10/11] hw/i386/x86-cpu: Remove now unused cpu_get_current_apic() Bernhard Beschow
2025-10-17 14:11 ` [PATCH v2 11/11] tests/qtest/ds1338-test: Reuse from_bcd() Bernhard Beschow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251017141117.105944-1-shentey@gmail.com \
--to=shentey@gmail.com \
--cc=dirty@apple.com \
--cc=eduardo@habkost.net \
--cc=farosas@suse.de \
--cc=jsnow@redhat.com \
--cc=kraxel@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=laurent@vivier.eu \
--cc=lvivier@redhat.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=mjt@tls.msk.ru \
--cc=mst@redhat.com \
--cc=mtosatti@redhat.com \
--cc=pbonzini@redhat.com \
--cc=phil@philjordan.eu \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=rbolshakov@ddn.com \
--cc=richard.henderson@linaro.org \
--cc=sunilmut@microsoft.com \
--cc=zhao1.liu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).