qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] 6567ba: utils: Use fixed-point arithmetic in


From: Peter Maydell
Subject: [Qemu-commits] [qemu/qemu] 6567ba: utils: Use fixed-point arithmetic in qemu_strtosz
Date: Thu, 18 Mar 2021 08:03:44 -0700

  Branch: refs/heads/staging
  Home:   https://github.com/qemu/qemu
  Commit: 6567ba0c60d6e1366f7ac6e77665730e657e8eca
      
https://github.com/qemu/qemu/commit/6567ba0c60d6e1366f7ac6e77665730e657e8eca
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-03-17 (Wed, 17 Mar 2021)

  Changed paths:
    M tests/unit/test-cutils.c
    M util/cutils.c

  Log Message:
  -----------
  utils: Use fixed-point arithmetic in qemu_strtosz

Once we've parsed the fractional value, extract it into an integral
64-bit fraction.  Perform the scaling with integer arithmetic, and
simplify the overflow detection.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210315185117.1986240-2-richard.henderson@linaro.org>


  Commit: 279d0a5b1e6b81f88f95b889de8356a331ea8380
      
https://github.com/qemu/qemu/commit/279d0a5b1e6b81f88f95b889de8356a331ea8380
  Author: Matthias Weckbecker <matthias@weckbecker.name>
  Date:   2021-03-17 (Wed, 17 Mar 2021)

  Changed paths:
    M tests/plugin/meson.build
    A tests/plugin/syscall.c

  Log Message:
  -----------
  plugins: new syscalls plugin

This commit adds a new syscalls plugin that displays the syscalls
as they are executed and returned. This plugin outputs the number
of the syscall as well as the syscall return value.

Works in *-user only.

Essentially, this commit restores:

  https://lists.gnu.org/archive/html/qemu-devel/2018-06/msg00846.html

by using the new QEMU plugin API.

Signed-off-by: Matthias Weckbecker <matthias@weckbecker.name>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20200812115816.4454-1-matthias@weckbecker.name>
Message-Id: <20210312172821.31647-2-alex.bennee@linaro.org>


  Commit: 787148bf928a54b5cc86f5b434f9399e9737679c
      
https://github.com/qemu/qemu/commit/787148bf928a54b5cc86f5b434f9399e9737679c
  Author: Aaron Lindsay <aaron@os.amperecomputing.com>
  Date:   2021-03-17 (Wed, 17 Mar 2021)

  Changed paths:
    M contrib/plugins/hotpages.c
    M contrib/plugins/hwprofile.c
    M include/qemu/qemu-plugin.h
    M plugins/api.c

  Log Message:
  -----------
  plugins: Expose physical addresses instead of device offsets

This allows plugins to query for full virtual-to-physical address
translation for a given `qemu_plugin_hwaddr` and stops exposing the
offset within the device itself. As this change breaks the API,
QEMU_PLUGIN_VERSION is incremented.

Signed-off-by: Aaron Lindsay <aaron@os.amperecomputing.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210309202802.211756-1-aaron@os.amperecomputing.com>
Message-Id: <20210312172821.31647-3-alex.bennee@linaro.org>


  Commit: 841dcc0813155087f11ef02790f9650a1e199c5b
      
https://github.com/qemu/qemu/commit/841dcc0813155087f11ef02790f9650a1e199c5b
  Author: Alex Bennée <alex.bennee@linaro.org>
  Date:   2021-03-17 (Wed, 17 Mar 2021)

  Changed paths:
    M include/qemu/qemu-plugin.h

  Log Message:
  -----------
  plugins: expand kernel-doc for qemu_info_t

It seems kernel-doc struggles a bit with typedef structs but with
enough encouragement we can get something out of it.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210312172821.31647-5-alex.bennee@linaro.org>


  Commit: 1caa8d9f2c38464242f9cf366cdc25b78d8308b4
      
https://github.com/qemu/qemu/commit/1caa8d9f2c38464242f9cf366cdc25b78d8308b4
  Author: Alex Bennée <alex.bennee@linaro.org>
  Date:   2021-03-17 (Wed, 17 Mar 2021)

  Changed paths:
    M include/qemu/qemu-plugin.h

  Log Message:
  -----------
  plugins: cleanup kernel-doc for qemu_plugin_install

kernel-doc doesn't like multiple Note sections. Also add an explicit
Return.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210312172821.31647-6-alex.bennee@linaro.org>


  Commit: c4f19122d998c875363ab42adf491a416ae79ed0
      
https://github.com/qemu/qemu/commit/c4f19122d998c875363ab42adf491a416ae79ed0
  Author: Alex Bennée <alex.bennee@linaro.org>
  Date:   2021-03-17 (Wed, 17 Mar 2021)

  Changed paths:
    M include/qemu/qemu-plugin.h

  Log Message:
  -----------
  plugins: expand the callback typedef kernel-docs

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210312172821.31647-7-alex.bennee@linaro.org>


  Commit: 83b9c2bfa426fcb20bc826f6940ad00d2307e4d2
      
https://github.com/qemu/qemu/commit/83b9c2bfa426fcb20bc826f6940ad00d2307e4d2
  Author: Alex Bennée <alex.bennee@linaro.org>
  Date:   2021-03-17 (Wed, 17 Mar 2021)

  Changed paths:
    M include/qemu/qemu-plugin.h

  Log Message:
  -----------
  plugins: expand the typedef kernel-docs for translation

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210312172821.31647-8-alex.bennee@linaro.org>


  Commit: a40d3819e6917454311f06c0b00e7210e3025825
      
https://github.com/qemu/qemu/commit/a40d3819e6917454311f06c0b00e7210e3025825
  Author: Alex Bennée <alex.bennee@linaro.org>
  Date:   2021-03-17 (Wed, 17 Mar 2021)

  Changed paths:
    M include/qemu/qemu-plugin.h

  Log Message:
  -----------
  plugins: add qemu_plugin_cb_flags to kernel-doc

Also add a note to explain currently they are unused.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210312172821.31647-9-alex.bennee@linaro.org>


  Commit: fd6744a49527ed18dc6cef15d801c7964f652e3c
      
https://github.com/qemu/qemu/commit/fd6744a49527ed18dc6cef15d801c7964f652e3c
  Author: Alex Bennée <alex.bennee@linaro.org>
  Date:   2021-03-17 (Wed, 17 Mar 2021)

  Changed paths:
    M include/qemu/qemu-plugin.h

  Log Message:
  -----------
  plugins: add qemu_plugin_id_t to kernel-doc

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210312172821.31647-10-alex.bennee@linaro.org>


  Commit: 8bc9a4d46db6a6ec88a35c44a0efbd5eae222124
      
https://github.com/qemu/qemu/commit/8bc9a4d46db6a6ec88a35c44a0efbd5eae222124
  Author: Alex Bennée <alex.bennee@linaro.org>
  Date:   2021-03-17 (Wed, 17 Mar 2021)

  Changed paths:
    M include/qemu/qemu-plugin.h

  Log Message:
  -----------
  plugins: expand inline exec kernel-doc documentation.

Remove the extraneous @cb parameter and document the non-atomic nature
of the INLINE_ADD_U64 operation.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210312172821.31647-11-alex.bennee@linaro.org>


  Commit: 8affbacb06cc06c70fa2a3a2e585b93e6b113bb7
      
https://github.com/qemu/qemu/commit/8affbacb06cc06c70fa2a3a2e585b93e6b113bb7
  Author: Alex Bennée <alex.bennee@linaro.org>
  Date:   2021-03-17 (Wed, 17 Mar 2021)

  Changed paths:
    M include/qemu/qemu-plugin.h

  Log Message:
  -----------
  plugins: expand kernel-doc for instruction query and instrumentation

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210312172821.31647-12-alex.bennee@linaro.org>


  Commit: fc292a7e7c455e89d775f631d0e00ccd1231600b
      
https://github.com/qemu/qemu/commit/fc292a7e7c455e89d775f631d0e00ccd1231600b
  Author: Alex Bennée <alex.bennee@linaro.org>
  Date:   2021-03-17 (Wed, 17 Mar 2021)

  Changed paths:
    M include/qemu/qemu-plugin.h

  Log Message:
  -----------
  plugins: expand kernel-doc for memory query and instrumentation

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210312172821.31647-13-alex.bennee@linaro.org>


  Commit: a2b88169777f8651427757e3407f0c10f2ef336f
      
https://github.com/qemu/qemu/commit/a2b88169777f8651427757e3407f0c10f2ef336f
  Author: Yonggang Luo <luoyonggang@gmail.com>
  Date:   2021-03-17 (Wed, 17 Mar 2021)

  Changed paths:
    M plugins/api.c

  Log Message:
  -----------
  plugins: getting qemu_plugin_get_hwaddr only expose one function prototype

This is used for counting how much function are export to qemu plugin.

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20201013002806.1447-2-luoyonggang@gmail.com>
Message-Id: <20210312172821.31647-14-alex.bennee@linaro.org>


  Commit: 38c4101deba795214b5b4d6ce2826fd050ce1a9d
      
https://github.com/qemu/qemu/commit/38c4101deba795214b5b4d6ce2826fd050ce1a9d
  Author: Yonggang Luo <luoyonggang@gmail.com>
  Date:   2021-03-17 (Wed, 17 Mar 2021)

  Changed paths:
    M include/qemu/qemu-plugin.h

  Log Message:
  -----------
  plugins: Fixes typo in qemu-plugin.h

Getting the comment consistence with the function name

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20201013002806.1447-3-luoyonggang@gmail.com>
Message-Id: <20210312172821.31647-15-alex.bennee@linaro.org>


  Commit: 9e7118023fda7c29016038e2292d4d14129b63da
      
https://github.com/qemu/qemu/commit/9e7118023fda7c29016038e2292d4d14129b63da
  Author: Philippe Mathieu-Daudé <philmd@redhat.com>
  Date:   2021-03-17 (Wed, 17 Mar 2021)

  Changed paths:
    M hw/core/Kconfig
    M hw/core/meson.build

  Log Message:
  -----------
  hw/core: Only build guest-loader if libfdt is available

Add a Kconfig entry for guest-loader so we can optionally deselect
it (default is built in), and add a Meson dependency on libfdt.

This fixes when building with --disable-fdt:

  /usr/bin/ld: libcommon.fa.p/hw_core_guest-loader.c.o: in function 
`loader_insert_platform_data':
  hw/core/guest-loader.c:56: undefined reference to `qemu_fdt_add_subnode'
  /usr/bin/ld: hw/core/guest-loader.c:57: undefined reference to 
`qemu_fdt_setprop'
  /usr/bin/ld: hw/core/guest-loader.c:61: undefined reference to 
`qemu_fdt_setprop_string_array'
  /usr/bin/ld: hw/core/guest-loader.c:68: undefined reference to 
`qemu_fdt_setprop_string'
  /usr/bin/ld: hw/core/guest-loader.c:74: undefined reference to 
`qemu_fdt_setprop_string_array'
  collect2: error: ld returned 1 exit status

Fixes: a33ff6d2c6b ("hw/core: implement a guest-loader to support static 
hypervisor guests")
Reported-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20210315170439.2868903-1-philmd@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>


  Commit: 6e71c36557ed41017e634ae392fa80f03ced7fa1
      
https://github.com/qemu/qemu/commit/6e71c36557ed41017e634ae392fa80f03ced7fa1
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-03-18 (Thu, 18 Mar 2021)

  Changed paths:
    M contrib/plugins/hotpages.c
    M contrib/plugins/hwprofile.c
    M hw/core/Kconfig
    M hw/core/meson.build
    M include/qemu/qemu-plugin.h
    M plugins/api.c
    M tests/plugin/meson.build
    A tests/plugin/syscall.c

  Log Message:
  -----------
  Merge remote-tracking branch 
'remotes/stsquad/tags/pull-misc-6.0-updates-170321-2' into staging

Final fixes for 6.0

  - plugins physical address changes
  - syscall tracking plugin
  - plugin kernel-doc comments (without integration)
  - libfdt build fix for guest-loader

# gpg: Signature made Wed 17 Mar 2021 07:19:23 GMT
# gpg:                using RSA key 6685AE99E75167BCAFC8DF35FBD0DB095A9E2A44
# gpg: Good signature from "Alex Bennée (Master Work Key) 
<alex.bennee@linaro.org>" [full]
# Primary key fingerprint: 6685 AE99 E751 67BC AFC8  DF35 FBD0 DB09 5A9E 2A44

* remotes/stsquad/tags/pull-misc-6.0-updates-170321-2:
  hw/core: Only build guest-loader if libfdt is available
  plugins: Fixes typo in qemu-plugin.h
  plugins: getting qemu_plugin_get_hwaddr only expose one function prototype
  plugins: expand kernel-doc for memory query and instrumentation
  plugins: expand kernel-doc for instruction query and instrumentation
  plugins: expand inline exec kernel-doc documentation.
  plugins: add qemu_plugin_id_t to kernel-doc
  plugins: add qemu_plugin_cb_flags to kernel-doc
  plugins: expand the typedef kernel-docs for translation
  plugins: expand the callback typedef kernel-docs
  plugins: cleanup kernel-doc for qemu_plugin_install
  plugins: expand kernel-doc for qemu_info_t
  plugins: Expose physical addresses instead of device offsets
  plugins: new syscalls plugin
  utils: Use fixed-point arithmetic in qemu_strtosz

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


Compare: https://github.com/qemu/qemu/compare/1db136a29ce8...6e71c36557ed



reply via email to

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