[PULL 00/16] Misc HW & Memory API patches for 2026-02-02

Philippe Mathieu-Daudé posted 16 patches 4 days, 11 hours ago
Failed in applying to current master (apply log)
Maintainers: Richard Henderson <richard.henderson@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, Laurent Vivier <laurent@vivier.eu>, Pierrick Bouvier <pierrick.bouvier@linaro.org>, "Michael S. Tsirkin" <mst@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Eduardo Habkost <eduardo@habkost.net>, Keith Busch <kbusch@kernel.org>, Klaus Jensen <its@irrelevant.dk>, Jesper Devantier <foss@defmacro.it>, Fam Zheng <fam@euphon.net>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Yanan Wang <wangyanan55@huawei.com>, Zhao Liu <zhao1.liu@intel.com>, John Snow <jsnow@redhat.com>, Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>, "Dr. David Alan Gilbert" <dave@treblig.org>, Peter Xu <peterx@redhat.com>, Markus Armbruster <armbru@redhat.com>, Marcelo Tosatti <mtosatti@redhat.com>, Palmer Dabbelt <palmer@dabbelt.com>, Alistair Francis <alistair.francis@wdc.com>, Weiwei Li <liwei1518@gmail.com>, Daniel Henrique Barboza <dbarboza@ventanamicro.com>, Liu Zhiwei <zhiwei_liu@linux.alibaba.com>
docs/devel/memory.rst                         |  1 -
configs/targets/alpha-linux-user.mak          |  2 +
configs/targets/alpha-softmmu.mak             |  2 +
.../memory-region-housekeeping.cocci          |  8 ---
hw/nvme/nvme.h                                |  1 +
include/accel/tcg/iommu.h                     | 15 -----
include/exec/cputlb.h                         |  4 +-
include/hw/core/cpu.h                         | 17 ++---
include/hw/ide/ide-dev.h                      |  2 +-
include/hw/misc/mos6522.h                     |  2 -
include/monitor/hmp-target.h                  | 14 ----
include/monitor/hmp.h                         | 13 ++++
include/system/memory.h                       | 27 --------
monitor/monitor-internal.h                    |  9 ++-
target/i386/sev.h                             |  2 +
accel/tcg/cputlb.c                            | 32 +++++----
hw/i386/sgx-stub.c                            |  1 +
hw/i386/sgx.c                                 |  1 +
hw/nvme/ns.c                                  |  7 +-
hw/scsi/scsi-disk.c                           |  2 +-
monitor/hmp-cmds.c                            |  1 +
monitor/hmp-target.c                          | 66 ++-----------------
monitor/hmp.c                                 | 63 +++++++++++++++++-
system/memory.c                               | 56 +++++++---------
system/physmem.c                              | 31 ---------
target/alpha/helper.c                         | 28 ++++----
target/alpha/translate.c                      |  2 +-
target/i386/cpu-apic.c                        |  1 +
target/i386/sev-system-stub.c                 |  1 +
target/i386/sev.c                             |  1 +
target/m68k/monitor.c                         |  1 +
target/riscv/monitor.c                        |  1 +
tests/unit/test-cutils.c                      | 66 +++++++++++++++++++
util/meson.build                              |  2 +-
34 files changed, 239 insertions(+), 243 deletions(-)
[PULL 00/16] Misc HW & Memory API patches for 2026-02-02
Posted by Philippe Mathieu-Daudé 4 days, 11 hours ago
The following changes since commit 587f4a1805c83a4e1d59dd43cb14e0a834843d1d:

  python: fix msys64 wheel directory specification (2026-02-02 16:46:40 +1000)

are available in the Git repository at:

  https://github.com/philmd/qemu.git tags/hw-misc-20260202

for you to fetch changes up to d8316b64dfbb4fdb706f20c3b42fd9bcf70b0cdc:

  monitor: Reduce target-specific methods (2026-02-02 22:14:51 +0100)

Ignoring this checkpatch.pl error:

  ERROR: unnecessary whitespace before a quoted newline
  #85: FILE: tests/unit/test-cutils.c:3685:
  +            "s is \n";

----------------------------------------------------------------
Misc HW & memory API patches

- Add unit test for qemu_hexdump()
- Remove legacy native endianness API uses on the Alpha target
- Remove unused memory_region_init_rom_device_nomigrate()
- Fix use-after-free in NvmeNamespace "bootindex" suffix
- Correct documentation of SCSI Rotation Rate field
- Make iotlb_to_section() work with non-CPU AddressSpaces
- Reduce few monitor target-specific methods
----------------------------------------------------------------

Akihiko Odaki (1):
  hw/nvme: Fix bootindex suffix use-after-free

Alberto Garcia (1):
  hw/ide, scsi-disk: Fix typo on the rotation_rate documentation

BALATON Zoltan (2):
  memory: Remove memory_region_init_rom_device_nomigrate()
  memory: Add internal memory_region_set_ops helper function

Jim Shu (3):
  accel/tcg: Send the CPUTLBEntryFull struct into io_prepare()
  accel/tcg: Fix iotlb_to_section() for different AddressSpace
  system/physmem: Remove the assertion of page-aligned section number

Philippe Mathieu-Daudé (8):
  target/alpha: Use explicit little-endian LD/ST API
  target/alpha: Inline translator_ldl()
  configs/targets: Forbid Alpha to use legacy native endianness APIs
  target/alpha: Replace legacy ld_phys() -> address_space_ld()
  target/i386: Include missing 'svm.h' header in 'sev.h'
  monitor: Reduce target-specific declarations
  monitor: Add hmp_cmds_for_target() helper
  monitor: Reduce target-specific methods

Vladimir Sementsov-Ogievskiy (1):
  tests/unit: add unit test for qemu_hexdump()

 docs/devel/memory.rst                         |  1 -
 configs/targets/alpha-linux-user.mak          |  2 +
 configs/targets/alpha-softmmu.mak             |  2 +
 .../memory-region-housekeeping.cocci          |  8 ---
 hw/nvme/nvme.h                                |  1 +
 include/accel/tcg/iommu.h                     | 15 -----
 include/exec/cputlb.h                         |  4 +-
 include/hw/core/cpu.h                         | 17 ++---
 include/hw/ide/ide-dev.h                      |  2 +-
 include/hw/misc/mos6522.h                     |  2 -
 include/monitor/hmp-target.h                  | 14 ----
 include/monitor/hmp.h                         | 13 ++++
 include/system/memory.h                       | 27 --------
 monitor/monitor-internal.h                    |  9 ++-
 target/i386/sev.h                             |  2 +
 accel/tcg/cputlb.c                            | 32 +++++----
 hw/i386/sgx-stub.c                            |  1 +
 hw/i386/sgx.c                                 |  1 +
 hw/nvme/ns.c                                  |  7 +-
 hw/scsi/scsi-disk.c                           |  2 +-
 monitor/hmp-cmds.c                            |  1 +
 monitor/hmp-target.c                          | 66 ++-----------------
 monitor/hmp.c                                 | 63 +++++++++++++++++-
 system/memory.c                               | 56 +++++++---------
 system/physmem.c                              | 31 ---------
 target/alpha/helper.c                         | 28 ++++----
 target/alpha/translate.c                      |  2 +-
 target/i386/cpu-apic.c                        |  1 +
 target/i386/sev-system-stub.c                 |  1 +
 target/i386/sev.c                             |  1 +
 target/m68k/monitor.c                         |  1 +
 target/riscv/monitor.c                        |  1 +
 tests/unit/test-cutils.c                      | 66 +++++++++++++++++++
 util/meson.build                              |  2 +-
 34 files changed, 239 insertions(+), 243 deletions(-)

-- 
2.52.0


Re: [PULL 00/16] Misc HW & Memory API patches for 2026-02-02
Posted by Richard Henderson 4 days, 7 hours ago
On 2/3/26 07:20, Philippe Mathieu-Daudé wrote:
> The following changes since commit 587f4a1805c83a4e1d59dd43cb14e0a834843d1d:
> 
>    python: fix msys64 wheel directory specification (2026-02-02 16:46:40 +1000)
> 
> are available in the Git repository at:
> 
>    https://github.com/philmd/qemu.git tags/hw-misc-20260202
> 
> for you to fetch changes up to d8316b64dfbb4fdb706f20c3b42fd9bcf70b0cdc:
> 
>    monitor: Reduce target-specific methods (2026-02-02 22:14:51 +0100)
> 
> Ignoring this checkpatch.pl error:
> 
>    ERROR: unnecessary whitespace before a quoted newline
>    #85: FILE: tests/unit/test-cutils.c:3685:
>    +            "s is \n";
> 
> ----------------------------------------------------------------
> Misc HW & memory API patches
> 
> - Add unit test for qemu_hexdump()
> - Remove legacy native endianness API uses on the Alpha target
> - Remove unused memory_region_init_rom_device_nomigrate()
> - Fix use-after-free in NvmeNamespace "bootindex" suffix
> - Correct documentation of SCSI Rotation Rate field
> - Make iotlb_to_section() work with non-CPU AddressSpaces
> - Reduce few monitor target-specific methods

Applied, thanks.  Please update https://wiki.qemu.org/ChangeLog/11.0 as appropriate.

r~

Re: [PULL 00/16] Misc HW & Memory API patches for 2026-02-02
Posted by BALATON Zoltan 4 days, 10 hours ago
On Mon, 2 Feb 2026, Philippe Mathieu-Daudé wrote:
> The following changes since commit 587f4a1805c83a4e1d59dd43cb14e0a834843d1d:
>
>  python: fix msys64 wheel directory specification (2026-02-02 16:46:40 +1000)
>
> are available in the Git repository at:
>
>  https://github.com/philmd/qemu.git tags/hw-misc-20260202
>
> for you to fetch changes up to d8316b64dfbb4fdb706f20c3b42fd9bcf70b0cdc:
>
>  monitor: Reduce target-specific methods (2026-02-02 22:14:51 +0100)
>
> Ignoring this checkpatch.pl error:
>
>  ERROR: unnecessary whitespace before a quoted newline
>  #85: FILE: tests/unit/test-cutils.c:3685:
>  +            "s is \n";
>
> ----------------------------------------------------------------
> Misc HW & memory API patches
>
> - Add unit test for qemu_hexdump()
> - Remove legacy native endianness API uses on the Alpha target
> - Remove unused memory_region_init_rom_device_nomigrate()
> - Fix use-after-free in NvmeNamespace "bootindex" suffix
> - Correct documentation of SCSI Rotation Rate field
> - Make iotlb_to_section() work with non-CPU AddressSpaces
> - Reduce few monitor target-specific methods
> ----------------------------------------------------------------
>
> Akihiko Odaki (1):
>  hw/nvme: Fix bootindex suffix use-after-free
>
> Alberto Garcia (1):
>  hw/ide, scsi-disk: Fix typo on the rotation_rate documentation
>
> BALATON Zoltan (2):
>  memory: Remove memory_region_init_rom_device_nomigrate()
>  memory: Add internal memory_region_set_ops helper function

Thanks. You could have also picked up (rtl8139: Remove ineffective 
parameter) and meanwhile Mark gave R-b to (hw/display/{cg3,tcx}: Do not 
use memory_region_init_rom_nomigrate()) so that could also be merged.

Regards,
BALATON Zoltan

> Jim Shu (3):
>  accel/tcg: Send the CPUTLBEntryFull struct into io_prepare()
>  accel/tcg: Fix iotlb_to_section() for different AddressSpace
>  system/physmem: Remove the assertion of page-aligned section number
>
> Philippe Mathieu-Daudé (8):
>  target/alpha: Use explicit little-endian LD/ST API
>  target/alpha: Inline translator_ldl()
>  configs/targets: Forbid Alpha to use legacy native endianness APIs
>  target/alpha: Replace legacy ld_phys() -> address_space_ld()
>  target/i386: Include missing 'svm.h' header in 'sev.h'
>  monitor: Reduce target-specific declarations
>  monitor: Add hmp_cmds_for_target() helper
>  monitor: Reduce target-specific methods
>
> Vladimir Sementsov-Ogievskiy (1):
>  tests/unit: add unit test for qemu_hexdump()
>
> docs/devel/memory.rst                         |  1 -
> configs/targets/alpha-linux-user.mak          |  2 +
> configs/targets/alpha-softmmu.mak             |  2 +
> .../memory-region-housekeeping.cocci          |  8 ---
> hw/nvme/nvme.h                                |  1 +
> include/accel/tcg/iommu.h                     | 15 -----
> include/exec/cputlb.h                         |  4 +-
> include/hw/core/cpu.h                         | 17 ++---
> include/hw/ide/ide-dev.h                      |  2 +-
> include/hw/misc/mos6522.h                     |  2 -
> include/monitor/hmp-target.h                  | 14 ----
> include/monitor/hmp.h                         | 13 ++++
> include/system/memory.h                       | 27 --------
> monitor/monitor-internal.h                    |  9 ++-
> target/i386/sev.h                             |  2 +
> accel/tcg/cputlb.c                            | 32 +++++----
> hw/i386/sgx-stub.c                            |  1 +
> hw/i386/sgx.c                                 |  1 +
> hw/nvme/ns.c                                  |  7 +-
> hw/scsi/scsi-disk.c                           |  2 +-
> monitor/hmp-cmds.c                            |  1 +
> monitor/hmp-target.c                          | 66 ++-----------------
> monitor/hmp.c                                 | 63 +++++++++++++++++-
> system/memory.c                               | 56 +++++++---------
> system/physmem.c                              | 31 ---------
> target/alpha/helper.c                         | 28 ++++----
> target/alpha/translate.c                      |  2 +-
> target/i386/cpu-apic.c                        |  1 +
> target/i386/sev-system-stub.c                 |  1 +
> target/i386/sev.c                             |  1 +
> target/m68k/monitor.c                         |  1 +
> target/riscv/monitor.c                        |  1 +
> tests/unit/test-cutils.c                      | 66 +++++++++++++++++++
> util/meson.build                              |  2 +-
> 34 files changed, 239 insertions(+), 243 deletions(-)
>
>