qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] ad99f6: hvf: arm: Use macros for sysreg shift


From: Peter Maydell
Subject: [Qemu-commits] [qemu/qemu] ad99f6: hvf: arm: Use macros for sysreg shift/masking
Date: Mon, 21 Feb 2022 05:32:55 -0800

  Branch: refs/heads/staging
  Home:   https://github.com/qemu/qemu
  Commit: ad99f64f1cfff7c5e7af0e697523d9b7e45423b6
      
https://github.com/qemu/qemu/commit/ad99f64f1cfff7c5e7af0e697523d9b7e45423b6
  Author: Alexander Graf <agraf@csgraf.de>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M target/arm/hvf/hvf.c

  Log Message:
  -----------
  hvf: arm: Use macros for sysreg shift/masking

We are parsing the syndrome field for sysregs in multiple places across
the hvf code, but repeat shift/mask operations with hard coded constants
every time. This is an error prone approach and makes it harder to reason
about the correctness of these operations.

Let's introduce macros that allow us to unify the constants used as well
as create new helpers to extract fields from the sysreg value.

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Alexander Graf <agraf@csgraf.de>
Reviewed-by: Cameron Esfahani <dirty@apple.com <mailto:dirty@apple.com>>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20220209124135.69183-1-agraf@csgraf.de
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 7f6c295cdfeaa229c360cac9a36e4e595aa902ae
      
https://github.com/qemu/qemu/commit/7f6c295cdfeaa229c360cac9a36e4e595aa902ae
  Author: Alexander Graf <agraf@csgraf.de>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M target/arm/hvf/hvf.c

  Log Message:
  -----------
  hvf: arm: Handle unknown ID registers as RES0

Recent Linux versions added support to read ID_AA64ISAR2_EL1. On M1,
those reads trap into QEMU which handles them as faults.

However, AArch64 ID registers should always read as RES0. Let's
handle them accordingly.

This fixes booting Linux 5.17 guests.

Cc: qemu-stable@nongnu.org
Reported-by: Ivan Babrou <ivan@cloudflare.com>
Signed-off-by: Alexander Graf <agraf@csgraf.de>
Message-id: 20220209124135.69183-2-agraf@csgraf.de
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 5e78c98b7cc98619d2740c7c5030aa56fb22e79f
      
https://github.com/qemu/qemu/commit/5e78c98b7cc98619d2740c7c5030aa56fb22e79f
  Author: Bernhard Beschow <shentey@gmail.com>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M hw/core/generic-loader.c
    M hw/core/guest-loader.c
    M hw/display/bcm2835_fb.c
    M hw/display/i2c-ddc.c
    M hw/display/macfb.c
    M hw/display/virtio-vga.c
    M hw/dma/bcm2835_dma.c
    M hw/i386/pc_piix.c
    M hw/i386/sgx-epc.c
    M hw/intc/bcm2835_ic.c
    M hw/intc/bcm2836_control.c
    M hw/ipmi/ipmi.c
    M hw/mem/nvdimm.c
    M hw/mem/pc-dimm.c
    M hw/misc/bcm2835_mbox.c
    M hw/misc/bcm2835_powermgt.c
    M hw/misc/bcm2835_property.c
    M hw/misc/bcm2835_rng.c
    M hw/misc/pvpanic-isa.c
    M hw/misc/pvpanic-pci.c
    M hw/net/fsl_etsec/etsec.c
    M hw/ppc/prep_systemio.c
    M hw/ppc/spapr_iommu.c
    M hw/s390x/s390-pci-bus.c
    M hw/s390x/sclp.c
    M hw/s390x/tod-kvm.c
    M hw/s390x/tod-tcg.c
    M hw/s390x/tod.c
    M hw/scsi/lsi53c895a.c
    M hw/sd/allwinner-sdhost.c
    M hw/sd/aspeed_sdhci.c
    M hw/sd/bcm2835_sdhost.c
    M hw/sd/cadence_sdhci.c
    M hw/sd/npcm7xx_sdhci.c
    M hw/usb/dev-mtp.c
    M hw/usb/host-libusb.c
    M hw/vfio/igd.c
    M hw/virtio/virtio-pmem.c
    M qom/object.c

  Log Message:
  -----------
  Mark remaining global TypeInfo instances as const

More than 1k of TypeInfo instances are already marked as const. Mark the
remaining ones, too.

This commit was created with:
  git grep -z -l 'static TypeInfo' -- '*.c' | \
  xargs -0 sed -i 's/static TypeInfo/static const TypeInfo/'

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Corey Minyard <cminyard@mvista.com>
Message-id: 20220117145805.173070-2-shentey@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 9a86e023aaa70e05ad9e5354f146c1477b5f5911
      
https://github.com/qemu/qemu/commit/9a86e023aaa70e05ad9e5354f146c1477b5f5911
  Author: Bernhard Beschow <shentey@gmail.com>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M scripts/checkpatch.pl

  Log Message:
  -----------
  checkpatch: Ensure that TypeInfos are const

Now that all static TypeInfo instances are declared const, prevent that
new non-const instances are created.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20220117145805.173070-3-shentey@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: dcfb1d0476559cabe45ffbfb1d7667909ab309c2
      
https://github.com/qemu/qemu/commit/dcfb1d0476559cabe45ffbfb1d7667909ab309c2
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M target/arm/cpu.c
    M target/arm/cpu64.c

  Log Message:
  -----------
  target/arm: Move '-cpu host' code to cpu64.c

Now that KVM has dropped AArch32 host support, the 'host' CPU type is
always AArch64, and we can move it to cpu64.c.  This move will allow
us to share code between it and '-cpu max', which should behave
the same as '-cpu host' when using KVM or HVF.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Alexander Graf <agraf@csgraf.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220204165506.2846058-2-peter.maydell@linaro.org


  Commit: 73cc9ee6bfadcdbd079cf4871179ef5760146d1c
      
https://github.com/qemu/qemu/commit/73cc9ee6bfadcdbd079cf4871179ef5760146d1c
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M target/arm/cpu64.c

  Log Message:
  -----------
  target/arm: Use aarch64_cpu_register() for 'host' CPU type

Use the aarch64_cpu_register() machinery to register the 'host' CPU
type.  This doesn't gain us anything functionally, but it does mean
that the code for initializing it looks more like that for the other
CPU types, in that its initfn then doesn't need to call
arm_cpu_post_init() (because aarch64_cpu_instance_init() does that
for it).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Alexander Graf <agraf@csgraf.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220204165506.2846058-3-peter.maydell@linaro.org


  Commit: 0baa21be497ddbd8f4eea920464aaa096004733b
      
https://github.com/qemu/qemu/commit/0baa21be497ddbd8f4eea920464aaa096004733b
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M target/arm/cpu64.c

  Log Message:
  -----------
  target/arm: Make KVM -cpu max exactly like -cpu host

Currently for KVM the intention is that '-cpu max' and '-cpu host'
are the same thing, but because we did this with two separate
pieces of code they have got a little bit out of sync. Specifically,
'max' has a 'sve-max-vq' property, and 'host' does not.

Bring the two together by having the initfn for 'max' actually
call the initfn for 'host'. This will result in 'max' no longer
exposing the 'sve-max-vq' property when using KVM.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Alexander Graf <agraf@csgraf.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220204165506.2846058-4-peter.maydell@linaro.org


  Commit: ddaebdda53fc850d947e5983b14ae113e2bf805a
      
https://github.com/qemu/qemu/commit/ddaebdda53fc850d947e5983b14ae113e2bf805a
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M target/arm/cpu64.c

  Log Message:
  -----------
  target/arm: Unindent unnecessary else-clause

Now that the if() branch of the condition in aarch64_max_initfn()
returns early, we don't need to keep the rest of the code in
the function inside an else block. Remove the else, unindenting
that code.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Alexander Graf <agraf@csgraf.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220204165506.2846058-5-peter.maydell@linaro.org


  Commit: 6ee609b7522b712af76225792e55596d85d8fd1f
      
https://github.com/qemu/qemu/commit/6ee609b7522b712af76225792e55596d85d8fd1f
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M target/arm/cpu64.c

  Log Message:
  -----------
  target/arm: Fix '-cpu max' for HVF

Currently when using hvf we mishandle '-cpu max': we fall through to
the TCG version of its initfn, which then sets a lot of feature bits
that the real host CPU doesn't have. The hvf accelerator code then
exposes these bogus ID register values to the guest because it
doesn't check that the host really has the features.

Make '-cpu host' be like '-cpu max' for hvf, as we do with kvm.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Alexander Graf <agraf@csgraf.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220204165506.2846058-6-peter.maydell@linaro.org


  Commit: 92d6528dbb20c6aec4022dfd63c7ffee44f19f77
      
https://github.com/qemu/qemu/commit/92d6528dbb20c6aec4022dfd63c7ffee44f19f77
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M target/arm/cpu64.c

  Log Message:
  -----------
  target/arm: Support PAuth extension for hvf

Currently we don't allow guests under hvf to use the PAuth extension,
because we didn't have any special code to handle that, and therefore
in arm_cpu_pauth_finalize() we will sanitize the ID_AA64ISAR1 value
the guest sees to clear the PAuth related fields.

Add support for this in the same way that KVM does it, by defaulting
to "PAuth enabled" if the host CPU has it and allowing the user to
disable it via '-cpu pauth=no' on the command line.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Alexander Graf <agraf@csgraf.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220204165506.2846058-7-peter.maydell@linaro.org


  Commit: b5bf5a53d1e02eb0c7fdc6271e10ebd0eda79813
      
https://github.com/qemu/qemu/commit/b5bf5a53d1e02eb0c7fdc6271e10ebd0eda79813
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M docs/devel/kconfig.rst
    M hw/i2c/Kconfig
    M hw/rtc/Kconfig
    M hw/sensor/Kconfig

  Log Message:
  -----------
  Kconfig: Add I2C_DEVICES device group

Currently there is no way for a board model's Kconfig stanza to
say "I have an i2c bus which the user can plug an i2c device into,
build all the free-standing i2c devices". The Kconfig mechanism
for this is the "device group". Add an I2C_DEVICES group along
the same lines as the existing PCI_DEVICES. Simple free-standing
i2c devices which a user might plausibly want to be able to
plug in on the QEMU commandline should have
   default y if I2C_DEVICES
and board models which have an i2c bus that is user-accessible
should use
   imply I2C_DEVICES
to cause those pluggable devices to be built.

In this commit we mark only a fairly conservative set of i2c devices
as belonging to the I2C_DEVICES group: the simple sensors and RTCs
(not including PMBus devices or devices which need GPIO lines to be
connected).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Hao Wu <wuhaotsh@google.com>
Message-id: 20220208155911.3408455-2-peter.maydell@linaro.org


  Commit: e117e9748f6946dcddfea6f157f9ab2b5f069f70
      
https://github.com/qemu/qemu/commit/e117e9748f6946dcddfea6f157f9ab2b5f069f70
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M hw/arm/Kconfig

  Log Message:
  -----------
  Kconfig: Add 'imply I2C_DEVICES' on boards with available i2c bus

For arm boards with an i2c bus which a user could reasonably
want to plug arbitrary devices, add 'imply I2C_DEVICES' to the
Kconfig stanza.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Hao Wu <wuhaotsh@google.com>
Message-id: 20220208155911.3408455-3-peter.maydell@linaro.org


  Commit: 542e87c7a2d90076b07611987fd3d789865e5ea1
      
https://github.com/qemu/qemu/commit/542e87c7a2d90076b07611987fd3d789865e5ea1
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M hw/arm/armv7m.c

  Log Message:
  -----------
  hw/arm/armv7m: Handle disconnected clock inputs

In the armv7m object, handle clock inputs that aren't connected.
This is always an error for 'cpuclk'. For 'refclk' it is OK for this
to be disconnected, but we need to handle it by not trying to connect
a sourceless-clock to the systick device.

This fixes a bug where on the mps2-an521 and similar boards (which
do not have a refclk) the systick device incorrectly reset with
SYST_CSR.CLKSOURCE 0 ("use refclk") rather than 1 ("use CPU clock").

Cc: qemu-stable@nongnu.org
Reported-by: Richard Petri <git@rpls.de>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220208171643.3486277-1-peter.maydell@linaro.org


  Commit: b85ea5fa2f0bc281b9700a51ba69aebcc76b108c
      
https://github.com/qemu/qemu/commit/b85ea5fa2f0bc281b9700a51ba69aebcc76b108c
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M backends/hostmem-file.c
    M backends/hostmem.c
    M hw/virtio/virtio-balloon.c
    A include/qemu/madvise.h
    M include/qemu/osdep.h
    M migration/postcopy-ram.c
    M migration/qemu-file.c
    M migration/ram.c
    M softmmu/physmem.c
    M tcg/region.c
    M util/osdep.c
    M util/oslib-posix.c

  Log Message:
  -----------
  include: Move qemu_madvise() and related #defines to new qemu/madvise.h

The function qemu_madvise() and the QEMU_MADV_* constants associated
with it are used in only 10 files.  Move them out of osdep.h to a new
qemu/madvise.h header that is included where it is needed.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220208200856.3558249-2-peter.maydell@linaro.org


  Commit: f2241d16eaa142b4092b11ace48f2a0472bf4ad6
      
https://github.com/qemu/qemu/commit/f2241d16eaa142b4092b11ace48f2a0472bf4ad6
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    A include/qemu/mprotect.h
    M include/qemu/osdep.h
    M tcg/region.c
    M util/osdep.c

  Log Message:
  -----------
  include: Move qemu_mprotect_*() to new qemu/mprotect.h

The qemu_mprotect_*() family of functions are used in very few files;
move them from osdep.h to a new qemu/mprotect.h.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220208200856.3558249-3-peter.maydell@linaro.org


  Commit: 5b3e34315a8b2d985299735d685c71d481815bef
      
https://github.com/qemu/qemu/commit/5b3e34315a8b2d985299735d685c71d481815bef
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M include/qemu/mmap-alloc.h
    M include/qemu/osdep.h

  Log Message:
  -----------
  include: Move QEMU_MAP_* constants to mmap-alloc.h

The QEMU_MAP_* constants are used only as arguments to the
qemu_ram_mmap() function.  Move them to mmap-alloc.h, where that
function's prototype is defined.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220208200856.3558249-4-peter.maydell@linaro.org


  Commit: ad768e6f2a3397ec88ae874ad743df5d7c8c1936
      
https://github.com/qemu/qemu/commit/ad768e6f2a3397ec88ae874ad743df5d7c8c1936
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M accel/tcg/translate-all.c
    A include/qemu/cacheinfo.h
    M include/qemu/osdep.h
    M plugins/loader.c
    M tcg/region.c
    M tcg/tcg.c
    M util/atomic64.c
    M util/cacheflush.c
    M util/cacheinfo.c

  Log Message:
  -----------
  include: Move qemu_[id]cache_* declarations to new qemu/cacheinfo.h

The qemu_icache_linesize, qemu_icache_linesize_log,
qemu_dcache_linesize, and qemu_dcache_linesize_log variables are not
used in many files.  Move them out of osdep.h to a new
qemu/cacheinfo.h, and document them.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220208200856.3558249-5-peter.maydell@linaro.org


  Commit: 15e09912b74c01bf8a8eebb4e61f4d0dbfe74513
      
https://github.com/qemu/qemu/commit/15e09912b74c01bf8a8eebb4e61f4d0dbfe74513
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M hw/arm/nseries.c
    M hw/ide/core.c
    M hw/scsi/megasas.c
    M hw/scsi/scsi-bus.c
    M hw/scsi/scsi-disk.c
    A include/qemu/hw-version.h
    M include/qemu/osdep.h
    M softmmu/vl.c
    M target/i386/cpu.c
    M target/s390x/cpu_models.c
    M util/osdep.c

  Log Message:
  -----------
  include: Move hardware version declarations to new qemu/hw-version.h

The "hardware version" machinery (qemu_set_hw_version(),
qemu_hw_version(), and the QEMU_HW_VERSION define) is used by fewer
than 10 files.  Move it out from osdep.h into a new
qemu/hw-version.h.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220208200856.3558249-6-peter.maydell@linaro.org


  Commit: af643498d2541113e64602624b788a2d7deab084
      
https://github.com/qemu/qemu/commit/af643498d2541113e64602624b788a2d7deab084
  Author: Akihiko Odaki <akihiko.odaki@gmail.com>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M MAINTAINERS

  Log Message:
  -----------
  MAINTAINERS: Add Akihiko Odaki to macOS-relateds

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20220213021215.1974-1-akihiko.odaki@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 432732b5e455ef0b28304004a3ca2b96ae33e39d
      
https://github.com/qemu/qemu/commit/432732b5e455ef0b28304004a3ca2b96ae33e39d
  Author: Pavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M hw/timer/a9gtimer.c

  Log Message:
  -----------
  hw/timer: fix a9gtimer vmstate

A9 gtimer includes global control field and number of per-cpu fields.
But only per-cpu ones are migrated. This patch adds a subsection for
global control field migration.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
Message-id: 164422345976.2186660.1104517592452494510.stgit@pasha-ThinkPad-X280
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: ca6d63c20ba25e8e931157fbe7f144fb397c0f72
      
https://github.com/qemu/qemu/commit/ca6d63c20ba25e8e931157fbe7f144fb397c0f72
  Author: Patrick Venture <venture@google.com>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M docs/system/arm/nuvoton.rst
    M hw/arm/npcm7xx_boards.c

  Log Message:
  -----------
  hw/arm: add initial mori-bmc board

This is the BMC attached to the OpenBMC Mori board.

Signed-off-by: Patrick Venture <venture@google.com>
Reviewed-by: Chris Rauer <crauer@google.com>
Reviewed-by: Ilkyun Choi <ikchoi@google.com>
Message-id: 20220208233104.284425-1-venture@google.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 0cd723f2d0afc48bb44c40d8aa1bce68848667ad
      
https://github.com/qemu/qemu/commit/0cd723f2d0afc48bb44c40d8aa1bce68848667ad
  Author: Philippe Mathieu-Daudé <f4bug@amsat.org>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M ui/cocoa.m

  Log Message:
  -----------
  ui/cocoa: Remove allowedFileTypes restriction in SavePanel

setAllowedFileTypes is deprecated in macOS 12.

Per Akihiko Odaki [*]:

  An image file, which is being chosen by the panel, can be a
  raw file and have a variety of file extensions and many are not
  covered by the provided list (e.g. "udf"). Other platforms like
  GTK can provide an option to open a file with an extension not
  listed, but Cocoa can't. It forces the user to rename the file
  to give an extension in the list. Moreover, Cocoa does not tell
  which extensions are in the list so the user needs to read the
  source code, which is pretty bad.

Since this code is harming the usability rather than improving it,
simply remove the [NSSavePanel allowedFileTypes:] call, fixing:

  [2789/6622] Compiling Objective-C object libcommon.fa.p/ui_cocoa.m.o
  ui/cocoa.m:1411:16: error: 'setAllowedFileTypes:' is deprecated: first 
deprecated in macOS 12.0 - Use -allowedContentTypes instead 
[-Werror,-Wdeprecated-declarations]
      [openPanel setAllowedFileTypes: supportedImageFileTypes];
                 ^
  
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:215:49:
 note: property 'allowedFileTypes' is declared deprecated here
  @property (nullable, copy) NSArray<NSString *> *allowedFileTypes 
API_DEPRECATED("Use -allowedContentTypes instead", macos(10.3,12.0));
                                                  ^
  
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:215:49:
 note: 'setAllowedFileTypes:' has been explicitly marked deprecated here
  FAILED: libcommon.fa.p/ui_cocoa.m.o

[*] 
https://lore.kernel.org/qemu-devel/4dde2e66-63cb-4390-9538-c032310db3e3@gmail.com/

Suggested-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com>
Tested-by: Roman Bolshakov <r.bolshakov@yadro.com>
Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20220215080307.69550-11-f4bug@amsat.org
Reviewed by: Cameron Esfahani <dirty@apple.com>
Reviewed-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Tested-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: b597278d5780b15759c31a944f21f8b1491902fe
      
https://github.com/qemu/qemu/commit/b597278d5780b15759c31a944f21f8b1491902fe
  Author: Akihiko Odaki <akihiko.odaki@gmail.com>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M ui/cocoa.m

  Log Message:
  -----------
  ui/cocoa: Do not alert even without block devices

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Message-id: 20220215080307.69550-13-f4bug@amsat.org
Message-Id: <20220213021418.2155-1-akihiko.odaki@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: ca511604925eef8572e22ecbf0d3c758d7277924
      
https://github.com/qemu/qemu/commit/ca511604925eef8572e22ecbf0d3c758d7277924
  Author: Akihiko Odaki <akihiko.odaki@gmail.com>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M ui/cocoa.m

  Log Message:
  -----------
  ui/cocoa: Fix the leak of qemu_console_get_label

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20220215080307.69550-14-f4bug@amsat.org
Message-Id: <20220213021329.2066-1-akihiko.odaki@gmail.com>
[PMD: Use g_autofree, suggested by Zoltan BALATON]
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 477c3b934a47adf7de285863f59d6e4503dd1a6d
      
https://github.com/qemu/qemu/commit/477c3b934a47adf7de285863f59d6e4503dd1a6d
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2022-02-21 (Mon, 21 Feb 2022)

  Changed paths:
    M MAINTAINERS
    M accel/tcg/translate-all.c
    M backends/hostmem-file.c
    M backends/hostmem.c
    M docs/devel/kconfig.rst
    M docs/system/arm/nuvoton.rst
    M hw/arm/Kconfig
    M hw/arm/armv7m.c
    M hw/arm/npcm7xx_boards.c
    M hw/arm/nseries.c
    M hw/core/generic-loader.c
    M hw/core/guest-loader.c
    M hw/display/bcm2835_fb.c
    M hw/display/i2c-ddc.c
    M hw/display/macfb.c
    M hw/display/virtio-vga.c
    M hw/dma/bcm2835_dma.c
    M hw/i2c/Kconfig
    M hw/i386/pc_piix.c
    M hw/i386/sgx-epc.c
    M hw/ide/core.c
    M hw/intc/bcm2835_ic.c
    M hw/intc/bcm2836_control.c
    M hw/ipmi/ipmi.c
    M hw/mem/nvdimm.c
    M hw/mem/pc-dimm.c
    M hw/misc/bcm2835_mbox.c
    M hw/misc/bcm2835_powermgt.c
    M hw/misc/bcm2835_property.c
    M hw/misc/bcm2835_rng.c
    M hw/misc/pvpanic-isa.c
    M hw/misc/pvpanic-pci.c
    M hw/net/fsl_etsec/etsec.c
    M hw/ppc/prep_systemio.c
    M hw/ppc/spapr_iommu.c
    M hw/rtc/Kconfig
    M hw/s390x/s390-pci-bus.c
    M hw/s390x/sclp.c
    M hw/s390x/tod-kvm.c
    M hw/s390x/tod-tcg.c
    M hw/s390x/tod.c
    M hw/scsi/lsi53c895a.c
    M hw/scsi/megasas.c
    M hw/scsi/scsi-bus.c
    M hw/scsi/scsi-disk.c
    M hw/sd/allwinner-sdhost.c
    M hw/sd/aspeed_sdhci.c
    M hw/sd/bcm2835_sdhost.c
    M hw/sd/cadence_sdhci.c
    M hw/sd/npcm7xx_sdhci.c
    M hw/sensor/Kconfig
    M hw/timer/a9gtimer.c
    M hw/usb/dev-mtp.c
    M hw/usb/host-libusb.c
    M hw/vfio/igd.c
    M hw/virtio/virtio-balloon.c
    M hw/virtio/virtio-pmem.c
    A include/qemu/cacheinfo.h
    A include/qemu/hw-version.h
    A include/qemu/madvise.h
    M include/qemu/mmap-alloc.h
    A include/qemu/mprotect.h
    M include/qemu/osdep.h
    M migration/postcopy-ram.c
    M migration/qemu-file.c
    M migration/ram.c
    M plugins/loader.c
    M qom/object.c
    M scripts/checkpatch.pl
    M softmmu/physmem.c
    M softmmu/vl.c
    M target/arm/cpu.c
    M target/arm/cpu64.c
    M target/arm/hvf/hvf.c
    M target/i386/cpu.c
    M target/s390x/cpu_models.c
    M tcg/region.c
    M tcg/tcg.c
    M ui/cocoa.m
    M util/atomic64.c
    M util/cacheflush.c
    M util/cacheinfo.c
    M util/osdep.c
    M util/oslib-posix.c

  Log Message:
  -----------
  Merge remote-tracking branch 
'remotes/pmaydell/tags/pull-target-arm-20220221-1' into staging

arm, cocoa and misc:
 * MAINTAINERS file updates
 * Mark remaining global TypeInfo instances as const
 * checkpatch: Ensure that TypeInfos are const
 * arm hvf: Handle unknown ID registers as RES0
 * Make KVM -cpu max exactly like -cpu host
 * Fix '-cpu max' for HVF
 * Support PAuth extension for hvf
 * Kconfig: Add I2C_DEVICES device group
 * Kconfig: Add 'imply I2C_DEVICES' on boards with available i2c bus
 * hw/arm/armv7m: Handle disconnected clock inputs
 * osdep.h: pull out various things into new header files
 * hw/timer: fix a9gtimer vmstate
 * hw/arm: add initial mori-bmc board
 * ui/cocoa: Remove allowedFileTypes restriction in SavePanel
 * ui/cocoa: Do not alert even without block devices
 * ui/cocoa: Fix the leak of qemu_console_get_label

# gpg: Signature made Mon 21 Feb 2022 13:30:45 GMT
# gpg:                using RSA key E1A5C593CD419DE28E8315CF3C2525ED14360CDE
# gpg:                issuer "peter.maydell@linaro.org"
# gpg: Good signature from "Peter Maydell <peter.maydell@linaro.org>" [ultimate]
# gpg:                 aka "Peter Maydell <pmaydell@gmail.com>" [ultimate]
# gpg:                 aka "Peter Maydell <pmaydell@chiark.greenend.org.uk>" 
[ultimate]
# Primary key fingerprint: E1A5 C593 CD41 9DE2 8E83  15CF 3C25 25ED 1436 0CDE

* remotes/pmaydell/tags/pull-target-arm-20220221-1: (25 commits)
  ui/cocoa: Fix the leak of qemu_console_get_label
  ui/cocoa: Do not alert even without block devices
  ui/cocoa: Remove allowedFileTypes restriction in SavePanel
  hw/arm: add initial mori-bmc board
  hw/timer: fix a9gtimer vmstate
  MAINTAINERS: Add Akihiko Odaki to macOS-relateds
  include: Move hardware version declarations to new qemu/hw-version.h
  include: Move qemu_[id]cache_* declarations to new qemu/cacheinfo.h
  include: Move QEMU_MAP_* constants to mmap-alloc.h
  include: Move qemu_mprotect_*() to new qemu/mprotect.h
  include: Move qemu_madvise() and related #defines to new qemu/madvise.h
  hw/arm/armv7m: Handle disconnected clock inputs
  Kconfig: Add 'imply I2C_DEVICES' on boards with available i2c bus
  Kconfig: Add I2C_DEVICES device group
  target/arm: Support PAuth extension for hvf
  target/arm: Fix '-cpu max' for HVF
  target/arm: Unindent unnecessary else-clause
  target/arm: Make KVM -cpu max exactly like -cpu host
  target/arm: Use aarch64_cpu_register() for 'host' CPU type
  target/arm: Move '-cpu host' code to cpu64.c
  ...

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


Compare: https://github.com/qemu/qemu/compare/814f84dcd8cf...477c3b934a47



reply via email to

[Prev in Thread] Current Thread [Next in Thread]