All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>
Subject: [PULL 00/55] Misc ERRP_GUARD() and cpu_env() patches
Date: Tue, 12 Mar 2024 13:42:44 +0100	[thread overview]
Message-ID: <20240312124339.761630-1-thuth@redhat.com> (raw)

The following changes since commit 7489f7f3f81dcb776df8c1b9a9db281fc21bf05f:

  Merge tag 'hw-misc-20240309' of https://github.com/philmd/qemu into staging (2024-03-09 20:12:21 +0000)

are available in the Git repository at:

  https://gitlab.com/thuth/qemu.git tags/pull-request-2024-03-12

for you to fetch changes up to 42e62aadfdcc44215482a85da55dc4758775d790:

  user: Prefer fast cpu_env() over slower CPU QOM cast macro (2024-03-12 12:04:25 +0100)

----------------------------------------------------------------
* Add missing ERRP_GUARD() statements in functions that need it
* Prefer fast cpu_env() over slower CPU QOM cast macro

----------------------------------------------------------------
Philippe Mathieu-Daudé (22):
      bulk: Access existing variables initialized to &S->F when available
      hw/core: Declare CPUArchId::cpu as CPUState instead of Object
      bulk: Call in place single use cpu_env()
      target: Replace CPU_GET_CLASS(cpu -> obj) in cpu_reset_hold() handler
      target/alpha: Prefer fast cpu_env() over slower CPU QOM cast macro
      target/avr: Prefer fast cpu_env() over slower CPU QOM cast macro
      target/cris: Prefer fast cpu_env() over slower CPU QOM cast macro
      target/hexagon: Prefer fast cpu_env() over slower CPU QOM cast macro
      target/i386/hvf: Use CPUState typedef
      target/loongarch: Prefer fast cpu_env() over slower CPU QOM cast macro
      target/m68k: Prefer fast cpu_env() over slower CPU QOM cast macro
      target/microblaze: Prefer fast cpu_env() over slower CPU QOM cast macro
      target/mips: Prefer fast cpu_env() over slower CPU QOM cast macro
      target/nios2: Prefer fast cpu_env() over slower CPU QOM cast macro
      target/openrisc: Prefer fast cpu_env() over slower CPU QOM cast macro
      target/ppc: Prefer fast cpu_env() over slower CPU QOM cast macro
      target/rx: Prefer fast cpu_env() over slower CPU QOM cast macro
      target/sh4: Prefer fast cpu_env() over slower CPU QOM cast macro
      target/sparc: Prefer fast cpu_env() over slower CPU QOM cast macro
      target/tricore: Prefer fast cpu_env() over slower CPU QOM cast macro
      target/xtensa: Prefer fast cpu_env() over slower CPU QOM cast macro
      user: Prefer fast cpu_env() over slower CPU QOM cast macro

Zhao Liu (33):
      hw/cxl/cxl-host: Fix missing ERRP_GUARD() in cxl_fixed_memory_window_config()
      hw/display/macfb: Fix missing ERRP_GUARD() in macfb_nubus_realize()
      hw/mem/cxl_type3: Fix missing ERRP_GUARD() in ct3_realize()
      hw/misc/xlnx-versal-trng: Check returned bool in trng_prop_fault_event_set()
      hw/pci-bridge/cxl_upstream: Fix missing ERRP_GUARD() in cxl_usp_realize()
      hw/intc: Check @errp to handle the error of IOAPICCommonClass.realize()
      error: Add error_vprepend() in comment of ERRP_GUARD() rules
      backends/iommufd: Fix missing ERRP_GUARD() for error_prepend()
      block: Fix missing ERRP_GUARD() for error_prepend()
      block/copy-before-write: Fix missing ERRP_GUARD() for error_prepend()
      block/nbd: Fix missing ERRP_GUARD() for error_prepend()
      block/nvme: Fix missing ERRP_GUARD() for error_prepend()
      block/qcow2-bitmap: Fix missing ERRP_GUARD() for error_prepend()
      block/qcow2: Fix missing ERRP_GUARD() for error_prepend()
      block/qed: Fix missing ERRP_GUARD() for error_prepend()
      block/snapshot: Fix missing ERRP_GUARD() for error_prepend()
      block/vdi: Fix missing ERRP_GUARD() for error_prepend()
      block/vmdk: Fix missing ERRP_GUARD() for error_prepend()
      block/virtio-blk: Fix missing ERRP_GUARD() for error_prepend()
      hw/scsi/vhost-scsi: Fix missing ERRP_GUARD() for error_prepend()
      hw/vfio/ap: Fix missing ERRP_GUARD() for error_prepend()
      hw/vfio/container: Fix missing ERRP_GUARD() for error_prepend()
      hw/vfio/helpers: Fix missing ERRP_GUARD() for error_prepend()
      hw/vfio/iommufd: Fix missing ERRP_GUARD() for error_prepend()
      hw/vfio/pci-quirks: Fix missing ERRP_GUARD() for error_prepend()
      hw/vfio/pci: Fix missing ERRP_GUARD() for error_prepend()
      hw/vfio/platform: Fix missing ERRP_GUARD() for error_prepend()
      hw/virtio/vhost-vsock: Fix missing ERRP_GUARD() for error_prepend()
      hw/virtio/vhost: Fix missing ERRP_GUARD() for error_prepend()
      migration/option: Fix missing ERRP_GUARD() for error_prepend()
      net/vhost-vdpa: Fix missing ERRP_GUARD() for error_prepend()
      target/s390x/cpu_models: Fix missing ERRP_GUARD() for error_prepend()
      error: Move ERRP_GUARD() to the beginning of the function

 include/hw/boards.h                     |  2 +-
 include/qapi/error.h                    |  2 +-
 target/i386/hvf/x86.h                   | 26 ++++++++++-----------
 target/i386/hvf/x86_descr.h             | 14 +++++------
 target/i386/hvf/x86_emu.h               |  4 ++--
 target/i386/hvf/x86_mmu.h               |  6 ++---
 accel/tcg/cpu-exec.c                    |  3 +--
 backends/iommufd.c                      |  1 +
 block.c                                 |  6 ++++-
 block/copy-before-write.c               |  1 +
 block/nbd.c                             |  1 +
 block/nvme.c                            |  3 +++
 block/qapi.c                            |  6 ++---
 block/qcow2-bitmap.c                    |  1 +
 block/qcow2.c                           |  2 ++
 block/qed.c                             |  1 +
 block/snapshot.c                        |  2 ++
 block/vdi.c                             |  1 +
 block/vmdk.c                            |  1 +
 bsd-user/signal.c                       |  3 +--
 hw/block/virtio-blk.c                   |  1 +
 hw/core/machine.c                       |  4 ++--
 hw/cxl/cxl-host.c                       |  1 +
 hw/display/ati.c                        |  2 +-
 hw/display/macfb.c                      |  1 +
 hw/i386/x86.c                           |  2 +-
 hw/intc/ioapic_common.c                 |  4 ++++
 hw/loongarch/virt.c                     |  2 +-
 hw/mem/cxl_type3.c                      |  1 +
 hw/misc/macio/pmu.c                     |  3 +--
 hw/misc/pvpanic-pci.c                   |  2 +-
 hw/misc/xlnx-versal-trng.c              |  3 +--
 hw/pci-bridge/cxl_root_port.c           |  2 +-
 hw/pci-bridge/cxl_upstream.c            |  1 +
 hw/ppc/mpc8544_guts.c                   |  3 +--
 hw/ppc/pnv.c                            | 23 +++++++++---------
 hw/ppc/pnv_xscom.c                      |  5 +---
 hw/ppc/ppce500_spin.c                   |  3 +--
 hw/ppc/spapr.c                          |  8 +++----
 hw/ppc/spapr_caps.c                     |  7 ++----
 hw/s390x/s390-virtio-ccw.c              |  4 ++--
 hw/scsi/vhost-scsi.c                    |  1 +
 hw/vfio/ap.c                            |  1 +
 hw/vfio/container.c                     |  1 +
 hw/vfio/helpers.c                       |  3 +++
 hw/vfio/iommufd.c                       |  1 +
 hw/vfio/pci-quirks.c                    |  2 ++
 hw/vfio/pci.c                           |  2 ++
 hw/vfio/platform.c                      |  1 +
 hw/virtio/vhost-user-scmi.c             |  6 ++---
 hw/virtio/vhost-vsock.c                 |  1 +
 hw/virtio/vhost.c                       |  2 ++
 hw/virtio/virtio-pci.c                  |  2 +-
 hw/xen/xen_pt.c                         |  6 ++---
 linux-user/i386/cpu_loop.c              |  4 ++--
 linux-user/signal.c                     |  6 ++---
 migration/multifd-zlib.c                |  2 +-
 migration/options.c                     |  4 +++-
 migration/postcopy-ram.c                |  4 ++--
 net/vhost-vdpa.c                        |  4 ++--
 target/alpha/cpu.c                      | 31 ++++++-------------------
 target/alpha/gdbstub.c                  |  6 ++---
 target/alpha/helper.c                   | 15 ++++--------
 target/alpha/mem_helper.c               | 11 +++------
 target/alpha/translate.c                |  4 ++--
 target/arm/cpu.c                        | 18 +++++++--------
 target/arm/kvm.c                        |  2 +-
 target/arm/machine.c                    |  6 ++---
 target/avr/cpu.c                        | 29 +++++++----------------
 target/avr/gdbstub.c                    |  6 ++---
 target/avr/helper.c                     | 10 +++-----
 target/avr/translate.c                  |  3 +--
 target/cris/cpu.c                       | 12 ++++------
 target/cris/gdbstub.c                   |  9 +++-----
 target/cris/helper.c                    | 12 ++++------
 target/cris/translate.c                 |  6 ++---
 target/hexagon/cpu.c                    | 27 ++++++----------------
 target/hexagon/gdbstub.c                |  6 ++---
 target/hppa/mem_helper.c                |  3 +--
 target/hppa/translate.c                 |  3 +--
 target/i386/cpu.c                       | 14 +++++------
 target/i386/hvf/x86.c                   | 26 ++++++++++-----------
 target/i386/hvf/x86_descr.c             | 11 +++++----
 target/i386/hvf/x86_mmu.c               | 14 +++++------
 target/i386/hvf/x86hvf.c                |  2 +-
 target/i386/nvmm/nvmm-all.c             |  6 ++---
 target/i386/whpx/whpx-all.c             | 18 +++++----------
 target/loongarch/cpu.c                  | 41 +++++++++------------------------
 target/loongarch/cpu_helper.c           |  3 +--
 target/loongarch/gdbstub.c              |  6 ++---
 target/loongarch/kvm/kvm.c              | 41 ++++++++++-----------------------
 target/loongarch/tcg/tlb_helper.c       |  3 +--
 target/loongarch/tcg/translate.c        |  3 +--
 target/m68k/cpu.c                       | 37 +++++++++++------------------
 target/m68k/gdbstub.c                   |  6 ++---
 target/m68k/helper.c                    |  8 +++----
 target/m68k/m68k-semi.c                 |  6 ++---
 target/m68k/op_helper.c                 | 11 +++------
 target/m68k/translate.c                 |  3 +--
 target/microblaze/cpu.c                 |  6 ++---
 target/microblaze/gdbstub.c             |  3 +--
 target/microblaze/helper.c              |  3 +--
 target/microblaze/translate.c           |  6 ++---
 target/mips/cpu.c                       | 17 ++++----------
 target/mips/gdbstub.c                   |  6 ++---
 target/mips/kvm.c                       | 27 ++++++++--------------
 target/mips/sysemu/physaddr.c           |  3 +--
 target/mips/tcg/exception.c             |  3 +--
 target/mips/tcg/op_helper.c             |  8 +++----
 target/mips/tcg/sysemu/special_helper.c |  3 +--
 target/mips/tcg/sysemu/tlb_helper.c     |  6 ++---
 target/mips/tcg/translate.c             |  3 +--
 target/nios2/cpu.c                      | 17 ++++----------
 target/nios2/helper.c                   |  3 +--
 target/nios2/nios2-semi.c               |  6 ++---
 target/nios2/translate.c                |  3 +--
 target/openrisc/cpu.c                   |  8 +++----
 target/openrisc/gdbstub.c               |  6 ++---
 target/openrisc/interrupt.c             |  6 ++---
 target/openrisc/translate.c             |  6 ++---
 target/ppc/cpu_init.c                   | 23 ++++++++----------
 target/ppc/excp_helper.c                |  3 +--
 target/ppc/gdbstub.c                    | 12 ++++------
 target/ppc/kvm.c                        | 20 +++++++---------
 target/ppc/ppc-qmp-cmds.c               |  3 +--
 target/ppc/user_only_helper.c           |  3 +--
 target/riscv/cpu.c                      |  2 +-
 target/rx/cpu.c                         |  6 ++---
 target/rx/gdbstub.c                     |  6 ++---
 target/rx/helper.c                      |  6 ++---
 target/rx/translate.c                   |  6 ++---
 target/s390x/cpu_models.c               |  2 ++
 target/sh4/cpu.c                        | 22 +++++++-----------
 target/sh4/gdbstub.c                    |  6 ++---
 target/sh4/helper.c                     | 14 ++++-------
 target/sh4/op_helper.c                  |  4 +---
 target/sh4/translate.c                  |  6 ++---
 target/sparc/cpu.c                      | 21 ++++++-----------
 target/sparc/gdbstub.c                  |  3 +--
 target/sparc/int32_helper.c             |  3 +--
 target/sparc/int64_helper.c             |  3 +--
 target/sparc/ldst_helper.c              |  6 ++---
 target/sparc/mmu_helper.c               | 15 ++++--------
 target/sparc/translate.c                |  9 +++-----
 target/tricore/cpu.c                    | 28 ++++++----------------
 target/tricore/gdbstub.c                |  6 ++---
 target/tricore/helper.c                 |  3 +--
 target/tricore/translate.c              |  3 +--
 target/xtensa/cpu.c                     |  9 ++++----
 target/xtensa/dbg_helper.c              |  3 +--
 target/xtensa/exc_helper.c              |  3 +--
 target/xtensa/gdbstub.c                 |  6 ++---
 target/xtensa/helper.c                  |  9 +++-----
 target/xtensa/translate.c               |  6 ++---
 154 files changed, 436 insertions(+), 692 deletions(-)



             reply	other threads:[~2024-03-12 12:49 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-12 12:42 Thomas Huth [this message]
2024-03-12 12:42 ` [PULL 01/55] hw/cxl/cxl-host: Fix missing ERRP_GUARD() in cxl_fixed_memory_window_config() Thomas Huth
2024-03-12 12:42 ` [PULL 02/55] hw/display/macfb: Fix missing ERRP_GUARD() in macfb_nubus_realize() Thomas Huth
2024-03-12 12:42 ` [PULL 03/55] hw/mem/cxl_type3: Fix missing ERRP_GUARD() in ct3_realize() Thomas Huth
2024-03-12 12:42 ` [PULL 04/55] hw/misc/xlnx-versal-trng: Check returned bool in trng_prop_fault_event_set() Thomas Huth
2024-03-12 12:42 ` [PULL 05/55] hw/pci-bridge/cxl_upstream: Fix missing ERRP_GUARD() in cxl_usp_realize() Thomas Huth
2024-03-12 12:42 ` [PULL 06/55] hw/intc: Check @errp to handle the error of IOAPICCommonClass.realize() Thomas Huth
2024-03-12 12:42 ` [PULL 07/55] error: Add error_vprepend() in comment of ERRP_GUARD() rules Thomas Huth
2024-03-12 12:42 ` [PULL 08/55] backends/iommufd: Fix missing ERRP_GUARD() for error_prepend() Thomas Huth
2024-03-12 12:42 ` [PULL 09/55] block: " Thomas Huth
2024-03-12 12:42 ` [PULL 10/55] block/copy-before-write: " Thomas Huth
2024-03-12 12:42 ` [PULL 11/55] block/nbd: " Thomas Huth
2024-03-12 12:42 ` [PULL 12/55] block/nvme: " Thomas Huth
2024-03-12 12:42 ` [PULL 13/55] block/qcow2-bitmap: " Thomas Huth
2024-03-12 12:42 ` [PULL 14/55] block/qcow2: " Thomas Huth
2024-03-12 12:42 ` [PULL 15/55] block/qed: " Thomas Huth
2024-03-12 12:43 ` [PULL 16/55] block/snapshot: " Thomas Huth
2024-03-12 12:43 ` [PULL 17/55] block/vdi: " Thomas Huth
2024-03-12 12:43 ` [PULL 18/55] block/vmdk: " Thomas Huth
2024-03-12 12:43 ` [PULL 19/55] block/virtio-blk: " Thomas Huth
2024-03-12 12:43 ` [PULL 20/55] hw/scsi/vhost-scsi: " Thomas Huth
2024-03-12 12:43 ` [PULL 21/55] hw/vfio/ap: " Thomas Huth
2024-03-12 12:43 ` [PULL 22/55] hw/vfio/container: " Thomas Huth
2024-03-12 12:43 ` [PULL 23/55] hw/vfio/helpers: " Thomas Huth
2024-03-12 12:43 ` [PULL 24/55] hw/vfio/iommufd: " Thomas Huth
2024-03-12 12:43 ` [PULL 25/55] hw/vfio/pci-quirks: " Thomas Huth
2024-03-12 12:43 ` [PULL 26/55] hw/vfio/pci: " Thomas Huth
2024-03-12 12:43 ` [PULL 27/55] hw/vfio/platform: " Thomas Huth
2024-03-12 12:43 ` [PULL 28/55] hw/virtio/vhost-vsock: " Thomas Huth
2024-03-12 12:43 ` [PULL 29/55] hw/virtio/vhost: " Thomas Huth
2024-03-12 12:43 ` [PULL 30/55] migration/option: " Thomas Huth
2024-03-12 12:43 ` [PULL 31/55] net/vhost-vdpa: " Thomas Huth
2024-03-12 12:43 ` [PULL 32/55] target/s390x/cpu_models: " Thomas Huth
2024-03-12 12:43 ` [PULL 33/55] error: Move ERRP_GUARD() to the beginning of the function Thomas Huth
2024-03-12 12:43 ` [PULL 34/55] bulk: Access existing variables initialized to &S->F when available Thomas Huth
2024-03-12 12:43 ` [PULL 35/55] hw/core: Declare CPUArchId::cpu as CPUState instead of Object Thomas Huth
2024-03-12 12:43 ` [PULL 36/55] bulk: Call in place single use cpu_env() Thomas Huth
2024-03-12 12:43 ` [PULL 37/55] target: Replace CPU_GET_CLASS(cpu -> obj) in cpu_reset_hold() handler Thomas Huth
2024-03-12 12:43 ` [PULL 38/55] target/alpha: Prefer fast cpu_env() over slower CPU QOM cast macro Thomas Huth
2024-03-12 12:43 ` [PULL 39/55] target/avr: " Thomas Huth
2024-03-12 12:43 ` [PULL 40/55] target/cris: " Thomas Huth
2024-03-12 12:43 ` [PULL 41/55] target/hexagon: " Thomas Huth
2024-03-12 12:43 ` [PULL 42/55] target/i386/hvf: Use CPUState typedef Thomas Huth
2024-03-12 12:43 ` [PULL 43/55] target/loongarch: Prefer fast cpu_env() over slower CPU QOM cast macro Thomas Huth
2024-03-12 12:43 ` [PULL 44/55] target/m68k: " Thomas Huth
2024-03-12 12:43 ` [PULL 45/55] target/microblaze: " Thomas Huth
2024-03-12 12:43 ` [PULL 46/55] target/mips: " Thomas Huth
2024-03-12 12:43 ` [PULL 47/55] target/nios2: " Thomas Huth
2024-03-12 12:43 ` [PULL 48/55] target/openrisc: " Thomas Huth
2024-03-12 12:43 ` [PULL 49/55] target/ppc: " Thomas Huth
2024-03-12 12:43 ` [PULL 50/55] target/rx: " Thomas Huth
2024-03-12 12:43 ` [PULL 51/55] target/sh4: " Thomas Huth
2024-03-12 12:43 ` [PULL 52/55] target/sparc: " Thomas Huth
2024-03-12 12:43 ` [PULL 53/55] target/tricore: " Thomas Huth
2024-03-12 12:43 ` [PULL 54/55] target/xtensa: " Thomas Huth
2024-03-12 12:43 ` [PULL 55/55] user: " Thomas Huth
2024-03-12 21:31 ` [PULL 00/55] Misc ERRP_GUARD() and cpu_env() patches Peter Maydell

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=20240312124339.761630-1-thuth@redhat.com \
    --to=thuth@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.