Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: qemu/qemu
base: 369081c4558e
Choose a base ref
...
head repository: qemu/qemu
compare: 7ce5a15fa633
Choose a head ref
  • 19 commits
  • 46 files changed
  • 6 contributors

Commits on Jun 5, 2023

  1. target/s390x: Fix LCBB overwriting the top 32 bits

    LCBB is supposed to overwrite only the bottom 32 bits, but QEMU
    erroneously overwrites the entire register.
    
    Fixes: 6d93033 ("s390x/tcg: Implement LOAD COUNT TO BLOCK BOUNDARY")
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
    Message-Id: <20230526181240.1425579-2-iii@linux.ibm.com>
    Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
    Reviewed-by: David Hildenbrand <david@redhat.com>
    Signed-off-by: Thomas Huth <thuth@redhat.com>
    iii-i authored and huth committed Jun 5, 2023
    Copy the full SHA
    079181b View commit details
    Browse the repository at this point in the history
  2. tests/tcg/s390x: Test LCBB

    Add a test to prevent regressions.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
    Message-Id: <20230526181240.1425579-3-iii@linux.ibm.com>
    Reviewed-by: David Hildenbrand <david@redhat.com>
    Acked-by: Richard Henderson <richard.henderson@linaro.org>
    Signed-off-by: Thomas Huth <thuth@redhat.com>
    iii-i authored and huth committed Jun 5, 2023
    Copy the full SHA
    05d000f View commit details
    Browse the repository at this point in the history
  3. target/s390x: Fix LOCFHR taking the wrong half of R2

    LOCFHR should write top-to-top, but QEMU erroneously writes
    bottom-to-top.
    
    Fixes: 45aa9aa ("target/s390x: Implement load-on-condition-2 insns")
    Cc: qemu-stable@nongnu.org
    Reported-by: Mikhail Mitskevich <mitskevichmn@gmail.com>
    Closes: https://gitlab.com/qemu-project/qemu/-/issues/1668
    Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
    Message-Id: <20230526181240.1425579-4-iii@linux.ibm.com>
    Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
    Reviewed-by: David Hildenbrand <david@redhat.com>
    Signed-off-by: Thomas Huth <thuth@redhat.com>
    iii-i authored and huth committed Jun 5, 2023
    Copy the full SHA
    3180b17 View commit details
    Browse the repository at this point in the history
  4. tests/tcg/s390x: Test LOCFHR

    Add a small test to prevent regressions.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
    Message-Id: <20230526181240.1425579-5-iii@linux.ibm.com>
    Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
    Reviewed-by: David Hildenbrand <david@redhat.com>
    Signed-off-by: Thomas Huth <thuth@redhat.com>
    iii-i authored and huth committed Jun 5, 2023
    Copy the full SHA
    2309762 View commit details
    Browse the repository at this point in the history
  5. linux-user/s390x: Fix single-stepping SVC

    Currently single-stepping SVC executes two instructions. The reason is
    that EXCP_DEBUG for the SVC instruction itself is masked by EXCP_SVC.
    Fix by re-raising EXCP_DEBUG.
    
    Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
    Message-Id: <20230510230213.330134-2-iii@linux.ibm.com>
    Signed-off-by: Thomas Huth <thuth@redhat.com>
    iii-i authored and huth committed Jun 5, 2023
    Copy the full SHA
    01b9990 View commit details
    Browse the repository at this point in the history
  6. tests/tcg/s390x: Test single-stepping SVC

    Add a small test to prevent regressions.
    
    Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
    Acked-by: Alex Bennée <alex.bennee@linaro.org>
    Message-Id: <20230510230213.330134-3-iii@linux.ibm.com>
    Signed-off-by: Thomas Huth <thuth@redhat.com>
    iii-i authored and huth committed Jun 5, 2023
    Copy the full SHA
    be4a4cb View commit details
    Browse the repository at this point in the history
  7. Add conditional dependency for libkeyutils

    This modification enables better control over the inclusion of libkeyutils
    based on the configuration, enhancing the flexibility of the build system.
    
    Signed-off-by: Max Fritz <antischmock@googlemail.com>
    Message-Id: <168471463402.18155.3575359027429939965-1@git.sr.ht>
    Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
    [thuth: Remove the "kwargs: static_kwargs" part - it's not necessary anymore]
    Signed-off-by: Thomas Huth <thuth@redhat.com>
    6d6178667269747a authored and huth committed Jun 5, 2023
    Copy the full SHA
    0db0fbb View commit details
    Browse the repository at this point in the history
  8. target/s390x: Fix MXDB and MXDBR

    These instructions multiply 64 bits by 64 bits, not 128 bits by 64 bits.
    
    Reported-by: Tulio Magno Quites Machado Filho <tuliom@redhat.com>
    Fixes: 2b91240 ("target/s390x: Use Int128 for passing float128")
    Cc: qemu-stable@nongnu.org
    Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=2211472
    Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
    Message-Id: <20230601223027.795501-2-iii@linux.ibm.com>
    Reviewed-by: David Hildenbrand <david@redhat.com>
    Signed-off-by: Thomas Huth <thuth@redhat.com>
    iii-i authored and huth committed Jun 5, 2023
    Copy the full SHA
    a7f4add View commit details
    Browse the repository at this point in the history
  9. tests/tcg/s390x: Test MXDB and MXDBR

    Add a small test to prevent regressions.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
    Message-Id: <20230601223027.795501-3-iii@linux.ibm.com>
    Acked-by: David Hildenbrand <david@redhat.com>
    Signed-off-by: Thomas Huth <thuth@redhat.com>
    iii-i authored and huth committed Jun 5, 2023
    Copy the full SHA
    2b95624 View commit details
    Browse the repository at this point in the history
  10. tests/qtest: Run ipmi-bt-test only if CONFIG_IPMI_EXTERN is set

    The ipmi-bt-test uses "-device ipmi-bmc-extern", thus it should
    only be run if this device has been enabled in the configuration.
    
    Message-Id: <20230524081024.1619273-1-thuth@redhat.com>
    Signed-off-by: Thomas Huth <thuth@redhat.com>
    huth committed Jun 5, 2023
    Copy the full SHA
    faae343 View commit details
    Browse the repository at this point in the history
  11. gitlab-ci: Remove unused Python package

    Python should have been removed in this commit:
    https://gitlab.com/qemu-project/qemu/-/commit/94b8b146df84ba472f461398d93fb9cdf0db8f94
    
    Signed-off-by: Camilla Conte <cconte@redhat.com>
    Message-Id: <20230531150824.32349-2-cconte@redhat.com>
    Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
    Signed-off-by: Thomas Huth <thuth@redhat.com>
    spotlesstofu authored and huth committed Jun 5, 2023
    Copy the full SHA
    98300bc View commit details
    Browse the repository at this point in the history
  12. hw/mips/malta: Fix the malta machine on big endian hosts

    Booting a Linux kernel with the malta machine is currently broken
    on big endian hosts. The cpu_to_gt32 macro wants to byteswap a value
    for little endian targets only, but uses the wrong way to do this:
    cpu_to_[lb]e32 works the other way round on big endian hosts! Fix
    it by using the same ways on both, big and little endian hosts.
    
    Fixes: 0c8427b ("hw/mips/malta: Use bootloader helper to set BAR registers")
    Cc: qemu-stable@nongnu.org
    Message-Id: <20230330152613.232082-1-thuth@redhat.com>
    Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
    Signed-off-by: Thomas Huth <thuth@redhat.com>
    huth committed Jun 5, 2023
    Copy the full SHA
    dc96009 View commit details
    Browse the repository at this point in the history
  13. scripts: Add qom-cast-macro-clean-cocci-gen.py

    Add a script to generate Coccinelle semantic patch
    removing all pointless QOM cast macro uses.
    
    Suggested-by: Markus Armbruster <armbru@redhat.com>
    Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
    Message-Id: <20230601093452.38972-2-philmd@linaro.org>
    Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
    Signed-off-by: Thomas Huth <thuth@redhat.com>
    philmd authored and huth committed Jun 5, 2023
    Copy the full SHA
    e3e2c0c View commit details
    Browse the repository at this point in the history
  14. bulk: Remove pointless QOM casts

    Mechanical change running Coccinelle spatch with content
    generated from the qom-cast-macro-clean-cocci-gen.py added
    in the previous commit.
    
    Suggested-by: Markus Armbruster <armbru@redhat.com>
    Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
    Message-Id: <20230601093452.38972-3-philmd@linaro.org>
    Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
    Signed-off-by: Thomas Huth <thuth@redhat.com>
    philmd authored and huth committed Jun 5, 2023
    Copy the full SHA
    7d5b0d6 View commit details
    Browse the repository at this point in the history
  15. s390x/tcg: Fix CPU address returned by STIDP

    In qemu-user-s390x, /proc/cpuinfo contains:
    
    	processor 0: version = 00,  identification = 000000,  machine = 8561
    	processor 1: version = 00,  identification = 400000,  machine = 8561
    
    The highest nibble is supposed to contain the CPU address, but it's off
    by 2 bits. Fix the shift value and provide a symbolic constant for it.
    
    With the fix we get:
    
    	processor 0: version = 00,  identification = 000000,  machine = 8561
    	processor 1: version = 00,  identification = 100000,  machine = 8561
    
    Fixes: 076d4d3 ("s390x/cpumodel: wire up cpu type + id for TCG")
    Reviewed-by: David Hildenbrand <david@redhat.com>
    Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
    Message-Id: <20230605113950.1169228-2-iii@linux.ibm.com>
    Signed-off-by: Thomas Huth <thuth@redhat.com>
    iii-i authored and huth committed Jun 5, 2023
    Copy the full SHA
    71b11cb View commit details
    Browse the repository at this point in the history
  16. linux-user/elfload: Expose get_elf_hwcap() on s390x

    It is required for implementing /proc/cpuinfo emulation.
    
    Reviewed-by: David Hildenbrand <david@redhat.com>
    Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
    Message-Id: <20230605113950.1169228-3-iii@linux.ibm.com>
    Signed-off-by: Thomas Huth <thuth@redhat.com>
    iii-i authored and huth committed Jun 5, 2023
    Copy the full SHA
    e1b819c View commit details
    Browse the repository at this point in the history
  17. linux-user/elfload: Introduce elf_hwcap_str() on s390x

    It is required for implementing /proc/cpuinfo emulation.
    
    Reviewed-by: David Hildenbrand <david@redhat.com>
    Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
    Message-Id: <20230605113950.1169228-4-iii@linux.ibm.com>
    Signed-off-by: Thomas Huth <thuth@redhat.com>
    iii-i authored and huth committed Jun 5, 2023
    Copy the full SHA
    e19807b View commit details
    Browse the repository at this point in the history
  18. linux-user: Emulate /proc/cpuinfo on s390x

    Some s390x userspace programs are confused when seeing a foreign
    /proc/cpuinfo [1]. Add the emulation for s390x; follow the respective
    kernel code structure where possible.
    
    Output example:
    
    	vendor_id       : IBM/S390
    	# processors    : 12
    	bogomips per cpu: 13370.00
    	max thread id   : 0
    	features	: esan3 zarch stfle msa
    	facilities      : 0 1 2 3 4 7 9 16 17 18 19 21 22 24 25 27 30 31 32 33 34 35 37 40 41 45 49 51 52 53 57 58 61 69 71 72 75 76 77 129 130 131 135 138 146 148
    	processor 0: version = 00,  identification = 000000,  machine = 8561
    	processor 1: version = 00,  identification = 100000,  machine = 8561
    	[...]
    
    	cpu number      : 0
    	version         : 00
    	identification  : 000000
    	machine         : 8561
    
    	cpu number      : 1
    	version         : 00
    	identification  : 100000
    	machine         : 8561
    	[...]
    
    [1] https://bugzilla.redhat.com/show_bug.cgi?id=2211472
    
    Reported-by: Tulio Magno Quites Machado Filho <tuliom@redhat.com>
    Reviewed-by: David Hildenbrand <david@redhat.com>
    Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
    Message-Id: <20230605113950.1169228-5-iii@linux.ibm.com>
    Signed-off-by: Thomas Huth <thuth@redhat.com>
    iii-i authored and huth committed Jun 5, 2023
    Copy the full SHA
    1fb9bda View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2023

  1. Merge tag 'pull-request-2023-06-06' of https://gitlab.com/thuth/qemu

    …into staging
    
    * Fix emulated LCCB, LOCFHR, MXDB and MXDBR s390x instructions
    * Fix the malta machine on s390x (big endian) hosts
    * Emulate /proc/cpuinfo on s390x
    * Remove pointless QOM casts
    * Improve the inclusion logic for libkeyutils and ipmi-bt-test in meson.build
    
    # -----BEGIN PGP SIGNATURE-----
    #
    # iQJFBAABCAAvFiEEJ7iIR+7gJQEY8+q5LtnXdP5wLbUFAmR+ycgRHHRodXRoQHJl
    # ZGhhdC5jb20ACgkQLtnXdP5wLbWXXw//WPz3ng50KLS+M1t3/ULEjO6XkGfP2LQZ
    # RsZq3hf9THFPZgcREk+6SQvttOSTuvHNfakfujS6U1Ou5thReWqLe4itFW6+hB5j
    # kQ+Sm6YJ+fpezkBnSefcUoL5nA9VVKZ6KE6kxq5CUBZNoIk1sSsfrU8y8wjzW0yg
    # 2nraOcG10aLpO2BfvKHVEAhJtwl9pHJsFANmHC2/h2wC9BZIAzdxiytzdcJ909gN
    # AAa0hIrLK/oFgJjkSSxu+QTaVGPARXqkx5WV546F/zmDMFUWd9nrXaegwqxjgPBN
    # m9Ua0SXll5hX2Z57vjJWlbTYkD+JUB22L0N7p5/xzhYRpLVSq1pdveo9psrzIC3E
    # Bt7chZB58acQepJHxxa3UHDOHcnfdfaN+Dd9wD29wHr7nK8lOcsen7/7V+5YXomc
    # qenkCtkpjKTl07OBxe6MDGZtPZYA8fK1CjEyYwHCe8QvxEzsyg96Bm3j4N2VPxQU
    # +f/sFPX7SgogZI4mB4wdoxOF1RmQ+DXQ2tnB970txZRkmFq2jJHpW86jkkbq2Jl1
    # KIjgdIXjVgy+MPtuQzO5cT+jfhGQL7FQynGXHjv/UidBid5XD3TDVNa9AthN3Mng
    # +rPT90VJ7j9soMqvmNT1COSIRD+M49dQKBIQuq/gWplaTOHaAcJrCwYScwqe0u0P
    # zmjCNeuPVw8=
    # =dfJr
    # -----END PGP SIGNATURE-----
    # gpg: Signature made Mon 05 Jun 2023 10:53:12 PM PDT
    # gpg:                using RSA key 27B88847EEE0250118F3EAB92ED9D774FE702DB5
    # gpg:                issuer "thuth@redhat.com"
    # gpg: Good signature from "Thomas Huth <th.huth@gmx.de>" [unknown]
    # gpg:                 aka "Thomas Huth <thuth@redhat.com>" [unknown]
    # gpg:                 aka "Thomas Huth <th.huth@posteo.de>" [unknown]
    # gpg:                 aka "Thomas Huth <huth@tuxfamily.org>" [unknown]
    # gpg: WARNING: This key is not certified with a trusted signature!
    # gpg:          There is no indication that the signature belongs to the owner.
    # Primary key fingerprint: 27B8 8847 EEE0 2501 18F3  EAB9 2ED9 D774 FE70 2DB5
    
    * tag 'pull-request-2023-06-06' of https://gitlab.com/thuth/qemu:
      linux-user: Emulate /proc/cpuinfo on s390x
      linux-user/elfload: Introduce elf_hwcap_str() on s390x
      linux-user/elfload: Expose get_elf_hwcap() on s390x
      s390x/tcg: Fix CPU address returned by STIDP
      bulk: Remove pointless QOM casts
      scripts: Add qom-cast-macro-clean-cocci-gen.py
      hw/mips/malta: Fix the malta machine on big endian hosts
      gitlab-ci: Remove unused Python package
      tests/qtest: Run ipmi-bt-test only if CONFIG_IPMI_EXTERN is set
      tests/tcg/s390x: Test MXDB and MXDBR
      target/s390x: Fix MXDB and MXDBR
      Add conditional dependency for libkeyutils
      tests/tcg/s390x: Test single-stepping SVC
      linux-user/s390x: Fix single-stepping SVC
      tests/tcg/s390x: Test LOCFHR
      target/s390x: Fix LOCFHR taking the wrong half of R2
      tests/tcg/s390x: Test LCBB
      target/s390x: Fix LCBB overwriting the top 32 bits
    
    Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
    rth7680 committed Jun 6, 2023
    Copy the full SHA
    7ce5a15 View commit details
    Browse the repository at this point in the history