Skip to content
Snippets Groups Projects
  1. Mar 20, 2023
  2. Mar 17, 2023
    • Peter Maydell's avatar
      Merge tag 'trivial-branch-for-8.0-pull-request' of... · 74c581b6
      Peter Maydell authored
      Merge tag 'trivial-branch-for-8.0-pull-request' of https://gitlab.com/laurent_vivier/qemu into staging
      
      Trivial branch pull request 20230317
      
      Fix doc
      Fix sh4 cpu log output
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQJGBAABCAAwFiEEzS913cjjpNwuT1Fz8ww4vT8vvjwFAmQUdowSHGxhdXJlbnRA
      # dml2aWVyLmV1AAoJEPMMOL0/L748ylwP/RisLo3XrvNBVuDW/cLh7vhFcaeSqEzH
      # /RfdJ0DeqreXQYiwqsUS+YrtBARpBwuvBk1RGg46chx3IZJp7fmfLjs0sSSiESsR
      # kL8tJqRFFdCXmpmUWQqmluiCEBLllq8uDHMaAyXh95V2VRt4vrR8K2x3GW0yrarS
      # 4BvMdTAJBmjjpXRZ+/NY88EEEqCHgliWTHm+JKLj7II5duUYZO+r0XpCQELFdHig
      # uEYOupSUm/H4X8VuKuqNG1YGUz9c8X7nYZ+lgKLNH/i8vco+dPSoL4fZvG1ts/NH
      # kcA+EdGNDJZdvhOUDlvebSIZ9uuVjxy4WD8CIJQ5A2LGSdmv4KUJjQWGBw/r5B/B
      # e+uhrFnXJPrRSytSohB0iEzlrETBHAzq1yzoc7TYy70SzHtBylR0Xxwxnaq2N9ux
      # k4wyeXF6toX49RiZ0UmoYO82vtPqg1LOsmYDYWKNzgWbRsTIVJAXuAwBAVIzOgJV
      # hs93YO3gCaIjh8n/V43VvQzborNhp0xf6Ch7F0cgD1klAAKX1ICX4Mn2Qj7tPmgh
      # GUsdTpleaFTpsKxgpNP1eU5QYtI9ZcGBhAhsSV9SSnrRsWo1dlppZJkUWEndIHGr
      # iUnP5OPLtWU5tM2WbVNb3pio/4xrzft3lu4DKH2IecZbBHF11FpK6f9mrlOagAz0
      # V/3JSBg10dZQ
      # =3s21
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Fri 17 Mar 2023 14:17:48 GMT
      # gpg:                using RSA key CD2F75DDC8E3A4DC2E4F5173F30C38BD3F2FBE3C
      # gpg:                issuer "laurent@vivier.eu"
      # gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [full]
      # gpg:                 aka "Laurent Vivier <laurent@vivier.eu>" [full]
      # gpg:                 aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" [full]
      # Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F  5173 F30C 38BD 3F2F BE3C
      
      * tag 'trivial-branch-for-8.0-pull-request' of https://gitlab.com/laurent_vivier/qemu
      
      :
        docs/sphinx/kerneldoc.py: Honour --enable-werror
        target/sh4: Honor QEMU_LOG_FILENAME with QEMU_LOG=cpu
        exec/memory: Fix kernel-doc warning
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      74c581b6
    • Peter Maydell's avatar
      Merge tag '20230316-xtensa' of https://github.com/OSLL/qemu-xtensa into staging · ff7b2b09
      Peter Maydell authored
      target/xtensa updates for v8.0:
      
      - enable testing big-endian xtensa cores
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQJHBAABCgAxFiEEK2eFS5jlMn3N6xfYUfnMkfg/oEQFAmQTd6gTHGpjbXZia2Jj
      # QGdtYWlsLmNvbQAKCRBR+cyR+D+gRCowEACpQULqjxkpd23bd5uYQYsuJRzbSblF
      # 6xux3IK5kD2y8vjzVegTs1XdZNhNzLRfEOijy+DxP1+5S6jRoACRkv0zKaBigbfA
      # C7pLTxKGXk4OLA1sEdAXZ8jTBxDNQG542kF/PSPUHLxbJyb+lH+4707vb/kgQQdz
      # nhCVfK75hqW2leohWsEES1jPxazyqu5PLMr9zPa0yfhbUU3g1AgTzFHAVrocP5mN
      # QKsaSwP5fwnF2ozTRM7MhHJj9iLlX0IYxeAcA22kUhr6kaAmL4SQdpwiREbCgOts
      # XE2Hpo+W5WQRw1B94au0spMZwYGDhFeApLhHRAI6hpLlOyTzC1bHV0yetHEWxLI4
      # yPO4gCrkM+bIC5ErywTaCrTfCbaJkmMsz7epFLpawAfEtBTysfOzQEdVYcDKA7DO
      # uP1qvW3moIOFLJl+s8c5RQzuSP2kB7Ziox92p6bG9o4XM5Wp0SQU201xKuWkwoC2
      # VLsd04IopaDQZdMkErqv9+moebI3w3s9zebbzjDicBA+JfgeOltEWp8tIMAXDTx6
      # Rk+A6qh7VW73AACwP10GOtC2bslFCokgsuDuabFDC1w6bhWxgBv2bNk+8WJgR8Oe
      # BQKZgtH5XmnpTVZCrpgLQhJBWO+shVLm6sOy+wkTKuOwksn/ADd+q2QwAvKKWU6J
      # o+E0K5KnN3p4Qw==
      # =v5XD
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Thu 16 Mar 2023 20:10:16 GMT
      # gpg:                using RSA key 2B67854B98E5327DCDEB17D851F9CC91F83FA044
      # gpg:                issuer "jcmvbkbc@gmail.com"
      # gpg: Good signature from "Max Filippov <filippov@cadence.com>" [unknown]
      # gpg:                 aka "Max Filippov <max.filippov@cogentembedded.com>" [full]
      # gpg:                 aka "Max Filippov <jcmvbkbc@gmail.com>" [full]
      # Primary key fingerprint: 2B67 854B 98E5 327D CDEB  17D8 51F9 CC91 F83F A044
      
      * tag '20230316-xtensa' of https://github.com/OSLL/qemu-xtensa
      
      :
        tests/tcg/xtensa: allow testing big-endian cores
        tests/tcg/xtensa: add linker.ld to CLEANFILES
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      ff7b2b09
  3. Mar 16, 2023
  4. Mar 15, 2023
    • Peter Maydell's avatar
      Merge tag 'misc-next-pull-request' of https://gitlab.com/berrange/qemu into staging · 9636e513
      Peter Maydell authored
      Miscellaneous fixes
      
       * Avoid memory leak in TLS GSource usage
       * Avoid sending key releases for lang1/lang2 keys in ps2 keyboard
       * Add missing key name constants for F13-F24 keys
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQIzBAABCAAdFiEE2vOm/bJrYpEtDo4/vobrtBUQT98FAmQQn/gACgkQvobrtBUQ
      # T9+BxRAAl1aOI2rHW27vnwX4xGJX4y4ENA4GAWrnGfya+Ewcoze544W3jwT8b94b
      # KDY62P+NMrlxWMjYlDb8if+TYjXc5orlJFBl94zmbaIS7vajnYmprqP3ipCHD/rw
      # J5sTOrE8j4+Q+SRQliSwozS+vFm74BoghSLNUBretjxoxZymkUtqKFC88eUFIXsZ
      # prGpBVm9g22NWQ94YwJg4iqkAGm0iDjzNsDxHkYhg4yoAsfU800aoKZuSJft6Pfc
      # PTQ+x2Y0rxoQ+YuFyf7/uGK7w7awguMkeIn/Nalz3LcxzB+BFPby+P8Srp6WABD5
      # N8COb38L5XtN4UffiK1//lxdLFmbO6NVMOaE1yUcG6CAOZNC4eZLIIEDEbvGWOm5
      # f2h/YRK59F4HEbYazimEMxqa2SKBGV7j2nvqUEERyNo++U6WLR2toZPlRYP0EWgK
      # YuLNGKr4XwNZXmAUO36YglMCowXHUwQdITU+gZt4QIcrjEEAeG9U3pspwyfGcYQl
      # 3zd/xzeHGJQHzXNBnyRX0OQamE1et+UGqGauFYAVKFcHHq5VIe5W3BDBLj57DvQn
      # T+tZBA92esPl9/qHx0zFfSfiSDHvs67obHPp4LcrNENUXtJOVoqOxpAUtQ9aBX8J
      # jhPpkqBrMHtpyjMSM9xyjstro8pD47Kt6t930Sp9fh7fOjO0awE=
      # =lL/5
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Tue 14 Mar 2023 16:25:28 GMT
      # gpg:                using RSA key DAF3A6FDB26B62912D0E8E3FBE86EBB415104FDF
      # gpg: Good signature from "Daniel P. Berrange <dan@berrange.com>" [full]
      # gpg:                 aka "Daniel P. Berrange <berrange@redhat.com>" [full]
      # Primary key fingerprint: DAF3 A6FD B26B 6291 2D0E  8E3F BE86 EBB4 1510 4FDF
      
      * tag 'misc-next-pull-request' of https://gitlab.com/berrange/qemu
      
      :
        io/channel-tls: plug memory leakage on GSource
        ps2: Don't send key release event for Lang1, Lang2 keys
        Add qemu qcode support for keys F13 to F24
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      9636e513
    • Peter Maydell's avatar
      Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging · be4033d7
      Peter Maydell authored
      small bug fixes
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQFIBAABCAAyFiEE8TM4V0tmI4mGbHaCv/vSX3jHroMFAmQRo3EUHHBib256aW5p
      # QHJlZGhhdC5jb20ACgkQv/vSX3jHroO7wwgAp2IGW9TDAElFgPZ3n8XyoJ6Lnr6i
      # Le3L+fQbYuy6uCU7zkboWgFqqNRLkd1nxHPkRgxb5oJ8pnXLCrdG+2d9UDgfMFqZ
      # 3ankE+De70j7f7r0M5Ifmfyf7QHhNhnbuguoovi6S9bdJ5aO2nZmsm/T41Bth/uU
      # SKx+SCVMzpPGLJv0iZishw2seZj0h9QBgyitsE8MdLjnhe5KD4XOWs4+E263pb6L
      # G6ai7T++vQSRqCQ8YVBr7Az41vkvzuqkybAXFTl/QLd2rVQROAqoOpn+wPq4cH46
      # xf6LscXqE9lrWr/UJnDPNiyKmsY5baLyB6Ri/rQn8VvTyfyHC9JtDoDclQ==
      # =mnvI
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Wed 15 Mar 2023 10:52:33 GMT
      # gpg:                using RSA key F13338574B662389866C7682BFFBD25F78C7AE83
      # gpg:                issuer "pbonzini@redhat.com"
      # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>" [full]
      # gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>" [full]
      # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4  E2F7 7E15 100C CD36 69B1
      #      Subkey fingerprint: F133 3857 4B66 2389 866C  7682 BFFB D25F 78C7 AE83
      
      * tag 'for-upstream' of https://gitlab.com/bonzini/qemu
      
      :
        vl: defuse PID file path resolve error
        hw/intc/ioapic: Update KVM routes before redelivering IRQ, on RTE update
        docs/devel: clarify further the semantics of RMW operations
        Fix build without CONFIG_XEN_EMU
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      be4033d7
    • Max Filippov's avatar
      tests/tcg/xtensa: allow testing big-endian cores · 51139fb3
      Max Filippov authored
      
      Don't disable all big-endian tests, instead check whether $(CORE) is
      supported by the configured $(QEMU) and enable tests if it is.
      
      Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      51139fb3
    • Max Filippov's avatar
      tests/tcg/xtensa: add linker.ld to CLEANFILES · 5161dba8
      Max Filippov authored
      
      Linker script for xtensa tests must be preprocessed for a specific
      target, remove it as a part of make clean.
      
      Fixes: be5cac17 ("tests/tcg/xtensa: enable system tests")
      Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
      Reviewed-by: default avatarWilfred Mallawa <wilfred.mallawa@wdc.com>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      5161dba8
    • Fiona Ebner's avatar
      vl: defuse PID file path resolve error · dee2a4d4
      Fiona Ebner authored
      
      Commit 85c4bf8a ("vl: Unlink absolute PID file path") introduced a
      critical error when the PID file path cannot be resolved. Before this
      commit, it was possible to invoke QEMU when the PID file was a file
      created with mkstemp that was already unlinked at the time of the
      invocation. There might be other similar scenarios.
      
      It should not be a critical error when the PID file unlink notifier
      can't be registered, because the path can't be resolved. If the file
      is already gone from QEMU's perspective, silently ignore the error.
      Otherwise, only print a warning.
      
      Fixes: 85c4bf8a ("vl: Unlink absolute PID file path")
      Reported-by: default avatarDominik Csapak <d.csapak@proxmox.com>
      Suggested-by: default avatarThomas Lamprecht <t.lamprecht@proxmox.com>
      Signed-off-by: default avatarFiona Ebner <f.ebner@proxmox.com>
      Reviewed-by: default avatarHanna Reitz <hreitz@redhat.com>
      Message-Id: <20221031094716.39786-1-f.ebner@proxmox.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      dee2a4d4
    • David Woodhouse's avatar
      hw/intc/ioapic: Update KVM routes before redelivering IRQ, on RTE update · 54ad31fb
      David Woodhouse authored
      
      A Linux guest will perform IRQ migration after the IRQ has happened,
      updating the RTE to point to the new destination CPU and then unmasking
      the interrupt.
      
      However, when the guest updates the RTE, ioapic_mem_write() calls
      ioapic_service(), which redelivers the pending level interrupt via
      kvm_set_irq(), *before* calling ioapic_update_kvm_routes() which sets
      the new target CPU.
      
      Thus, the IRQ which is supposed to go to the new target CPU is instead
      misdelivered to the previous target. An example where the guest kernel
      is attempting to migrate from CPU#2 to CPU#0 shows:
      
      xenstore_read tx 0 path control/platform-feature-xs_reset_watches
      ioapic_set_irq vector: 11 level: 1
      ioapic_set_remote_irr set remote irr for pin 11
      ioapic_service: trigger KVM IRQ 11
      [    0.523627] The affinity mask was 0-3 and the handler is on 2
      ioapic_mem_write ioapic mem write addr 0x0 regsel: 0x27 size 0x4 val 0x26
      ioapic_update_kvm_routes: update KVM route for IRQ 11: fee02000 8021
      ioapic_mem_write ioapic mem write addr 0x10 regsel: 0x26 size 0x4 val 0x18021
      xenstore_reset_watches
      ioapic_set_irq vector: 11 level: 1
      ioapic_mem_read ioapic mem read addr 0x10 regsel: 0x26 size 0x4 retval 0x1c021
      [    0.524569] ioapic_ack_level IRQ 11 moveit = 1
      ioapic_eoi_broadcast EOI broadcast for vector 33
      ioapic_clear_remote_irr clear remote irr for pin 11 vector 33
      ioapic_mem_write ioapic mem write addr 0x0 regsel: 0x26 size 0x4 val 0x26
      ioapic_mem_read ioapic mem read addr 0x10 regsel: 0x26 size 0x4 retval 0x18021
      [    0.525235] ioapic_finish_move IRQ 11 calls irq_move_masked_irq()
      [    0.526147] irq_do_set_affinity for IRQ 11, 0
      [    0.526732] ioapic_set_affinity for IRQ 11, 0
      [    0.527330] ioapic_setup_msg_from_msi for IRQ11 target 0
      ioapic_mem_write ioapic mem write addr 0x0 regsel: 0x26 size 0x4 val 0x27
      ioapic_mem_write ioapic mem write addr 0x10 regsel: 0x27 size 0x4 val 0x0
      ioapic_mem_write ioapic mem write addr 0x0 regsel: 0x27 size 0x4 val 0x26
      ioapic_mem_write ioapic mem write addr 0x10 regsel: 0x26 size 0x4 val 0x18021
      [    0.527623] ioapic_set_affinity returns 0
      [    0.527623] ioapic_finish_move IRQ 11 calls unmask_ioapic_irq()
      ioapic_mem_write ioapic mem write addr 0x0 regsel: 0x26 size 0x4 val 0x26
      ioapic_mem_write ioapic mem write addr 0x10 regsel: 0x26 size 0x4 val 0x8021
      ioapic_set_remote_irr set remote irr for pin 11
      ioapic_service: trigger KVM IRQ 11
      ioapic_update_kvm_routes: update KVM route for IRQ 11: fee00000 8021
      [    0.529571] The affinity mask was 0 and the handler is on 2
      [    xenstore_watch path memory/target token FFFFFFFF92847D40
      
      There are no other code paths in ioapic_mem_write() which need the KVM
      IRQ routing table to be updated, so just shift the call from the end
      of the function to happen right before the call to ioapic_service()
      and thus deliver the re-enabled IRQ to the right place.
      
      Alternative fixes might have been just to remove the part in
      ioapic_service() which delivers the IRQ via kvm_set_irq() because
      surely delivering as MSI ought to work just fine anyway in all cases?
      That code lacks a comment justifying its existence.
      
      Or maybe in the specific case shown in the above log, it would have
      sufficed for ioapic_update_kvm_routes() to update the route *even*
      when the IRQ is masked. It's not like it's actually going to get
      triggered unless QEMU deliberately does so, anyway? But that only
      works because the target CPU happens to be in the high word of the
      RTE; if something in the *low* word (vector, perhaps) was changed
      at the same time as the unmask, we'd still trigger with stale data.
      
      Fixes: 15eafc2e "kvm: x86: add support for KVM_CAP_SPLIT_IRQCHIP"
      Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
      Reviewed-by: default avatarPeter Xu <peterx@redhat.com>
      Message-Id: <20230308111952.2728440-2-dwmw2@infradead.org>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      54ad31fb
    • Paolo Bonzini's avatar
    • Miroslav Rezanina's avatar
      Fix build without CONFIG_XEN_EMU · ddc7cb30
      Miroslav Rezanina authored
      
      Upstream commit ddf0fd9a "hw/xen: Support HVM_PARAM_CALLBACK_TYPE_GSI callback"
      added kvm_xen_maybe_deassert_callback usage to target/i386/kvm/kvm.c file without
      conditional preprocessing check. This breaks any build not using CONFIG_XEN_EMU.
      
      Protect call by conditional preprocessing to allow build without CONFIG_XEN_EMU.
      
      Signed-off-by: default avatarMiroslav Rezanina <mrezanin@redhat.com>
      Reviewed-by: default avatarDavid Woodhouse <dwmw@amazon.co.uk>
      Message-Id: <20230308130557.2420-1-mrezanin@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      ddc7cb30
  5. Mar 14, 2023
    • Peter Maydell's avatar
      652737c8
    • Peter Maydell's avatar
      Merge tag 'display-pull-request' of https://gitlab.com/marcandre.lureau/qemu into staging · 7c3cc428
      Peter Maydell authored
      ui: dbus & misc fixes
      
      v2:
      - fix crash spotted by avocado VNC test
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQJQBAABCAA6FiEEh6m9kz+HxgbSdvYt2ujhCXWWnOUFAmQPgRIcHG1hcmNhbmRy
      # ZS5sdXJlYXVAcmVkaGF0LmNvbQAKCRDa6OEJdZac5QDFEACef6cbSlTtQji1hV+x
      # FM2ESPn0tgg9YVmtjsC1zqcdOEKsbs+2SQxBSs6tvQGwX5CgtnmyEsH5/Y4+TU64
      # r6dvGAhokEkhiyHwnC+DFw0ajYAaDK96RfJ02tPQ58lrBTyioKZH9K/3mB6pMFEG
      # aroE1Z3SQqqMnP+zsQ64nYuJrTXnv9iFejIxnuou+LyXdxmwLWAl5e47eZYaTmrh
      # RrJYbCyHbiL5bx6mOmAL1XlO9jJD4o0FrqRWFn4zz1T+w4FvUC/uX52XwRn1G/Hk
      # oHNnJBt95czCQ3S43xX0VTVrT9vLAptQzQc45KfegRL3XqPLgTgn4eocBQCYLmHZ
      # jKnUsE9VjBNCbkIzgfN9RP/zEklD/3lAHzrW5US7q7oTTYksyxN+pmvfrYbUvKWP
      # Oq/EQtpv66R06hjpxD76ime4+Y8WN7I3F/fJS8jl2QDy5I/2IzFSIOD9Rt5PGbky
      # xsIdr7QPzlN4ZKpnsRCNeEPwcR/kiv4grIF7jBAxxz3k5UENtIVSJkHBEEQjMy8O
      # +ZCvnHsbjPGxFtnlNTvtGsR2hiKYRCJSG/C4YQryTDWoScomlF6UWxzbapjs9CRW
      # /GR+98Z2QfwOtRRRteRRt9UFdC/T0DquxnRyJxa5N4VxMiWzmhtCOzmn4oc1THbG
      # 5UqDhRNSWEJn9iIvKca5ahSWLw==
      # =Rjcs
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Mon 13 Mar 2023 20:01:22 GMT
      # gpg:                using RSA key 87A9BD933F87C606D276F62DDAE8E10975969CE5
      # gpg:                issuer "marcandre.lureau@redhat.com"
      # gpg: Good signature from "Marc-André Lureau <marcandre.lureau@redhat.com>" [full]
      # gpg:                 aka "Marc-André Lureau <marcandre.lureau@gmail.com>" [full]
      # Primary key fingerprint: 87A9 BD93 3F87 C606 D276  F62D DAE8 E109 7596 9CE5
      
      * tag 'display-pull-request' of https://gitlab.com/marcandre.lureau/qemu
      
      :
        ui/dbus: restrict opengl to gbm-enabled config
        ui/dbus: do not require opengl & gbm
        ui: introduce egl_init()
        ui/sdl: try to instantiate the matching opengl renderer
        ui/sdl: add QEMU_ENABLE_SDL_LOGGING setting/environment
        ui/egl: print EGL error, helping debugging
        ui/shader: fix #version directive must occur on first line
        ui/sdl: get the GL context from the window
        ui: set cursor position upon listener registration
        ui: set cursor upon listener registration
        ui: keep current cursor with QemuConsole
        ui: rename cursor_{get->ref}, return it
        ui: rename cursor_{put->unref}
        meson: ensure dbus-display generated code is built before other units
        ui/dbus: set mouse is-absolute during console creation
        audio/dbus: there are no sender for p2p mode
        ui/dbus: unregister clipboard on connection close
        ui/dbus: initialize cursor_fb
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      7c3cc428
    • Peter Maydell's avatar
      Merge tag 'pull-riscv-to-apply-20230314' of https://github.com/alistair23/qemu into staging · caaf72fe
      Peter Maydell authored
      Seventh RISC-V PR for 8.0
      
      * Fix slli_uw decoding
      * Fix incorrect register name in disassembler for fmv,fabs,fneg instructions
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQEzBAABCAAdFiEE9sSsRtSTSGjTuM6PIeENKd+XcFQFAmQQFj4ACgkQIeENKd+X
      # cFTDowgAhgganhgtSIKwCzQsfSh9P1KOnftmeRLtGQEC36YeJQc6CyqrgwOWCbBy
      # +IEs/0/mXT0g70xaisQT2BKR9J6kevb1aHf790J13MmdFZmkpzTmS5SCQCHgUVjG
      # SlFf2d2sIoLeBcZYorQSTZdRHjKG3KQ1y0dFWfaqYYwHVqko67fQhKTcqfu3Sn/l
      # SKLeD3hz8iDc2Dh8HMls945rpQxATVTj5+/Fi8p0VL1194XK9dXRW4dpACZYJJEv
      # T3u+tK5GUgLVXfxlXLxbk4yw4DtNofU0gaQNAfd2i6E9TImhstrvGDojt2pGrY8Y
      # crLkAAxsOH8xNWYZdD5tcFrDZDrPvw==
      # =oElO
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Tue 14 Mar 2023 06:37:50 GMT
      # gpg:                using RSA key F6C4AC46D4934868D3B8CE8F21E10D29DF977054
      # gpg: Good signature from "Alistair Francis <alistair@alistair23.me>" [full]
      # Primary key fingerprint: F6C4 AC46 D493 4868 D3B8  CE8F 21E1 0D29 DF97 7054
      
      * tag 'pull-riscv-to-apply-20230314' of https://github.com/alistair23/qemu
      
      :
        Fix incorrect register name in disassembler for fmv,fabs,fneg instructions
        disas/riscv: Fix slli_uw decoding
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      caaf72fe
    • Peter Maydell's avatar
      Merge tag 'trivial-branch-for-8.0-pull-request' of... · bf89cf14
      Peter Maydell authored
      Merge tag 'trivial-branch-for-8.0-pull-request' of https://gitlab.com/laurent_vivier/qemu into staging
      
      trivial branch pull request 20230314
      
      Update MAINTAINER file
      Fix typo in qemu-options.hx
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQJGBAABCAAwFiEEzS913cjjpNwuT1Fz8ww4vT8vvjwFAmQQe1ESHGxhdXJlbnRA
      # dml2aWVyLmV1AAoJEPMMOL0/L748qpwP/i6k8Jhy9YIN9J/+V/XE6i/KM5ce29zZ
      # 8wV7s7/SRobVCFeD4L44Yb4eyyh+XGPrVPosjkloAhM36lfq+2DBWT7A+qjU8PoG
      # 3jiRi/pSn+Nc+BtZgKOEWc3FNGjCCBJMXWKOf0XC5djwujth1AEh+VKXyly0GaQx
      # 5DY50/VyGCYskBDy2Pv1jUHAiCHBprDOKtxGaM8wB0XIajnAE2znT1NIVOfzWHO1
      # HqoWT/Mery2jN1/80rAstPyQX4tYo4C1wXFf3kwfjJibM3Vwd8XOpYTUmeGFGCZ5
      # DttPzi3gS7ZkEPQsPMKuNt8ayag62NeOgnoRlsjNsWwnqHkVb1QxN5liA1ZgOWtj
      # xbsQk1Ko2YUfG1a/W3hq4AgTZRiuSe2/H4K4sV5kMwVgCNci0OL7a1oNP6JloQm+
      # MGRr/nP9GwwnZyyF4CLHW5pGntly0T4C2Ij+AytstBL4QbuzxJJx7FugGrRxdiE8
      # +odpUGo+21TxR3kLq9W4xrEwz/A5VNnpUdLFGHK6iuNjNdHNa+7umtHwB9YLHbjP
      # V9XQv60+nnbVoTUYx+/IrZy4mwB3M853kjNMbOQrlX94PBlEXlk1Ro6PKGSJrzcT
      # xSLVfsJynsU/8CjfJttXsNEYDk6DcdBvw/aj14QM96Flcfwal+jy8YnIIguPQp3Z
      # /ORSiS2uSWvp
      # =75ca
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Tue 14 Mar 2023 13:49:05 GMT
      # gpg:                using RSA key CD2F75DDC8E3A4DC2E4F5173F30C38BD3F2FBE3C
      # gpg:                issuer "laurent@vivier.eu"
      # gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [full]
      # gpg:                 aka "Laurent Vivier <laurent@vivier.eu>" [full]
      # gpg:                 aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" [full]
      # Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F  5173 F30C 38BD 3F2F BE3C
      
      * tag 'trivial-branch-for-8.0-pull-request' of https://gitlab.com/laurent_vivier/qemu
      
      :
        MAINTAINERS: Remove CXL maintainer Ben Widawsky
        MAINTAINERS: update my email address for the clock framework
        qemu-options.hx: remove stray quote
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      bf89cf14
    • Markus Armbruster's avatar
      MAINTAINERS: Remove CXL maintainer Ben Widawsky · fcc8f37c
      Markus Armbruster authored
      
      Ben is no longer with intel.  He told me he expected to get back to
      CXL, but it's not happening as quickly as he'd like, and that it's
      best to remove him as maintainer.  So let's do that.
      
      Thank you for serving as maintainer, Ben!
      
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Acked-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      Message-Id: <20230220212437.1462314-1-armbru@redhat.com>
      Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
      fcc8f37c
    • Damien Hedde's avatar
      MAINTAINERS: update my email address for the clock framework · 1d7e6727
      Damien Hedde authored
      
      Also update mailmap
      
      Signed-off-by: default avatarDamien Hedde <damien.hedde@dahe.fr>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      Reviewed-by: default avatarLuc Michel <luc@lmichel.fr>
      Message-Id: <20230213105227.2357-1-damien.hedde@dahe.fr>
      Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
      1d7e6727
    • Matheus Tavares Bernardino's avatar
      io/channel-tls: plug memory leakage on GSource · c3a2c84a
      Matheus Tavares Bernardino authored
      
      This leakage can be seen through test-io-channel-tls:
      
      $ ../configure --target-list=aarch64-softmmu --enable-sanitizers
      $ make ./tests/unit/test-io-channel-tls
      $ ./tests/unit/test-io-channel-tls
      
      Indirect leak of 104 byte(s) in 1 object(s) allocated from:
          #0 0x7f81d1725808 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:144
          #1 0x7f81d135ae98 in g_malloc (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x57e98)
          #2 0x55616c5d4c1b in object_new_with_propv ../qom/object.c:795
          #3 0x55616c5d4a83 in object_new_with_props ../qom/object.c:768
          #4 0x55616c5c5415 in test_tls_creds_create ../tests/unit/test-io-channel-tls.c:70
          #5 0x55616c5c5a6b in test_io_channel_tls ../tests/unit/test-io-channel-tls.c:158
          #6 0x7f81d137d58d  (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x7a58d)
      
      Indirect leak of 32 byte(s) in 1 object(s) allocated from:
          #0 0x7f81d1725a06 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cc:153
          #1 0x7f81d1472a20 in gnutls_dh_params_init (/lib/x86_64-linux-gnu/libgnutls.so.30+0x46a20)
          #2 0x55616c6485ff in qcrypto_tls_creds_x509_load ../crypto/tlscredsx509.c:634
          #3 0x55616c648ba2 in qcrypto_tls_creds_x509_complete ../crypto/tlscredsx509.c:694
          #4 0x55616c5e1fea in user_creatable_complete ../qom/object_interfaces.c:28
          #5 0x55616c5d4c8c in object_new_with_propv ../qom/object.c:807
          #6 0x55616c5d4a83 in object_new_with_props ../qom/object.c:768
          #7 0x55616c5c5415 in test_tls_creds_create ../tests/unit/test-io-channel-tls.c:70
          #8 0x55616c5c5a6b in test_io_channel_tls ../tests/unit/test-io-channel-tls.c:158
          #9 0x7f81d137d58d  (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x7a58d)
      
      ...
      
      SUMMARY: AddressSanitizer: 49143 byte(s) leaked in 184 allocation(s).
      
      The docs for `g_source_add_child_source(source, child_source)` says
      "source will hold a reference on child_source while child_source is
      attached to it." Therefore, we should unreference the child source at
      `qio_channel_tls_read_watch()` after attaching it to `source`. With this
      change, ./tests/unit/test-io-channel-tls shows no leakages.
      
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      Signed-off-by: default avatarMatheus Tavares Bernardino <quic_mathbern@quicinc.com>
      Signed-off-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      c3a2c84a
    • Ross Lagerwall's avatar
      ps2: Don't send key release event for Lang1, Lang2 keys · 92f4a21d
      Ross Lagerwall authored
      
      The scancodes for the Lang1 and Lang2 keys (i.e. Hangeul, Hanja) are
      special since they already have the 0x80 bit set which is commonly used
      to indicate a key release in AT set 1. Reportedly, real hardware does
      not send a key release scancode. So, skip sending a release for these
      keys. This ensures that Windows behaves correctly and interprets it as a
      single keypress rather than two consecutive keypresses.
      
      Signed-off-by: default avatarRoss Lagerwall <ross.lagerwall@citrix.com>
      Signed-off-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      92f4a21d
    • Willem van de Velde's avatar
      Add qemu qcode support for keys F13 to F24 · ac19b516
      Willem van de Velde authored
      
      To be able to use the function keys F13 to F24 these should be defined in de keycodemapdb and added to the qapi.
      The keycodemapdb is updated in its own repository, this patch enables the use of those keys within qemu.
      
      Signed-off-by: default avatarWillem van de Velde <williamvdvelde@gmail.com>
      Signed-off-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      ac19b516
    • Peter Maydell's avatar
      Merge tag 'pull-tcg-20230313' of https://gitlab.com/rth7680/qemu into staging · 27a03171
      Peter Maydell authored
      accel/tcg: Fix NB_MMU_MODES to 16
      Balance of the target/ patchset which eliminates tcg_temp_free
      Balance of the target/ patchset which eliminates tcg_const
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQFRBAABCgA7FiEEekgeeIaLTbaoWgXAZN846K9+IV8FAmQPcb0dHHJpY2hhcmQu
      # aGVuZGVyc29uQGxpbmFyby5vcmcACgkQZN846K9+IV885AgAjDbg1soRBy0THf0X
      # CVXmQ4yYyUKAonZBL8Abt9yX01BhLFqEsrju3HiaLNOM9DbwWQ4gdvSrtAZ/K2YG
      # d6EvC+rJe79pr58MEEhqO4OO1ymp52amRHtEXva4vcKRNuM9WF5by/Hz2PsZyenG
      # ysaLBdddooA9SJeL7xYBMpKWFgUm3C8NzfaRfCBVcG94er9u8RUi0kx+drmOLw0g
      # vZ3Hekvi2I8Y5mWqvHeAIOsr8Md9PO3ezWxEteE4qsPNTTRfVD93oSGe9nNCYZTX
      # wWU51Vfv9GB6hOylAfMRIeCmkjks/gqLOGElsh1MaVovNDTXS5IKV/HgaLaocJHV
      # 2P81uQ==
      # =FpIY
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Mon 13 Mar 2023 18:55:57 GMT
      # gpg:                using RSA key 7A481E78868B4DB6A85A05C064DF38E8AF7E215F
      # gpg:                issuer "richard.henderson@linaro.org"
      # gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>" [full]
      # Primary key fingerprint: 7A48 1E78 868B 4DB6 A85A  05C0 64DF 38E8 AF7E 215F
      
      * tag 'pull-tcg-20230313' of https://gitlab.com/rth7680/qemu
      
      : (91 commits)
        tcg: Drop tcg_const_*
        tcg: Drop tcg_const_*_vec
        target/tricore: Use min/max for saturate
        target/ppc: Avoid tcg_const_* in translate.c
        target/ppc: Fix gen_tlbsx_booke206
        target/ppc: Rewrite trans_ADDG6S
        target/ppc: Avoid tcg_const_* in power8-pmu-regs.c.inc
        target/ppc: Avoid tcg_const_* in fp-impl.c.inc
        target/ppc: Avoid tcg_const_* in vsx-impl.c.inc
        target/ppc: Avoid tcg_const_* in xxeval
        target/ppc: Avoid tcg_const_* in vmx-impl.c.inc
        target/ppc: Avoid tcg_const_i64 in do_vcntmb
        target/m68k: Use tcg_constant_i32 in gen_ea_mode
        target/arm: Avoid tcg_const_ptr in handle_rev
        target/arm: Avoid tcg_const_ptr in handle_vec_simd_sqshrn
        target/arm: Avoid tcg_const_ptr in disas_simd_zip_trn
        target/arm: Avoid tcg_const_* in translate-mve.c
        target/arm: Avoid tcg_const_ptr in gen_sve_{ldr,str}
        target/arm: Improve trans_BFCI
        target/arm: Create gen_set_rmode, gen_restore_rmode
        ...
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      27a03171
    • Mikhail Tyutin's avatar
      Fix incorrect register name in disassembler for fmv,fabs,fneg instructions · 0d581506
      Mikhail Tyutin authored
      
      Fix incorrect register name in RISC-V disassembler for fmv,fabs,fneg instructions
      
      Signed-off-by: default avatarMikhail Tyutin <m.tyutin@yadro.com>
      Reviewed-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Message-Id: <3454991f-7f64-24c3-9a36-f5fa2cc389e1@yadro.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      0d581506
    • Ivan Klokov's avatar
      disas/riscv: Fix slli_uw decoding · 13e269f6
      Ivan Klokov authored
      
      The decoding of the slli_uw currently contains decoding
      error: shamt part of opcode has six bits, not five.
      
      Fixes 3de1fb71("target/riscv: update disas.c for xnor/orn/andn and slli.uw")
      
      Signed-off-by: default avatarIvan Klokov <ivan.klokov@syntacore.com>
      Reviewed-by: default avatarPhilipp Tomsich <philipp.tomsich@vrull.eu>
      Acked-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Message-Id: <20230227090228.17117-1-ivan.klokov@syntacore.com>
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      13e269f6
  6. Mar 13, 2023
Loading