Skip to content
Snippets Groups Projects
  1. May 14, 2021
    • Vladimir Sementsov-Ogievskiy's avatar
      monitor: hmp_qemu_io: acquire aio contex, fix crash · 78632a3d
      Vladimir Sementsov-Ogievskiy authored
      
      Max reported the following bug:
      
      $ ./qemu-img create -f raw src.img 1G
      $ ./qemu-img create -f raw dst.img 1G
      
      $ (echo '
         {"execute":"qmp_capabilities"}
         {"execute":"blockdev-mirror",
          "arguments":{"job-id":"mirror",
                       "device":"source",
                       "target":"target",
                       "sync":"full",
                       "filter-node-name":"mirror-top"}}
      '; sleep 3; echo '
         {"execute":"human-monitor-command",
          "arguments":{"command-line":
                       "qemu-io mirror-top \"write 0 1G\""}}') \
      | x86_64-softmmu/qemu-system-x86_64 \
         -qmp stdio \
         -blockdev file,node-name=source,filename=src.img \
         -blockdev file,node-name=target,filename=dst.img \
         -object iothread,id=iothr0 \
         -device virtio-blk,drive=source,iothread=iothr0
      
      crashes:
      
      0  raise () at /usr/lib/libc.so.6
      1  abort () at /usr/lib/libc.so.6
      2  error_exit
         (err=<optimized out>,
         msg=msg@entry=0x55fbb1634790 <__func__.27> "qemu_mutex_unlock_impl")
         at ../util/qemu-thread-posix.c:37
      3  qemu_mutex_unlock_impl
         (mutex=mutex@entry=0x55fbb25ab6e0,
         file=file@entry=0x55fbb1636957 "../util/async.c",
         line=line@entry=650)
         at ../util/qemu-thread-posix.c:109
      4  aio_context_release (ctx=ctx@entry=0x55fbb25ab680) at ../util/async.c:650
      5  bdrv_do_drained_begin
         (bs=bs@entry=0x55fbb3a87000, recursive=recursive@entry=false,
         parent=parent@entry=0x0,
         ignore_bds_parents=ignore_bds_parents@entry=false,
         poll=poll@entry=true) at ../block/io.c:441
      6  bdrv_do_drained_begin
         (poll=true, ignore_bds_parents=false, parent=0x0, recursive=false,
         bs=0x55fbb3a87000) at ../block/io.c:448
      7  blk_drain (blk=0x55fbb26c5a00) at ../block/block-backend.c:1718
      8  blk_unref (blk=0x55fbb26c5a00) at ../block/block-backend.c:498
      9  blk_unref (blk=0x55fbb26c5a00) at ../block/block-backend.c:491
      10 hmp_qemu_io (mon=0x7fffaf3fc7d0, qdict=<optimized out>)
         at ../block/monitor/block-hmp-cmds.c:628
      
      man pthread_mutex_unlock
      ...
          EPERM  The  mutex type is PTHREAD_MUTEX_ERRORCHECK or
          PTHREAD_MUTEX_RECURSIVE, or the mutex is a robust mutex, and the
          current thread does not own the mutex.
      
      So, thread doesn't own the mutex. And we have iothread here.
      
      Next, note that AIO_WAIT_WHILE() documents that ctx must be acquired
      exactly once by caller. But where is it acquired in the call stack?
      Seems nowhere.
      
      qemuio_command do acquire aio context.. But we need context acquired
      around blk_unref() as well and actually around blk_insert_bs() too.
      
      Let's refactor qemuio_command so that it doesn't acquire aio context
      but callers do that instead. This way we can cleanly acquire aio
      context in hmp_qemu_io() around all three calls.
      
      Reported-by: default avatarMax Reitz <mreitz@redhat.com>
      Signed-off-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
      Message-Id: <20210423134233.51495-1-vsementsov@virtuozzo.com>
      [mreitz: Fixed comment]
      Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
      78632a3d
    • Connor Kuehl's avatar
      block/rbd: Add an escape-aware strchr helper · 2b99cfce
      Connor Kuehl authored
      
      Sometimes the parser needs to further split a token it has collected
      from the token input stream. Right now, it does a cursory check to see
      if the relevant characters appear in the token to determine if it should
      break it down further.
      
      However, qemu_rbd_next_tok() will escape characters as it removes tokens
      from the token stream and plain strchr() won't. This can make the
      initial strchr() check slightly misleading since it implies
      qemu_rbd_next_tok() will find the token and split on it, except the
      reality is that qemu_rbd_next_tok() will pass over it if it is escaped.
      
      Use a custom strchr to avoid mixing escaped and unescaped string
      operations. Furthermore, this code is identical to how
      qemu_rbd_next_tok() seeks its next token, so incorporate this custom
      strchr into the body of that function to reduce duplication.
      
      Reported-by: default avatarHan Han <hhan@redhat.com>
      Fixes: https://bugzilla.redhat.com/1873913
      
      
      Signed-off-by: default avatarConnor Kuehl <ckuehl@redhat.com>
      Message-Id: <20210421212343.85524-3-ckuehl@redhat.com>
      Reviewed-by: default avatarStefano Garzarella <sgarzare@redhat.com>
      Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
      2b99cfce
    • Connor Kuehl's avatar
      iotests/231: Update expected deprecation message · f7afa7da
      Connor Kuehl authored
      
      The deprecation message in the expected output has technically been
      wrong since the wrong version of a patch was applied to it. Because of
      this, the test fails. Correct the expected output so that it passes.
      
      Signed-off-by: default avatarConnor Kuehl <ckuehl@redhat.com>
      Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
      Reviewed-by: default avatarStefano Garzarella <sgarzare@redhat.com>
      Message-Id: <20210421212343.85524-2-ckuehl@redhat.com>
      Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
      f7afa7da
    • 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
  2. May 13, 2021
  3. 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
  4. 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
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/dgilbert-gitlab/tags/pull-virtiofs-20210506' into staging · f9a576a8
      Peter Maydell authored
      
      virtiofsd pull 2021-05-06
      
      A pile of cleanups:
      
        Use of glib allocators from Mahmoud
        Virtio spec compliance and printf cleanup from me.
        Sugar to turn on xattr when defining xattr mapping from Carlos
        an assert cleanup from Greg
      
      Signed-off-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
      
      # gpg: Signature made Thu 06 May 2021 19:54:18 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-gitlab/tags/pull-virtiofs-20210506:
        virtiofsd/fuse_virtio.c: Changed allocations of locals to GLib
        virtiofsd/passthrough_ll.c: Changed local allocations to GLib functions
        virtiofsd: Changed allocations of fv_VuDev & its internals to GLib functions
        virtiofsd: Changed allocation of lo_map_elems to GLib's functions
        virtiofsd: Changed allocations of fuse_session to GLib's functions
        virtiofsd: Changed allocations of iovec to GLib's functions
        virtiofsd: Changed allocations of fuse_req to GLib functions
        virtiofsd: Don't assume header layout
        virtiofs: Fixup printf args
        virtiofsd: Add help for -o xattr-mapping
        virtiofsd: Allow use "-o xattrmap" without "-o xattr"
        virtiofsd: Fix side-effect in assert()
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      f9a576a8
    • Alistair Francis's avatar
      target/riscv: Fix the RV64H decode comment · c30a0757
      Alistair Francis authored
      BugLink: https://gitlab.com/qemu-project/qemu/-/issues/47
      
      
      Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-id: 024ce841221c1d15c74b253512428c4baca7e4ba.1619234854.git.alistair.francis@wdc.com
      c30a0757
Loading