Skip to content

Cleanup patches, mostly PC-related

Bernhard Beschow kvm qemu-devel qemu-trivial 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 14 repliesIn review
  2. v211 patches 3 repliesSuperseded
  3. v18 patches 1 replySuperseded

Changes in v3 from the cover letter

* 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)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10hw/timer/i8254: Add I/O trace eventshw/timer/i8254.c hw/timer/trace-events+10 -01 reply
2/10hw/audio/pcspk: Add I/O trace eventshw/audio/pcspk.c hw/audio/trace-events+13 -11 reply
3/10hw/rtc/mc146818rtc: Convert CMOS_DPRINTF() into trace eventshw/rtc/mc146818rtc.c hw/rtc/trace-events+7 -111 reply
4/10hw/rtc/mc146818rtc: Use ARRAY_SIZE macrohw/rtc/mc146818rtc.c+3 -21 reply
5/10hw/rtc/mc146818rtc: Assert correct usage of mc146818rtc_set_cmos_data()hw/rtc/mc146818rtc.c+2 -31 reply
6/10hw/ide/ide-internal: Move dma_buf_commit() into ide "namespace"hw/ide/ahci.c hw/ide/core.c hw/ide/ide-internal.h+10 -101 reply
7/10hw/i386/apic: Prefer APICCommonState over DeviceStatehw/i386/kvm/apic.c hw/i386/vapic.c hw/i386/x86-cpu.c +12 more+95 -1401 reply
8/10hw/i386/apic: Ensure own APIC use in apic_msr_{read,write}hw/intc/apic.c include/hw/i386/apic.h target/i386/hvf/hvf.c +1 more+8 -142 replies
9/10hw/intc/apic: Pass APICCommonState to apic_register_{read,write}hw/intc/apic.c+16 -192 replies
10/10tests/qtest/ds1338-test: Reuse from_bcd()tests/qtest/ds1338-test.c+4 -81 reply

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-Daudé
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 00/10] Cleanup patches, mostly PC-related

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(-)
Signature · 1 line
2.51.1.dirty