Skip to content
Snippets Groups Projects
  1. May 15, 2021
  2. May 14, 2021
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/marcandre/tags/rtd-pull-request' into staging · 6d34aa99
      Peter Maydell authored
      
      Pull request
      
      # gpg: Signature made Fri 14 May 2021 12:12:24 BST
      # 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
      
      * remotes/marcandre/tags/rtd-pull-request:
        sphinx: adopt kernel readthedoc theme
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      6d34aa99
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/cminyard/tags/for-qemu-6.1-v1' into staging · 499063d0
      Peter Maydell authored
      
      Add a bus multiplexer device
      
      This patch set adds a bus multiplexer and the necessary infrastructure
      in the I2C code to allow it to work.
      
      These are common on systems with lots of I2C devices, like an IPMI BMC.
      
      # gpg: Signature made Thu 13 May 2021 22:48:07 BST
      # gpg:                using RSA key FD0D5CE67CE0F59A6688268661F38C90919BFF81
      # gpg: Good signature from "Corey Minyard <cminyard@mvista.com>" [unknown]
      # gpg:                 aka "Corey Minyard <minyard@acm.org>" [unknown]
      # gpg:                 aka "Corey Minyard <corey@minyard.net>" [unknown]
      # gpg:                 aka "Corey Minyard <minyard@mvista.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: FD0D 5CE6 7CE0 F59A 6688  2686 61F3 8C90 919B FF81
      
      * remotes/cminyard/tags/for-qemu-6.1-v1:
        hw/i2c: add pca954x i2c-mux switch
        hw/i2c: move search to i2c_scan_bus method
        hw/i2c: add match method for device search
        hw/i2c: name I2CNode list in I2CBus
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      499063d0
    • Marc-André Lureau's avatar
      sphinx: adopt kernel readthedoc theme · 73e6aec6
      Marc-André Lureau authored
      
      The default "alabaster" sphinx theme has a couple shortcomings:
      - the navbar moves along the page
      - the search bar is not always at the same place
      - it lacks some contrast and colours
      
      The "rtd" theme from readthedocs.org is a popular third party theme used
      notably by the kernel, with a custom style sheet. I like it better,
      perhaps others do too. It also simplifies the "Edit on Gitlab" links.
      
      Tweak a bit the custom theme to match qemu.org style, use the
      QEMU logo, and favicon etc.
      
      Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
      Tested-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Message-Id: <20210323115328.4146052-1-marcandre.lureau@redhat.com>
      Reviewed-by: default avatarJohn Snow <jsnow@redhat.com>
      73e6aec6
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/dgilbert/tags/pull-migration-20210513a' into staging · 96662996
      Peter Maydell authored
      
      Migration pull 2021-05-13
      
      Fix of the 2021-05-11 version, with a fix to build on the armhf
      cross.
      
      The largest change in this set is David's changes for ram block size
      changing; then there's a pile of other cleanups and fixes.
      
      Signed-off-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
      
      # gpg: Signature made Thu 13 May 2021 18:36:06 BST
      # gpg:                using RSA key 45F5C71B4A0CB7FB977A9FA90516331EBC5BFDE7
      # gpg: Good signature from "Dr. David Alan Gilbert (RH2) <dgilbert@redhat.com>" [full]
      # Primary key fingerprint: 45F5 C71B 4A0C B7FB 977A  9FA9 0516 331E BC5B FDE7
      
      * remotes/dgilbert/tags/pull-migration-20210513a:
        tests/migration: introduce multifd into guestperf
        tests/qtest/migration-test: Use g_autofree to avoid leaks on error paths
        tests/migration-test: Fix "true" vs true
        migration/ram: Use offset_in_ramblock() in range checks
        migration/multifd: Print used_length of memory block
        migration/ram: Handle RAM block resizes during postcopy
        migration/ram: Simplify host page handling in ram_load_postcopy()
        migration/ram: Discard RAM when growing RAM blocks after ram_postcopy_incoming_init()
        exec: Relax range check in ram_block_discard_range()
        migration/ram: Handle RAM block resizes during precopy
        numa: Make all callbacks of ram block notifiers optional
        numa: Teach ram block notifiers about resizeable ram blocks
        util: vfio-helpers: Factor out and fix processing of existing ram blocks
        migration: Drop redundant query-migrate result @blocked
        migration/ram: Optimize ram_save_host_page()
        migration/ram: Reduce unnecessary rate limiting
        migrate/ram: remove "ram_bulk_stage" and "fpo_enabled"
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      96662996
  3. May 13, 2021
  4. May 12, 2021
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/alistair/tags/pull-riscv-to-apply-20210511' into staging · 3e9f48bc
      Peter Maydell authored
      
      A large collection of RISC-V fixes, improvements and features
      
       - Clenaup some left over v1.9 code
       - Documentation improvements
       - Support for the shakti_c machine
       - Internal cleanup of the CSR accesses
       - Updates to the OpenTitan platform
       - Support for the virtio-vga
       - Fix for the saturate subtract in vector extensions
       - Experimental support for the ePMP spec
       - A range of other internal code cleanups and bug fixes
      
      # gpg: Signature made Tue 11 May 2021 11:17:10 BST
      # 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
      
      * remotes/alistair/tags/pull-riscv-to-apply-20210511: (42 commits)
        target/riscv: Fix the RV64H decode comment
        target/riscv: Consolidate RV32/64 16-bit instructions
        target/riscv: Consolidate RV32/64 32-bit instructions
        target/riscv: Remove an unused CASE_OP_32_64 macro
        target/riscv: Remove the unused HSTATUS_WPRI macro
        target/riscv: Remove the hardcoded SATP_MODE macro
        target/riscv: Remove the hardcoded MSTATUS_SD macro
        target/riscv: Remove the hardcoded HGATP_MODE macro
        target/riscv: Remove the hardcoded SSTATUS_SD macro
        target/riscv: Remove the hardcoded RVXLEN macro
        target/riscv: fix a typo with interrupt names
        fpu/softfloat: set invalid excp flag for RISC-V muladd instructions
        hw/riscv: Fix OT IBEX reset vector
        target/riscv: fix exception index on instruction access fault
        target/riscv: fix vrgather macro index variable type bug
        target/riscv: Add ePMP support for the Ibex CPU
        target/riscv/pmp: Remove outdated comment
        target/riscv: Add a config option for ePMP
        target/riscv: Implementation of enhanced PMP (ePMP)
        target/riscv: Add ePMP CSR access functions
        ...
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      3e9f48bc
    • Markus Armbruster's avatar
      Drop the deprecated unicore32 target · 43692239
      Markus Armbruster authored
      
      Target unicore32 was deprecated in commit 8e4ff4a8, v5.2.0.  See
      there for rationale.
      
      Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20210503084034.3804963-3-armbru@redhat.com>
      Acked-by: default avatarThomas Huth <thuth@redhat.com>
      43692239
    • Markus Armbruster's avatar
      Drop the deprecated lm32 target · 9d49bcf6
      Markus Armbruster authored
      
      Target lm32 was deprecated in commit d8498005, v5.2.0.  See there
      for rationale.
      
      Some of its code lives on in device models derived from milkymist
      ones: hw/char/digic-uart.c and hw/display/bcm2835_fb.c.
      
      Cc: Michael Walle <michael@walle.cc>
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20210503084034.3804963-2-armbru@redhat.com>
      Acked-by: default avatarMichael Walle <michael@walle.cc>
      [Trivial conflicts resolved, reST markup fixed]
      9d49bcf6
    • Markus Armbruster's avatar
      block: Drop the sheepdog block driver · 09ec8517
      Markus Armbruster authored
      
      It was deprecated in commit e1c42697, v5.2.0.  See that commit
      message for rationale.
      
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20210501075747.3293186-1-armbru@redhat.com>
      ACKed-by: default avatarPeter Krempa <pkrempa@redhat.com>
      09ec8517
    • Thomas Huth's avatar
      Remove the deprecated moxie target · 875bb7e3
      Thomas Huth authored
      
      There are no known users of this CPU anymore, and there are no
      binaries available online which could be used for regression tests,
      so the code has likely completely bit-rotten already. It's been
      marked as deprecated since two releases now and nobody spoke up
      that there is still a need to keep it, thus let's remove it now.
      
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      Message-Id: <20210430160355.698194-1-thuth@redhat.com>
      Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      [Commit message typos fixed, trivial conflicts resolved]
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      875bb7e3
    • Stefan Reiter's avatar
      monitor/qmp: fix race on CHR_EVENT_CLOSED without OOB · a67b996e
      Stefan Reiter authored
      
      The QMP dispatcher coroutine holds the qmp_queue_lock over a yield
      point, where it expects to be rescheduled from the main context. If a
      CHR_EVENT_CLOSED event is received just then, it can race and block the
      main thread on the mutex in monitor_qmp_cleanup_queue_and_resume.
      
      monitor_resume does not need to be called from main context, so we can
      call it immediately after popping a request from the queue, which allows
      us to drop the qmp_queue_lock mutex before yielding.
      
      Suggested-by: default avatarWolfgang Bumiller <w.bumiller@proxmox.com>
      Signed-off-by: default avatarStefan Reiter <s.reiter@proxmox.com>
      Message-Id: <20210322154024.15011-1-s.reiter@proxmox.com>
      Reviewed-by: default avatarKevin Wolf <kwolf@redhat.com>
      Cc: qemu-stable@nongnu.org
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      a67b996e
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/bonzini-gitlab/tags/for-upstream' into staging · 31589644
      Peter Maydell authored
      
      * AccelCPUClass and sysemu/user split for i386 (Claudio)
      * i386 page walk unification
      * Fix detection of gdbus-codegen
      * Misc refactoring
      
      # gpg: Signature made Wed 12 May 2021 09:39:29 BST
      # 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
      
      * remotes/bonzini-gitlab/tags/for-upstream: (32 commits)
        coverity-scan: list components, move model to scripts/coverity-scan
        configure: fix detection of gdbus-codegen
        qemu-option: support accept-any QemuOptsList in qemu_opts_absorb_qdict
        main-loop: remove dead code
        target/i386: use mmu_translate for NPT walk
        target/i386: allow customizing the next phase of the translation
        target/i386: extend pg_mode to more CR0 and CR4 bits
        target/i386: pass cr3 to mmu_translate
        target/i386: extract mmu_translate
        target/i386: move paging mode constants from SVM to cpu.h
        target/i386: merge SVM_NPTEXIT_* with PF_ERROR_* constants
        accel: add init_accel_cpu for adapting accel behavior to CPU type
        accel: move call to accel_init_interfaces
        i386: make cpu_load_efer sysemu-only
        target/i386: gdbstub: only write CR0/CR2/CR3/EFER for sysemu
        target/i386: gdbstub: introduce aux functions to read/write CS64 regs
        i386: split off sysemu part of cpu.c
        i386: split seg_helper into user-only and sysemu parts
        i386: split svm_helper into sysemu and stub-only user
        i386: separate fpu_helper sysemu-only parts
        ...
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      31589644
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/kraxel/tags/vga-20210510-pull-request' into staging · a5ccdccc
      Peter Maydell authored
      
      edid: display id support (for 5k+), bugfixes.
      virtio-gpu: iommu fix, device split.
      
      # gpg: Signature made Mon 10 May 2021 14:20:36 BST
      # 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
      
      * remotes/kraxel/tags/vga-20210510-pull-request: (25 commits)
        virtio-gpu: add virtio-vga-gl
        modules: add have_vga
        virtio-gpu: add virtio-gpu-gl-pci
        virtio-gpu: move fields to struct VirtIOGPUGL
        virtio-gpu: drop use_virgl_renderer
        virtio-gpu: move virtio-gpu-gl-device to separate module
        virtio-gpu: drop VIRGL() macro
        virtio-gpu: move update_cursor_data
        virtio-gpu: move virgl process_cmd
        virtio-gpu: move virgl gl_flushed
        virtio-gpu: move virgl handle_ctrl
        virtio-gpu: use class function for ctrl queue handlers
        virtio-gpu: move virgl reset
        virtio-gpu: move virgl realize + properties
        virtio-gpu: add virtio-gpu-gl-device
        virtio-gpu: rename virgl source file.
        virtio-gpu: handle partial maps properly
        edid: add support for DisplayID extension (5k resolution)
        edid: allow arbitrary-length checksums
        edid: move timing generation into a separate function
        ...
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      a5ccdccc
    • Paolo Bonzini's avatar
      coverity-scan: list components, move model to scripts/coverity-scan · e804f892
      Paolo Bonzini authored
      
      Place all files that can be useful to rebuild the Coverity
      configuration in scripts/coverity-scan: the existing model
      file, and the components setup.
      
      The Markdown syntax was tested with Pandoc (but in any case
      is meant more as a human-readable reference than as a part
      of documentation).
      
      Suggested-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      e804f892
    • Paolo Bonzini's avatar
      configure: fix detection of gdbus-codegen · 5ecfb76c
      Paolo Bonzini authored
      
      "pkg-config --variable=gdbus_codegen gio-2.0" returns "gdbus-codegen",
      and it does not pass test -x (which does not walk the path).
      
      Meson 0.58.0 notices that something is iffy, as the dbus_vmstate1
      assignment in tests/qtest/meson.build uses an empty string as the
      command, and fails very eloquently:
      
      ../tests/qtest/meson.build:92:2: ERROR: No program name specified.
      
      Use the "has" function instead of test -x, and fix the generation
      of config-host.mak since meson.build expects that GDBUS_CODEGEN
      is absent, rather than empty, if the tool is unavailable.
      
      Reported-by: default avatarSebastian Mitterle <smitterl@redhat.com>
      Fixes: #178
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      5ecfb76c
    • Paolo Bonzini's avatar
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/aperard/tags/pull-xen-20210510' into staging · 4f24f774
      Peter Maydell authored
      
      Xen patches
      
      - Avoid mmap race involving Xen's mapcache
      - Fix xenforeignmemory_resource leak at exit
      - Fix xen-block to choose a driver for the disk image when created via
        xenstore.
      
      # gpg: Signature made Mon 10 May 2021 13:49:40 BST
      # gpg:                using RSA key F80C006308E22CFD8A92E7980CF5572FD7FB55AF
      # gpg: Good signature from "Anthony PERARD <anthony.perard@gmail.com>" [unknown]
      # gpg:                 aka "Anthony PERARD <anthony.perard@citrix.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: 5379 2F71 024C 600F 778A  7161 D8D5 7199 DF83 42C8
      #      Subkey fingerprint: F80C 0063 08E2 2CFD 8A92  E798 0CF5 572F D7FB 55AF
      
      * remotes/aperard/tags/pull-xen-20210510:
        xen-block: Use specific blockdev driver
        xen: Free xenforeignmemory_resource at exit
        xen-mapcache: avoid a race on memory map while using MAP_FIXED
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      4f24f774
  5. May 11, 2021
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/thuth-gitlab/tags/s390-ccw-bios-2021-05-10' into staging · 7c7cb752
      Peter Maydell authored
      
      * Make the s390-ccw bios compilable with Clang
      * Fix ECKD booting with null block numbers in the chain
      
      # gpg: Signature made Mon 10 May 2021 08:27:34 BST
      # gpg:                using RSA key 27B88847EEE0250118F3EAB92ED9D774FE702DB5
      # gpg:                issuer "thuth@redhat.com"
      # gpg: Good signature from "Thomas Huth <th.huth@gmx.de>" [full]
      # gpg:                 aka "Thomas Huth <thuth@redhat.com>" [full]
      # gpg:                 aka "Thomas Huth <huth@tuxfamily.org>" [full]
      # gpg:                 aka "Thomas Huth <th.huth@posteo.de>" [unknown]
      # Primary key fingerprint: 27B8 8847 EEE0 2501 18F3  EAB9 2ED9 D774 FE70 2DB5
      
      * remotes/thuth-gitlab/tags/s390-ccw-bios-2021-05-10:
        pc-bios/s390: Update the s390-ccw bios binaries with the Clang and other fixes
        pc-bios/s390-ccw: Allow building with Clang, too
        pc-bios/s390-ccw: Silence GCC 11 stringop-overflow warning
        pc-bios/s390-ccw: Fix the cc-option macro in the Makefile
        pc-bios/s390-ccw: Silence warning from Clang by marking panic() as noreturn
        pc-bios/s390-ccw/netboot: Use "-Wl," prefix to pass parameter to the linker
        pc-bios/s390-ccw: Use reset_psw pointer instead of hard-coded null pointer
        pc-bios/s390-ccw/bootmap: Silence compiler warning from Clang
        pc-bios/s390-ccw: don't try to read the next block if end of chunk is reached
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      7c7cb752
    • Philippe Mathieu-Daudé's avatar
      hw/block/pflash_cfi02: Do not create aliases when not necessary · 27545c9d
      Philippe Mathieu-Daudé authored
      
      When no mapping is requested, it is pointless to create
      alias regions.
      Only create them when multiple mappings are requested to
      simplify the memory layout. The flatview is not changed.
      
      For example using 'qemu-system-sh4 -M r2d -S -monitor stdio',
      
      * before:
      
        (qemu) info mtree
        address-space: memory
          0000000000000000-ffffffffffffffff (prio 0, i/o): system
            0000000000000000-0000000000ffffff (prio 0, i/o): pflash
              0000000000000000-0000000000ffffff (prio 0, romd): alias pflash-alias @r2d.flash 0000000000000000-0000000000ffffff
            0000000004000000-000000000400003f (prio 0, i/o): r2d-fpga
            000000000c000000-000000000fffffff (prio 0, ram): r2d.sdram
        (qemu) info mtree -f
        FlatView #0
         AS "memory", root: system
         AS "cpu-memory-0", root: system
         Root memory region: system
          0000000000000000-0000000000ffffff (prio 0, romd): r2d.flash
          0000000004000000-000000000400003f (prio 0, i/o): r2d-fpga
          000000000c000000-000000000fffffff (prio 0, ram): r2d.sdram
      
      * after:
      
        (qemu) info mtree
        address-space: memory
          0000000000000000-ffffffffffffffff (prio 0, i/o): system
            0000000000000000-0000000000ffffff (prio 0, romd): r2d.flash
            0000000004000000-000000000400003f (prio 0, i/o): r2d-fpga
            000000000c000000-000000000fffffff (prio 0, ram): r2d.sdram
        (qemu) info mtree -f
        FlatView #0
         AS "memory", root: system
         AS "cpu-memory-0", root: system
         Root memory region: system
          0000000000000000-0000000000ffffff (prio 0, romd): r2d.flash
          0000000004000000-000000000400003f (prio 0, i/o): r2d-fpga
          000000000c000000-000000000fffffff (prio 0, ram): r2d.sdram
      
      Signed-off-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-Id: <20210325120921.858993-3-f4bug@amsat.org>
      Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
      27545c9d
    • Philippe Mathieu-Daudé's avatar
      hw/block/pflash_cfi02: Set romd mode in pflash_cfi02_realize() · 1d4ae5a3
      Philippe Mathieu-Daudé authored
      
      The ROMD mode isn't related to mapping setup.
      Ideally we'd set this mode when the state machine resets,
      but for now simply move it to pflash_cfi02_realize() to
      not introduce logical change.
      
      Signed-off-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-Id: <20210325120921.858993-2-f4bug@amsat.org>
      Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
      1d4ae5a3
Loading