Skip to content
Snippets Groups Projects
  1. Dec 04, 2023
    • Peter Maydell's avatar
      target/arm: Disable SME if SVE is disabled · f7767ca3
      Peter Maydell authored
      There is no architectural requirement that SME implies SVE, but
      our implementation currently assumes it. (FEAT_SME_FA64 does
      imply SVE.) So if you try to run a CPU with eg "-cpu max,sve=off"
      you quickly run into an assert when the guest tries to write to
      SMCR_EL1:
      
      #6  0x00007ffff4b38e96 in __GI___assert_fail
          (assertion=0x5555566e69cb "sm", file=0x5555566e5b24 "../../target/arm/helper.c", line=6865, function=0x5555566e82f0 <__PRETTY_FUNCTION__.31> "sve_vqm1_for_el_sm") at ./assert/assert.c:101
      #7  0x0000555555ee33aa in sve_vqm1_for_el_sm (env=0x555557d291f0, el=2, sm=false) at ../../target/arm/helper.c:6865
      #8  0x0000555555ee3407 in sve_vqm1_for_el (env=0x555557d291f0, el=2) at ../../target/arm/helper.c:6871
      #9  0x0000555555ee3724 in smcr_write (env=0x555557d291f0, ri=0x555557da23b0, value=2147483663) at ../../target/arm/helper.c:6995
      #10 0x0000555555fd1dba in helper_set_cp_reg64 (env=0x555557d291f0, rip=0x555557da23b0, value=2147483663) at ../../target/arm/tcg/op_helper.c:839
      #11 0x00007fff60056781 in code_gen_buffer ()
      
      Avoid this unsupported and slightly odd combination by
      disabling SME when SVE is not present.
      
      Cc: qemu-stable@nongnu.org
      Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2005
      
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-id: 20231127173318.674758-1-peter.maydell@linaro.org
      f7767ca3
  2. Dec 01, 2023
    • Stefan Hajnoczi's avatar
      Merge tag 'pull-ppc-for-8.2-20231130' of https://gitlab.com/npiggin/qemu into staging · 29b5d70c
      Stefan Hajnoczi authored
      * Add a default BIOS for the new amigaone machine so it does not
        require out of tree binary blob.
      * SLOF update to fix virtio serial bugs.
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQIzBAABCgAdFiEETkN92lZhb0MpsKeVZ7MCdqhiHK4FAmVof8kACgkQZ7MCdqhi
      # HK71ng//TCpoi02/aZY5kAd1a1NxvRDd/gR9d5y79TaixgJ9FoV7joNg7Labu21r
      # Gezghpgj7Ph+Wy175/qYhIJJ6JheK6xsAb7JmCJUq5HeOixJHkK0xHCJ0uGf1tcb
      # c24+6JYa7K1Yd48EhGQUDwd+7J7QeAKPyJLSZHG2Qg9+sPX2koxa9tzZMoaWoA2L
      # pMfXhUTBiK6Q93FtrQw16pRUcGrY542wLeA/nRaUFtuPdv38TDmJ4ktnid27fIh5
      # 1+QVGQD0HCO29SVT/VP1TJenJukrYVjBfT8ulVC/wo53tZHhNSDVffXbRijrVFlX
      # CPowJ2UebPwpvnvv8F8CSGPL4XPI+IBVdUOwZZMkH5oGaMXQW6mP4zsB7TK+g5z3
      # 8+hQ0VZS0MzrrfSqufup8SUJAqJ1Sckx104clrpXtrBSAoiF634Qi1+UurwDVLFS
      # VibKnMl31LauNRIWXVfj4BYOdH9oHOEHR5ghoaRguOAe58N7fGNiXC/WnScWbp8r
      # PXE9D7SUMPtxNejDFRam+Df7JwTY+CdB56uvZ/behgs3FABfMmqBX+WgBbNhLaP4
      # B4Wa0MTOAHz3itXRHYtvd6n3M9ts4nU88Srkuf0akAzp4Nv4b3+isuIncUazDREt
      # q2z94oolhuZarLhsi/8Qo2G/SfJBNM0s4fmx4NTrqscupl5SadM=
      # =7rvy
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Thu 30 Nov 2023 07:27:53 EST
      # gpg:                using RSA key 4E437DDA56616F4329B0A79567B30276A8621CAE
      # gpg: Good signature from "Nicholas Piggin <npiggin@gmail.com>" [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: 4E43 7DDA 5661 6F43 29B0  A795 67B3 0276 A862 1CAE
      
      * tag 'pull-ppc-for-8.2-20231130' of https://gitlab.com/npiggin/qemu
      
      :
        ppc/amigaone: Allow running AmigaOS without firmware image
        pseries: Update SLOF firmware image
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      29b5d70c
    • Stefan Hajnoczi's avatar
      Merge tag 'migration-20231130-pull-request' of https://gitlab.com/juan.quintela/qemu into staging · e8c0753b
      Stefan Hajnoczi authored
      Migration Pull request (20231130)
      
      Hi
      
      In this pull request:
      - fix form p-ioc set too soon
      - free 'saddr' at the right time
      
      Please, apply.
      
      CI: https://gitlab.com/juan.quintela/qemu/-/pipelines/1090495323
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQIzBAABCAAdFiEEGJn/jt6/WMzuA0uC9IfvGFhy1yMFAmVoZrgACgkQ9IfvGFhy
      # 1yOS6BAA2Rag1bz2yrI/Gts+J/+pVu3a8AZh0lu8J5nABkFSGwrQ5RfVuSuq1Cwt
      # j9uctmt9qAEbbLeFsTf/CYCxO4R1RDhOw78o7YfPZPiUFOAvuZB+gHCGA+NH1YH7
      # a8uzh/yQ0wSQSKrkFHKV7A1Kli7k6c8iYo3v9ibJDqphUpOfjSPLB22hmRqRp/gy
      # 2ZQH/mxj9xlkYxQ/WUKVVl3weXbshbniuQ3RM3HnZYzzWlam4PjI+rAyAF6jhmf6
      # ReKDm4n55jTNZXXd9Wa5PZQ7g55BwO1suJfGeojJGsdgfqsFXf/TTwRdmvxOMg/V
      # 5X/Eo8GxMF2Vf3pul/m3eNmKvlP0Bh+VlN8dF+Ii8ZXawOEsJpXcCE2yNpXn4UqP
      # nyaTznnel2QCDMNWaQNHVbGXFc+n5ocwEnDmO5Idwp5W3/+MFM+xP05FpnshpR0h
      # 1vq5dUO/mq5jIoYK//iIXe99rHoIJlOP6SRdtTyxRBhJLg76YKRYmF3RaU51B9n4
      # qWLWhDQBwbdv0ZEPZIAhDlO5grY9BRQT5aGNLRsLWL0rY4nJtYdVv8/MyISlNCD8
      # eY8SOB0cs/vaLG7Nfj0tboXMAh5sPCXxqx25pVf+x+09EJhD1VZ+axTjbnJmRTs/
      # nL5tmQ2EPvFzoVzxeOHdEK+jXdJYWBZf6LBlPY1HN+Gt3JjIecE=
      # =5Img
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Thu 30 Nov 2023 05:40:56 EST
      # gpg:                using RSA key 1899FF8EDEBF58CCEE034B82F487EF185872D723
      # gpg: Good signature from "Juan Quintela <quintela@redhat.com>" [full]
      # gpg:                 aka "Juan Quintela <quintela@trasno.org>" [full]
      # Primary key fingerprint: 1899 FF8E DEBF 58CC EE03  4B82 F487 EF18 5872 D723
      
      * tag 'migration-20231130-pull-request' of https://gitlab.com/juan.quintela/qemu
      
      :
        migration: free 'saddr' since be no longer used
        migration/multifd: Stop setting p->ioc before connecting
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      e8c0753b
  3. Nov 30, 2023
    • BALATON Zoltan's avatar
      ppc/amigaone: Allow running AmigaOS without firmware image · e25acd61
      BALATON Zoltan authored
      
      The machine uses a modified U-Boot under GPL license but the sources
      of it are lost with only a binary available so it cannot be included
      in QEMU. Allow running without the firmware image which can be used
      when calling a boot loader directly and thus simplifying booting
      guests. We need a small routine that AmigaOS calls from ROM which is
      added in this case to allow booting AmigaOS without external firmware
      image.
      
      Fixes: d9656f86 ("hw/ppc: Add emulation of AmigaOne XE board")
      Signed-off-by: default avatarBALATON Zoltan <balaton@eik.bme.hu>
      Signed-off-by: default avatarNicholas Piggin <npiggin@gmail.com>
      e25acd61
    • Alexey Kardashevskiy's avatar
      pseries: Update SLOF firmware image · c1dc0a1d
      Alexey Kardashevskiy authored
      
      It's been a while. This fixes compile warning, typos and
      a bug with virtio-serial being used after it was shutdown
      at "quiesce".
      
      The full changelog is here:
      
      Alexey Kardashevskiy (2):
            Remove ?PICK
            version: update to 20230918
      
      Jordan Niethe (1):
            virtio-serial: Do not close stdout on quiesce
      
      Kautuk Consul (1):
            virtio-serial: Make read and write methods report failure
      
      Thomas Huth (10):
            lib/libnet/ipv6: Silence compiler warning from Clang
            Fix typos in the board-qemu folder
            Fix typos in the lib/libnet folder
            Fix typos in the remaining lib folders
            Fix typos in the slof folder
            Fix typos in the board-js2x folder
            Fix typos in the llfw folder
            Fix typos in the board-js2x folder
            Fix typos in the clients folder
            Fix remaining typos in various folders
      
      Compiled with gcc-12.1.0-nolibc
      
      Tested with (sorry, no KVM):
      
      /home/aik/b/q-slof/qemu-system-ppc64 \
      -nodefaults \
      -chardev stdio,id=STDIO0,signal=off,mux=on \
      -device spapr-vty,id=svty0,reg=0x71000110,chardev=STDIO0 \
      -mon id=MON0,chardev=STDIO0,mode=readline \
      -nographic \
      -vga none \
      -m 2G \
      -kernel /home/aik/t/vml4150le \
      -initrd /home/aik/t/le.cpio \
      -machine pseries,cap-cfpc=broken,cap-sbbc=broken,cap-ibs=broken,cap-ccf-assist=off \
      -bios pc-bios/slof.bin \
      -trace events=/home/aik/qemu_trace_events \
      -d guest_errors \
      -chardev socket,id=SOCKET0,server=on,wait=off,path=qemu.mon.604650 \
      -mon chardev=SOCKET0,mode=control \
      -name 604650,debug-threads=on
      
      [ npiggin: Also tested with KVM, including with virtio-console. ]
      
      Signed-off-by: default avatarAlexey Kardashevskiy <aik@ozlabs.ru>
      Signed-off-by: default avatarNicholas Piggin <npiggin@gmail.com>
      c1dc0a1d
    • Zongmin Zhou's avatar
      migration: free 'saddr' since be no longer used · 41581265
      Zongmin Zhou authored
      
      Since socket_parse() will allocate memory for 'saddr',and its value
      will pass to 'addr' that allocated by migrate_uri_parse(),
      then 'saddr' will no longer used,need to free.
      But due to 'saddr->u' is shallow copying the contents of the union,
      the members of this union containing allocated strings,and will be used after that.
      So just free 'saddr' itself without doing a deep free on the contents of the SocketAddress.
      
      Fixes: 72a8192e ("migration: convert migration 'uri' into 'MigrateAddress'")
      Signed-off-by: default avatarZongmin <Zhou&lt;zhouzongmin@kylinos.cn>
      Reviewed-by: default avatarJuan Quintela <quintela@redhat.com>
      Reviewed-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      Reviewed-by: default avatarPeter Xu <peterx@redhat.com>
      Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
      Message-ID: <20231120031428.908295-1-zhouzongmin@kylinos.cn>
      41581265
    • Fabiano Rosas's avatar
      migration/multifd: Stop setting p->ioc before connecting · 0a08c794
      Fabiano Rosas authored
      
      This is being shadowed but the assignments at
      multifd_channel_connect() and multifd_tls_channel_connect() .
      
      Signed-off-by: default avatarFabiano Rosas <farosas@suse.de>
      Message-ID: <20231110200241.20679-2-farosas@suse.de>
      Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
      0a08c794
  4. Nov 28, 2023
    • Stefan Hajnoczi's avatar
      abf635dd
    • Stefan Hajnoczi's avatar
      Merge tag 'misc-next-20231128' of https://github.com/philmd/qemu into staging · 745c2911
      Stefan Hajnoczi authored
      Misc fixes for 8.2
      
      * buildsys: Invoke bash via 'env' (Samuel)
      
      * doc: Fix example in s390-cpu-topology.rst (Zhao)
      
      * HW: Fix AVR ATMega reset stack (Gihun) and VT82C686 IRQ routing (Zoltan)
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQIzBAABCAAdFiEE+qvnXhKRciHc/Wuy4+MsLN6twN4FAmVl7MUACgkQ4+MsLN6t
      # wN4nsQ//U7/GGrMaNJF369pC0UfC0dfD39RoD9jmmrWUQB17baMvXo+BMBcELX0Q
      # BtgRjIYwnywnVZlB11JL5Ql9ykSRqd7VeqnZfH//GqQO+ySF7jl6ekNT6YNjUbWu
      # iF9bU3o0/LAVl/3pe9LQ4q/yOjzERA5o4JKYviHZYcWE811/5lBNgER4iPyCz6a8
      # aGI3S5PGmq6a9x5266jkY2WWldDy7D1ujkuvxxc4tgnmbBjL21soJ/oRLOBjGTNl
      # hCRfDTEiFZm7OxjV7oB03Nr3EGGStGdy0aPhhtFwzZxQ9yV7d2DLsbYGgwzZYkKQ
      # 9v4DtGqYyvDA7LBmfxOrnzL0WXgN4xO3qekLqHDtChDzFFEYwtHvH0duPUiQv1Yu
      # qHyOsfB58rKzWHeo0ACEjMWGdD1opCXCeoJlEf/saiQ5EgyBwph/z2mWYN4yak5H
      # Zu3xF15BcnyavC6sVeuE+rT574dhCzOtH8Vf3WVwqfL5D5cyCjHlmPSAXXMqBkmh
      # BMOD8O210n6IdzuuOQ038t3yGvIc0YysOmQgfLjRYlZa884q3wExgrufH+NYbGMj
      # bFthPjLKgHm+q4k2mH65G98xwXQFT6rdHanw2iEJcPJbhhk9SNWYgaQ0r0Oi2Pfd
      # zCQ22F1j9UqGcqKh+8tzAfjayRyQUJtgizPXEWanADkpIDYxrRk=
      # =323/
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Tue 28 Nov 2023 08:36:05 EST
      # gpg:                using RSA key FAABE75E12917221DCFD6BB2E3E32C2CDEADC0DE
      # gpg: Good signature from "Philippe Mathieu-Daudé (F4BUG) <f4bug@amsat.org>" [full]
      # Primary key fingerprint: FAAB E75E 1291 7221 DCFD  6BB2 E3E3 2C2C DEAD C0DE
      
      * tag 'misc-next-20231128' of https://github.com/philmd/qemu
      
      :
        docs/s390: Fix wrong command example in s390-cpu-topology.rst
        hw/avr/atmega: Fix wrong initial value of stack pointer
        hw/audio/via-ac97: Route interrupts using via_isa_set_irq()
        hw/isa/vt82c686: Route PIRQ inputs using via_isa_set_irq()
        hw/usb/vt82c686-uhci-pci: Use ISA instead of PCI interrupts
        hw/isa/vt82c686: Bring back via_isa_set_irq()
        target/hexagon/idef-parser/prepare: use env to invoke bash
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      745c2911
    • Stefan Hajnoczi's avatar
      Merge tag 'pull-target-arm-20231127' of... · 1376d1c1
      Stefan Hajnoczi authored
      Merge tag 'pull-target-arm-20231127' of https://git.linaro.org/people/pmaydell/qemu-arm into staging
      
      target-arm queue:
       * Set IL bit for pauth, SVE access, BTI trap syndromes
       * Handle overflow in calculation of next timer tick
       * hw/net/can/xlnx-zynqmp: Avoid underflow when popping FIFOs
       * Various devices: Free array property memory on device finalize
       * hw/ssi/xilinx_spips: fix an out of bound access
       * hw/misc, hw/ssi: Fix some URLs for AMD / Xilinx models
       * hw/dma/xlnx_csu_dma: don't throw guest errors when stopping the SRC DMA
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQJNBAABCAA3FiEE4aXFk81BneKOgxXPPCUl7RQ2DN4FAmVkzLAZHHBldGVyLm1h
      # eWRlbGxAbGluYXJvLm9yZwAKCRA8JSXtFDYM3o79D/0Yh7Q7N4+fc4xdBK5hb1GN
      # 31rBWZ3z0XzBzXrN80g6ig5i+CvTq7+120yx4Kl5bdyAMGdXpryTeNSoa4ewmNtC
      # +c6pqV8IUIHA3axepuHtwjs4wRzWoFz13gy+X/1spfhcrtFpWyRt0f3cc1fElhzX
      # 2K/4H9TD2d5yZBvaKLoJ6GzdK2wtWfucvWQDOUigRF7rvSST3awZ6gkumm+/6EM5
      # vbIVOqi+0JcnWKJj0i4S1vRUPg0+CuaZN8glXcGkq2BaMfOohpjFGTMY0KsAK1Cv
      # Ow1guxxy2mcLixQ8pX7ii5WHVDCuPqTVcwHUQJqN5Ln6CFEre38jM1ZwgHpWhb8G
      # CoVOu2B96QwPoICD7QomaKCJYHkAczC4KETsTz/Mc+zcU6+cQiv0swc2sDhwBlmT
      # weHQAmZg5dPRl3DQ/8F3llhdYyvOGnUpaaBauJiuH2I5n/qhqbvcgu9G7pGwd2gm
      # lk8LuzjbVEtBu2jFlPCMpvuSuJJciR/3/QdHMGlN6L0ooY6dFL9puW51wFKSh+Kx
      # JqetuUJXVWLTiL9ekLnNPQkuQQwP3WQsIvQO8tjEiuojw1utk/50JPmXg/xHEahx
      # rN8aiLstR4olh1i+CrIee3QR6IwhqZmvEVHROIw0ExJ1L04FCCtPlvJ/G2gD1ta2
      # oLvqWLlc752+nND72lIJZg==
      # =X700
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Mon 27 Nov 2023 12:06:56 EST
      # gpg:                using RSA key E1A5C593CD419DE28E8315CF3C2525ED14360CDE
      # gpg:                issuer "peter.maydell@linaro.org"
      # gpg: Good signature from "Peter Maydell <peter.maydell@linaro.org>" [full]
      # gpg:                 aka "Peter Maydell <pmaydell@gmail.com>" [full]
      # gpg:                 aka "Peter Maydell <pmaydell@chiark.greenend.org.uk>" [full]
      # gpg:                 aka "Peter Maydell <peter@archaic.org.uk>" [unknown]
      # Primary key fingerprint: E1A5 C593 CD41 9DE2 8E83  15CF 3C25 25ED 1436 0CDE
      
      * tag 'pull-target-arm-20231127' of https://git.linaro.org/people/pmaydell/qemu-arm
      
      :
        hw/dma/xlnx_csu_dma: don't throw guest errors when stopping the SRC DMA
        hw/misc, hw/ssi: Fix some URLs for AMD / Xilinx models
        hw/ssi/xilinx_spips: fix an out of bound access
        hw/input/stellaris_gamepad: Free StellarisGamepad::keycodes[] array
        hw/nvram/xlnx-efuse-ctrl: Free XlnxVersalEFuseCtrl[] "pg0-lock" array
        hw/nvram/xlnx-efuse: Free XlnxEFuse::ro_bits[] array on finalize()
        hw/misc/mps2-scc: Free MPS2SCC::oscclk[] array on finalize()
        hw/virtio: Free VirtIOIOMMUPCI::vdev.reserved_regions[] on finalize()
        hw/virtio: Add VirtioPCIDeviceTypeInfo::instance_finalize field
        hw/net/can/xlnx-zynqmp: Avoid underflow while popping RX FIFO
        hw/net/can/xlnx-zynqmp: Avoid underflow while popping TX FIFOs
        target/arm: Handle overflow in calculation of next timer tick
        target/arm: Set IL bit for pauth, SVE access, BTI trap syndromes
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      1376d1c1
    • Stefan Hajnoczi's avatar
      Merge tag 'for-upstream' of https://repo.or.cz/qemu/kevin into staging · 9155a938
      Stefan Hajnoczi authored
      Block layer patches
      
      - ide/via: Fix BAR4 value in legacy mode
      - export/vhost-user-blk: Fix consecutive drains
      - vmdk: Don't corrupt desc file in vmdk_write_cid
      - iotests: fix default machine type detection
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQJFBAABCAAvFiEE3D3rFZqa+V09dFb+fwmycsiPL9YFAmVl9GARHGt3b2xmQHJl
      # ZGhhdC5jb20ACgkQfwmycsiPL9Y9KRAAx3ryUIdaVZX5RZbVC4ZmkgGIpSv+8dS+
      # e98H+accyyVTVXlMNYWy0s7tP6sxhhlmGqfGLx/hDynvjJRxyS8VSOXXNIqYcHqN
      # wGXcgLEgb+qxu7+Y8g3UhMeSmDyRhanOE/MxhMqGOKd/5nxfY1XdD7nkRwCsPAAi
      # Tud/Jd7t0CSV0wUDfvMtBsQZCBSQyoSu3S3TjZ8I2CPjBaoYojj3XM+LKrlJu+B5
      # zwgB5IURac1dOfsjYsX0M0zXxr6pTVNtkdNNwFoiNP+omoRjCXV3W9iTtyU+/zc3
      # cnVzQQRE6XufQ/Q7IWHNE3/U5LvM3m+sjB+YryrMTRVItjpGUCgYGsrgodjZp7aj
      # 4hmwxyZ8PN3+o96d5RWqhRXnY9fy5hzJZOhUMQV6lV/Z14wt8YYsJoqgi4wryoYf
      # 7VdyZP2Szt2Sgl4+n0uSfPBoR+qMEwni1AxO8iK9OZbpewv7aBO3In4tOAvP/eB8
      # VAoCZOfrILSXaR5aorlAPr6IOXanPvgOotmzNs0NaaqYnpfYr6KAH9FjyAm3DZqp
      # b+/Ep+hrekq9XqnZGMblQsjlTFAc9mRWtqsHUrftl9FhRvSah4R+TyKov8lD23VZ
      # bvw1etcc0p55Ws4RkUkGn8G5kRyhec3nkHdr4MODCR0s0uo0cBaITnoV0Ra9p7of
      # K78WSodwZKQ=
      # =ktlF
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Tue 28 Nov 2023 09:08:32 EST
      # gpg:                using RSA key DC3DEB159A9AF95D3D7456FE7F09B272C88F2FD6
      # gpg:                issuer "kwolf@redhat.com"
      # gpg: Good signature from "Kevin Wolf <kwolf@redhat.com>" [full]
      # Primary key fingerprint: DC3D EB15 9A9A F95D 3D74  56FE 7F09 B272 C88F 2FD6
      
      * tag 'for-upstream' of https://repo.or.cz/qemu/kevin
      
      :
        ide/via: Fix BAR4 value in legacy mode
        export/vhost-user-blk: Fix consecutive drains
        vmdk: Don't corrupt desc file in vmdk_write_cid
        iotests: fix default machine type detection
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      9155a938
    • BALATON Zoltan's avatar
      ide/via: Fix BAR4 value in legacy mode · 6e081324
      BALATON Zoltan authored
      
      Return default value in legacy mode for BAR4 when unset. This can't be
      set in reset method because BARs are cleared on reset so we return it
      instead when BARs are read in legacy mode. This fixes UDMA on amigaone
      with AmigaOS.
      
      Signed-off-by: default avatarBALATON Zoltan <balaton@eik.bme.hu>
      Message-ID: <20231125140135.AF6A075A4C3@zero.eik.bme.hu>
      Reviewed-by: default avatarKevin Wolf <kwolf@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      6e081324
    • Kevin Wolf's avatar
      export/vhost-user-blk: Fix consecutive drains · 411132c9
      Kevin Wolf authored
      The vhost-user-blk export implement AioContext switches in its drain
      implementation. This means that on drain_begin, it detaches the server
      from its AioContext and on drain_end, attaches it again and schedules
      the server->co_trip coroutine in the updated AioContext.
      
      However, nothing guarantees that server->co_trip is even safe to be
      scheduled. Not only is it unclear that the coroutine is actually in a
      state where it can be reentered externally without causing problems, but
      with two consecutive drains, it is possible that the scheduled coroutine
      didn't have a chance yet to run and trying to schedule an already
      scheduled coroutine a second time crashes with an assertion failure.
      
      Following the model of NBD, this commit makes the vhost-user-blk export
      shut down server->co_trip during drain so that resuming the export means
      creating and scheduling a new coroutine, which is always safe.
      
      There is one exception: If the drain call didn't poll (for example, this
      happens in the context of bdrv_graph_wrlock()), then the coroutine
      didn't have a chance to shut down. However, in this case the AioContext
      can't have changed; changing the AioContext always involves a polling
      drain. So in this case we can simply assert that the AioContext is
      unchanged and just leave the coroutine running or wake it up if it has
      yielded to wait for the AioContext to be attached again.
      
      Fixes: e1054cd4
      Fixes: https://issues.redhat.com/browse/RHEL-1708
      
      
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      Message-ID: <20231127115755.22846-1-kwolf@redhat.com>
      Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      411132c9
    • Fam Zheng's avatar
      vmdk: Don't corrupt desc file in vmdk_write_cid · 9fb7b350
      Fam Zheng authored
      If the text description file is larger than DESC_SIZE, we force the last
      byte in the buffer to be 0 and write it out.
      
      This results in a corruption.
      
      Try to allocate a big buffer in this case.
      
      Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1923
      
      
      
      Signed-off-by: default avatarFam Zheng <fam@euphon.net>
      Message-ID: <20231124115654.3239137-1-fam@euphon.net>
      Reviewed-by: default avatarKevin Wolf <kwolf@redhat.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      9fb7b350
    • Andrey Drobyshev's avatar
      iotests: fix default machine type detection · 3b7094fe
      Andrey Drobyshev authored
      
      The machine type is being detected based on "-M help" output, and we're
      searching for the line ending with " (default)".  However, in downstream
      one of the machine types s marked as deprecated might become the
      default, in which case this logic breaks as the line would now end with
      " (default) (deprecated)".  To fix potential issues here, let's relax
      that requirement and detect the mere presence of " (default)" line
      instead.
      
      Signed-off-by: default avatarAndrey Drobyshev <andrey.drobyshev@virtuozzo.com>
      Message-ID: <20231122121538.32903-1-andrey.drobyshev@virtuozzo.com>
      Reviewed-by: default avatarKevin Wolf <kwolf@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      3b7094fe
    • Stefan Hajnoczi's avatar
      Merge tag 'firmware/seabios-20231128-pull-request' of https://gitlab.com/kraxel/qemu into staging · 1eb29123
      Stefan Hajnoczi authored
      seabios: update to 1.16.3 release
      
      This adds one bugfix compared to the snapshot
      merged during the 8.2 devel cycle.
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQIzBAABCgAdFiEEoDKM/7k6F6eZAf59TLbY7tPocTgFAmVloe0ACgkQTLbY7tPo
      # cThCmA/9HciX9GJdVKhphS9hxA8ZtqmvB5SCZPEW0wBqpe2/nr6Jb2X7h3oL9h+i
      # +pzdv0ZygO+Xxzt1thADO1ZFcF4C5l2j4wOrqrvNoTqtgmBgZBAnw/YkjdK+phjU
      # ETaCgl0TsxHqe9XGpVjgTSB4VGgKmj+80DI2xCBUJPyAvOg9fgcvwpRojX8V+vVS
      # DG3QM1g2lGlIHMLcYZBM95VNIyPdPED+tCagcw765s0EBT7/Di8yplQqYuosw3Cl
      # pOKD7cgtDv/Ca0GeNMJlttM1ZrdPutDnapHeUlDax1Tf5c2FBWnBIe2nTyDHHIjC
      # sMQ1DxRT6tI94L/jp+gYfsO02ILRcOZ2+rfUt/wy1fsPqPrIlD1r3HdBdSkdBLRE
      # XLw6+5bijPKvyhkHM8fb2qt56ap2JLJ6EgkOHHekpGznEAkYB+sjeTlxiOzNxaDX
      # C14SdiYgLmpfobxoNvvwRz4L0TTc4mSVIYhSxrGL0Qs1jucUK0+PpoGcacBXcAg8
      # ScNwE3V+nUzjh9fGjqaCB6qcAuv4wijvnQAKmDatAkUeYcGMR9PKHHM1AL/JBchC
      # DEQRa0VaNCkmy1Gcd1Hs5Wf98fqWot7O2j5zbzMm8lN+w6muPA4j7yguqRHZYcnA
      # Xoor6vDxE9Zt67CLBhuN6Qgv8Ewy4DsJF+w9nVQXVI80Jk973gI=
      # =ZbmR
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Tue 28 Nov 2023 03:16:45 EST
      # gpg:                using RSA key A0328CFFB93A17A79901FE7D4CB6D8EED3E87138
      # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>" [full]
      # gpg:                 aka "Gerd Hoffmann <gerd@kraxel.org>" [full]
      # gpg:                 aka "Gerd Hoffmann (private) <kraxel@gmail.com>" [full]
      # Primary key fingerprint: A032 8CFF B93A 17A7 9901  FE7D 4CB6 D8EE D3E8 7138
      
      * tag 'firmware/seabios-20231128-pull-request' of https://gitlab.com/kraxel/qemu
      
      :
        seabios: update binaries to 1.16.3 release
        seabios: update submodule to 1.16.3 release
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      1eb29123
    • Zhao Liu's avatar
      docs/s390: Fix wrong command example in s390-cpu-topology.rst · 0180a744
      Zhao Liu authored
      
      From s390_possible_cpu_arch_ids() in hw/s390x/s390-virtio-ccw.c, the
      "core-id" is the index of possible_cpus->cpus[], so it should only be
      less than possible_cpus->len, which is equal to ms->smp.max_cpus.
      
      Fix the wrong "core-id" 112, because it isn't less than maxcpus (36) in
      -smp, and the valid core ids are 0-35 inclusive.
      
      Signed-off-by: default avatarZhao Liu <zhao1.liu@intel.com>
      Reviewed-by: default avatarNina Schoetterl-Glausch <nsg@linux.ibm.com>
      Message-ID: <20231127134917.568552-1-zhao1.liu@linux.intel.com>
      Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      0180a744
    • Gihun Nam's avatar
      hw/avr/atmega: Fix wrong initial value of stack pointer · 235948bf
      Gihun Nam authored
      The current implementation initializes the stack pointer of AVR devices
      to 0. Although older AVR devices used to be like that, newer ones set
      it to RAMEND.
      
      Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1525
      
      
      Signed-off-by: default avatarGihun Nam <gihun.nam@outlook.com>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      Message-ID: <PH0P222MB0010877445B594724D40C924DEBDA@PH0P222MB0010.NAMP222.PROD.OUTLOOK.COM>
      Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      235948bf
    • BALATON Zoltan's avatar
      hw/audio/via-ac97: Route interrupts using via_isa_set_irq() · 0ed083a1
      BALATON Zoltan authored
      
      This device is a function of VIA south bridge and should allow setting
      interrupt routing within that chip. This is implemented in
      via_isa_set_irq().
      
      Fixes: eb604411
      Signed-off-by: default avatarBALATON Zoltan <balaton@eik.bme.hu>
      Message-ID: <5329840e4be6dd8ae143d07cbfe61d8d2d106654.1701035944.git.balaton@eik.bme.hu>
      Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      0ed083a1
    • BALATON Zoltan's avatar
      hw/isa/vt82c686: Route PIRQ inputs using via_isa_set_irq() · 01f13ee2
      BALATON Zoltan authored
      
      The chip has 4 pins (called PIRQA-D in VT82C686B and PINTA-D in
      VT8231) that are meant to be connected to PCI IRQ lines and allow
      routing PCI interrupts to the ISA PIC. Route these in
      via_isa_set_irq() to make it possible to share them with internal
      functions that can also be routed to the same ISA IRQs.
      
      Fixes: 2fdadd02
      Signed-off-by: default avatarBALATON Zoltan <balaton@eik.bme.hu>
      Message-ID: <8c4513d8b78fac40e6d4e65a0a4b3a7f2f278a4b.1701035944.git.balaton@eik.bme.hu>
      Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      01f13ee2
    • BALATON Zoltan's avatar
      hw/usb/vt82c686-uhci-pci: Use ISA instead of PCI interrupts · 032a443b
      BALATON Zoltan authored
      
      This device is part of a superio/ISA bridge chip and IRQs from it are
      routed to an ISA interrupt. Use via_isa_set_irq() function to implement
      this in a vt82c686-uhci-pci specific irq handler.
      
      This reverts commit 422a6e80.
      
      Signed-off-by: default avatarBALATON Zoltan <balaton@eik.bme.hu>
      Message-ID: <ed5cdeaba7cf01eebdaa35f84c63427f4d8876b1.1701035944.git.balaton@eik.bme.hu>
      Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      032a443b
    • BALATON Zoltan's avatar
      hw/isa/vt82c686: Bring back via_isa_set_irq() · 7e01bd80
      BALATON Zoltan authored
      
      The VIA integrated south bridge chips combine several functions and
      allow routing their interrupts to any of the ISA IRQs also allowing
      multiple sources to share the same ISA IRQ. E.g. pegasos2 firmware
      configures everything to use IRQ 9 but amigaone routes them to
      separate ISA IRQs so the current simplified routing does not work.
      Bring back via_isa_set_irq() and change it to take the component that
      wants to change an IRQ and keep track of interrupt status of each
      source separately and do the mapping to ISA IRQ within the ISA bridge.
      
      This may not handle cases when an ISA IRQ is controlled by devices
      directly, not going through via_isa_set_irq() such as serial, parallel
      or keyboard but these IRQs being conventionally fixed are not likely
      to be change by guests or share with other devices so this does not
      cause a problem in practice.
      
      This reverts commit 4e5a20b6.
      
      Signed-off-by: default avatarBALATON Zoltan <balaton@eik.bme.hu>
      Message-ID: <1c3902d4166234bef0a476026441eaac3dd6cda5.1701035944.git.balaton@eik.bme.hu>
      Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      7e01bd80
    • Samuel Tardieu's avatar
      target/hexagon/idef-parser/prepare: use env to invoke bash · 57c3150a
      Samuel Tardieu authored
      
      This file is the only one involved in the compilation process which
      still uses the /bin/bash path.
      
      Signed-off-by: default avatarSamuel Tardieu <sam@rfc1149.net>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      Reviewed-by: default avatarAnton Johansson <anjo@rev.ng>
      Message-ID: <20231123211506.636533-1-sam@rfc1149.net>
      Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      57c3150a
    • Kevin Wolf's avatar
      string-output-visitor: Support lists for non-integer types · ea7ec158
      Kevin Wolf authored
      
      With the introduction of list-based array properties in qdev, the string
      output visitor has to deal with lists of non-integer elements now ('info
      qtree' prints all properties with the string output visitor).
      
      Currently there is no explicit support for such lists, and the resulting
      output is only the last element because string_output_set() always
      replaces the output with the latest value. Instead of replacing the old
      value, append comma separated values in list context.
      
      The difference can be observed in 'info qtree' with a 'rocker' device
      that has a 'ports' list with more than one element.
      
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      Tested-by: default avatarThomas Huth <thuth@redhat.com>
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      Message-ID: <20231121173416.346610-3-kwolf@redhat.com>
      ea7ec158
    • Kevin Wolf's avatar
      qdev: Fix crash in array property getter · 50571883
      Kevin Wolf authored
      Passing an uninitialised list to visit_start_list() happens to work for
      the QObject output visitor because it treats the pointer as an opaque
      value and never dereferences it, but the string output visitor expects a
      valid list to check if it has more than one element.
      
      The existing code crashes with the string output visitor if the
      uninitialised value is non-NULL. Passing an explicit NULL would fix the
      crash, but still result in wrong output.
      
      Rework get_prop_array() so that it conforms to the expectations that the
      string output visitor has. This includes building a real list first and
      using visit_next_list() to iterate it.
      
      Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1993
      
      
      Reported-by: default avatarThomas Huth <thuth@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      Tested-by: default avatarDan Hoffman <dhoff749@gmail.com>
      Tested-by: default avatarThomas Huth <thuth@redhat.com>
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      Message-ID: <20231121173416.346610-2-kwolf@redhat.com>
      50571883
    • Gerd Hoffmann's avatar
      eb0ce134
    • Gerd Hoffmann's avatar
      seabios: update submodule to 1.16.3 release · 3161f9f4
      Gerd Hoffmann authored
      
      git shortlog 1e1da7a96300..rel-1.16.3
      -------------------------------------
      
      Gerd Hoffmann (1):
            limit address space used for pci devices.
      
      Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      3161f9f4
  5. Nov 27, 2023
Loading