qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] 6f4e14: hw/arm/virt: Enable MTE via a machine


From: Peter Maydell
Subject: [Qemu-commits] [qemu/qemu] 6f4e14: hw/arm/virt: Enable MTE via a machine property
Date: Mon, 20 Jul 2020 14:30:31 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 6f4e1405b91da0d0a1084ae3aff2bd308432778f
      
https://github.com/qemu/qemu/commit/6f4e1405b91da0d0a1084ae3aff2bd308432778f
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2020-07-20 (Mon, 20 Jul 2020)

  Changed paths:
    M hw/arm/virt.c
    M include/hw/arm/virt.h
    M target/arm/cpu.c
    M target/arm/cpu64.c

  Log Message:
  -----------
  hw/arm/virt: Enable MTE via a machine property

Control this cpu feature via a machine property, much as we do
with secure=on, since both require specialized support in the
machine setup to be functional.

Default MTE to off, since this feature implies extra overhead.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200713213341.590275-2-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 7f6185ed9ca977a9836f35b994e4f85cecae8437
      
https://github.com/qemu/qemu/commit/7f6185ed9ca977a9836f35b994e4f85cecae8437
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2020-07-20 (Mon, 20 Jul 2020)

  Changed paths:
    M hw/arm/virt.c

  Log Message:
  -----------
  hw/arm/virt: Error for MTE enabled with KVM

While we expect KVM to support MTE at some future point,
it certainly won't be ready in time for qemu 5.1.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200713213341.590275-3-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 19bd6aafbd184be963d2b7c24874e3252a7088b7
      
https://github.com/qemu/qemu/commit/19bd6aafbd184be963d2b7c24874e3252a7088b7
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2020-07-20 (Mon, 20 Jul 2020)

  Changed paths:
    M hw/arm/virt.c

  Log Message:
  -----------
  hw/arm/virt: Disable memory hotplug when MTE is enabled

When MTE is enabled, tag memory must exist for all RAM.

It might be possible to simultaneously hot plug tag memory
alongside the corresponding normal memory, but for now just
disable hotplug.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200713213341.590275-4-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: 8edbca515c20bdbb3d2dca3c60dcc5b8ca4fc718
      
https://github.com/qemu/qemu/commit/8edbca515c20bdbb3d2dca3c60dcc5b8ca4fc718
  Author: David CARLIER <devnexen@gmail.com>
  Date:   2020-07-20 (Mon, 20 Jul 2020)

  Changed paths:
    M util/oslib-posix.c

  Log Message:
  -----------
  util: Implement qemu_get_thread_id() for OpenBSD

Implement qemu_get_thread_id() for OpenBSD hosts, using
getthrid().

Signed-off-by: David Carlier <devnexen@gmail.com>
Reviewed-by: Brad Smith <brad@comstyle.com>
Message-id: CA+XhMqxD6gQDBaj8tX0CMEj3si7qYKsM8u1km47e_-U7MC37Pg@mail.gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
[PMM: tidied up commit message]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


  Commit: b51238e251cefb496b60d3db992af175fb354a68
      
https://github.com/qemu/qemu/commit/b51238e251cefb496b60d3db992af175fb354a68
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2020-07-20 (Mon, 20 Jul 2020)

  Changed paths:
    M hw/core/qdev.c
    M include/hw/qdev-core.h
    M include/hw/qdev-properties.h

  Log Message:
  -----------
  qdev: Move doc comments from qdev.c to qdev-core.h

The doc-comments which document the qdev API are split between the
header file and the C source files, because as a project we haven't
been consistent about where we put them.

Move all the doc-comments in qdev.c to the header files, so that
users of the APIs don't have to look at the implementation files for
this information.

In the process, unify them into our doc-comment format and expand on
them in some cases to clarify expected use cases.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200711142425.16283-2-peter.maydell@linaro.org


  Commit: 46ea1be1ee72b778043e60c8a59cbcb53fb8be34
      
https://github.com/qemu/qemu/commit/46ea1be1ee72b778043e60c8a59cbcb53fb8be34
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2020-07-20 (Mon, 20 Jul 2020)

  Changed paths:
    M include/hw/qdev-core.h

  Log Message:
  -----------
  qdev: Document qdev_unrealize()

Add a doc comment for qdev_unrealize(), to go with the new
documentation for the realize part of the qdev lifecycle.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200711142425.16283-3-peter.maydell@linaro.org


  Commit: cd07d7f9f5117954edd9a9bbd97b0442eecf5c49
      
https://github.com/qemu/qemu/commit/cd07d7f9f5117954edd9a9bbd97b0442eecf5c49
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2020-07-20 (Mon, 20 Jul 2020)

  Changed paths:
    M include/hw/qdev-core.h

  Log Message:
  -----------
  qdev: Document GPIO related functions

Add documentation comments for the various qdev functions
related to creating and connecting GPIO lines.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200711142425.16283-4-peter.maydell@linaro.org


  Commit: 3f410039b79c0468e18142c6ddfede6f6f7b0427
      
https://github.com/qemu/qemu/commit/3f410039b79c0468e18142c6ddfede6f6f7b0427
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2020-07-20 (Mon, 20 Jul 2020)

  Changed paths:
    M hw/arm/armsse.c

  Log Message:
  -----------
  hw/arm/armsse: Assert info->num_cpus is in-bounds in armsse_realize()

In armsse_realize() we have a loop over [0, info->num_cpus), which
indexes into various fixed-size arrays in the ARMSSE struct.  This
confuses Coverity, which warns that we might overrun those arrays
(CID 1430326, 1430337, 1430371, 1430414, 1430430).  This can't
actually happen, because the info struct is always one of the entries
in the armsse_variants[] array and num_cpus is either 1 or 2; we also
already assert in armsse_init() that num_cpus is not too large.
However, adding an assert to armsse_realize() like the one in
armsse_init() should help Coverity figure out that these code paths
aren't possible.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20200713143716.9881-1-peter.maydell@linaro.org


  Commit: 2d21dd17c560a574e19ba94d07173924bf74571b
      
https://github.com/qemu/qemu/commit/2d21dd17c560a574e19ba94d07173924bf74571b
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2020-07-20 (Mon, 20 Jul 2020)

  Changed paths:
    M MAINTAINERS
    A docs/system/arm/digic.rst
    M docs/system/target-arm.rst

  Log Message:
  -----------
  docs/system: Briefly document canon-a1100 board

Add skeletal documentation of the canon-a1100 board.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20200713175746.5936-2-peter.maydell@linaro.org


  Commit: b76b60f59bb95f9184bb70ea62f3db7b65730478
      
https://github.com/qemu/qemu/commit/b76b60f59bb95f9184bb70ea62f3db7b65730478
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2020-07-20 (Mon, 20 Jul 2020)

  Changed paths:
    M MAINTAINERS
    A docs/system/arm/collie.rst
    M docs/system/target-arm.rst

  Log Message:
  -----------
  docs/system: Briefly document collie board

Add skeletal documentation of the collie board.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20200713175746.5936-3-peter.maydell@linaro.org


  Commit: bb309000c818b4ff4763ebc38b1c4bfae56ddf37
      
https://github.com/qemu/qemu/commit/bb309000c818b4ff4763ebc38b1c4bfae56ddf37
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2020-07-20 (Mon, 20 Jul 2020)

  Changed paths:
    M MAINTAINERS
    A docs/system/arm/gumstix.rst
    M docs/system/target-arm.rst

  Log Message:
  -----------
  docs/system: Briefly document gumstix boards

Add skeletal documentation of the gumstix boards
('connex' and 'verdex').

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20200713175746.5936-4-peter.maydell@linaro.org


  Commit: 6a0b7505f1fd6769c3f1558fda76464d51e4118a
      
https://github.com/qemu/qemu/commit/6a0b7505f1fd6769c3f1558fda76464d51e4118a
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2020-07-20 (Mon, 20 Jul 2020)

  Changed paths:
    M MAINTAINERS
    A docs/system/arm/virt.rst
    M docs/system/target-arm.rst

  Log Message:
  -----------
  docs/system: Document the arm virt board

Document the arm 'virt' board, which has been undocumented
for far too long given that it is the main recommended board
type for arm guests.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20200713175746.5936-5-peter.maydell@linaro.org


  Commit: af3d69058e09bede9900f266a618ed11f76f49f3
      
https://github.com/qemu/qemu/commit/af3d69058e09bede9900f266a618ed11f76f49f3
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2020-07-20 (Mon, 20 Jul 2020)

  Changed paths:
    M MAINTAINERS
    A docs/system/arm/collie.rst
    A docs/system/arm/digic.rst
    A docs/system/arm/gumstix.rst
    A docs/system/arm/virt.rst
    M docs/system/target-arm.rst
    M hw/arm/armsse.c
    M hw/arm/virt.c
    M hw/core/qdev.c
    M include/hw/arm/virt.h
    M include/hw/qdev-core.h
    M include/hw/qdev-properties.h
    M target/arm/cpu.c
    M target/arm/cpu64.c
    M util/oslib-posix.c

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

target-arm queue:
 * virt: Don't enable MTE emulation by default
 * virt: Diagnose attempts to use MTE with memory-hotplug or KVM
   (rather than silently not working correctly)
 * util: Implement qemu_get_thread_id() for OpenBSD
 * qdev: Add doc comments for qdev_unrealize and GPIO functions,
   and standardize on doc-comments-in-header-file
 * hw/arm/armsse: Assert info->num_cpus is in-bounds in armsse_realize()
 * docs/system: Document canon-a1100, collie, gumstix, virt boards

# gpg: Signature made Mon 20 Jul 2020 13:55:36 BST
# 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-20200720:
  docs/system: Document the arm virt board
  docs/system: Briefly document gumstix boards
  docs/system: Briefly document collie board
  docs/system: Briefly document canon-a1100 board
  hw/arm/armsse: Assert info->num_cpus is in-bounds in armsse_realize()
  qdev: Document GPIO related functions
  qdev: Document qdev_unrealize()
  qdev: Move doc comments from qdev.c to qdev-core.h
  util: Implement qemu_get_thread_id() for OpenBSD
  hw/arm/virt: Disable memory hotplug when MTE is enabled
  hw/arm/virt: Error for MTE enabled with KVM
  hw/arm/virt: Enable MTE via a machine property

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


Compare: https://github.com/qemu/qemu/compare/1e6c50ad8559...af3d69058e09



reply via email to

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