Skip to content
Snippets Groups Projects
  1. Jun 29, 2021
    • Vladimir Sementsov-Ogievskiy's avatar
      block: rename bdrv_replace_child to bdrv_replace_child_tran · 4bf021db
      Vladimir Sementsov-Ogievskiy authored
      
      We have bdrv_replace_child() wrapper on bdrv_replace_child_noperm().
      But bdrv_replace_child() doesn't update permissions. It's rather
      strange, as normally it's expected that foo() should call foo_noperm()
      and update permissions.
      
      Let's rename and add comment.
      
      Signed-off-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
      Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
      Message-Id: <20210610112618.127378-2-vsementsov@virtuozzo.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      4bf021db
    • Hanna Reitz's avatar
      block: BDRV_O_NO_IO for backing file on creation · d5b23994
      Hanna Reitz authored
      When creating an image file with a backing file, we generally try to
      open the backing file (unless -u was specified), mostly to verify that
      it is there, but also to get the file size if none was specified for the
      new image.
      
      For neither of these things do we need data I/O, and so we can pass
      BDRV_O_NO_IO when opening the backing file.  This allows us to open even
      encrypted backing images without requiring the user to provide a secret.
      
      This makes the -u switch in iotests 189 and 198 unnecessary (and the
      $size parameter), so drop it, because this way we get regression tests
      for this patch here.
      
      Fixes: https://gitlab.com/qemu-project/qemu/-/issues/441
      
      
      Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
      Message-Id: <20210622140030.212487-1-mreitz@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      d5b23994
    • Eric Blake's avatar
      block: Move read-only check during truncation earlier · 97efa869
      Eric Blake authored
      
      No need to start a tracked request that will always fail.  The choice
      to check read-only after bdrv_inc_in_flight() predates 1bc5f09f
      (block: Use tracked request for truncate), but waiting for serializing
      requests can make the effect more noticeable.
      
      Signed-off-by: default avatarEric Blake <eblake@redhat.com>
      Message-Id: <20210609163034.997943-1-eblake@redhat.com>
      Reviewed-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      97efa869
    • Miroslav Rezanina's avatar
      Prevent compiler warning on block.c · 2d369d6e
      Miroslav Rezanina authored
      
      Commit 3108a15c (block: introduce bdrv_drop_filter()) introduced
      uninitialized variable to_cow_parent in bdrv_replace_node_common
      function that is used only when detach_subchain is true. It is used in
      two places. First if block properly initialize the variable and second
      block use it.
      
      However, compiler may treat these two blocks as two independent cases so
      it thinks first block can fail test and second one pass (although both
      use same condition). This cause warning that variable can be
      uninitialized in second block.
      
      The warning was observed with GCC 8.4.1 and 11.0.1.
      
      To prevent this warning, initialize the variable with NULL.
      
      Signed-off-by: default avatarMiroslav Rezanina <mrezanin@redhat.com>
      Message-Id: <1162368493.17178530.1620201543649.JavaMail.zimbra@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      2d369d6e
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/rth-gitlab/tags/pull-axp-20210628' into staging · 13d5f87c
      Peter Maydell authored
      
      Fixes for NetBSD/alpha:
        - Provide a proper PCI-ISA bridge
        - Set PCI device IDs correctly
        - Pass -nographic flag to PALcode
        - Update PALcode to set up the Console Terminal Block
        - Honor the Floating-point ENable bit during translate.
      
      # gpg: Signature made Mon 28 Jun 2021 15:34:08 BST
      # 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
      
      * remotes/rth-gitlab/tags/pull-axp-20210628:
        target/alpha: Honor the FEN bit
        pc-bios: Update the palcode-clipper image
        hw/alpha: Provide a PCI-ISA bridge device node
        hw/alpha: Provide console information to the PALcode at start-up
        hw/alpha: Set minimum PCI device ID to 1 to match Clipper IRQ mappings
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      13d5f87c
  2. Jun 28, 2021
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/bonzini-gitlab/tags/for-upstream' into staging · 6512fa49
      Peter Maydell authored
      
      * Some Meson test conversions
      * KVM dirty page ring buffer fix
      * KVM TSC scaling support
      * Fixes for SG_IO with /dev/sdX devices
      * (Non)support for host devices on iOS
      * -smp cleanups
      
      # gpg: Signature made Fri 25 Jun 2021 15:16:18 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: (28 commits)
        machine: reject -smp dies!=1 for non-PC machines
        machine: pass QAPI struct to mc->smp_parse
        machine: add error propagation to mc->smp_parse
        machine: move common smp_parse code to caller
        machine: move dies from X86MachineState to CpuTopology
        file-posix: handle EINTR during ioctl
        block: detect DKIOCGETBLOCKCOUNT/SIZE before use
        block: try BSD disk size ioctls one after another
        block: check for sys/disk.h
        block: feature detection for host block support
        file-posix: try BLKSECTGET on block devices too, do not round to power of 2
        block: add max_hw_transfer to BlockLimits
        block-backend: align max_transfer to request alignment
        osdep: provide ROUND_DOWN macro
        scsi-generic: pass max_segments via max_iov field in BlockLimits
        file-posix: fix max_iov for /dev/sg devices
        KVM: Fix dirty ring mmap incorrect size due to renaming accident
        configure, meson: convert libusbredir detection to meson
        configure, meson: convert libcacard detection to meson
        configure, meson: convert libusb detection to meson
        ...
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      6512fa49
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/vsementsov/tags/pull-jobs-2021-06-25' into staging · 9e654e10
      Peter Maydell authored
      
      block: Make block-copy API thread-safe
      
      # gpg: Signature made Fri 25 Jun 2021 13:40:24 BST
      # gpg:                using RSA key 8B9C26CDB2FD147C880E86A1561F24C1F19F79FB
      # gpg: Good signature from "Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.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: 8B9C 26CD B2FD 147C 880E  86A1 561F 24C1 F19F 79FB
      
      * remotes/vsementsov/tags/pull-jobs-2021-06-25:
        block-copy: atomic .cancelled and .finished fields in BlockCopyCallState
        block-copy: add CoMutex lock
        block-copy: move progress_set_remaining in block_copy_task_end
        block-copy: streamline choice of copy_range vs. read/write
        block-copy: small refactor in block_copy_task_entry and block_copy_common
        co-shared-resource: protect with a mutex
        progressmeter: protect with a mutex
        blockjob: let ratelimit handle a speed of 0
        block-copy: let ratelimit handle a speed of 0
        ratelimit: treat zero speed as unlimited
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      9e654e10
    • Richard Henderson's avatar
      target/alpha: Honor the FEN bit · 9d14a042
      Richard Henderson authored
      
      This bit is used by NetBSD for lazy fpu migration.
      
      Tested-by: default avatarJason Thorpe <thorpej@me.com>
      Reported-by: default avatarJason Thorpe <thorpej@me.com>
      Resolves: https://gitlab.com/qemu-project/qemu/-/issues/438
      
      
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      9d14a042
    • Richard Henderson's avatar
      pc-bios: Update the palcode-clipper image · c6446a1b
      Richard Henderson authored
      
      Build a new palcode image with Jason Thorpe's patches
      to support NetBSD.
      
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      c6446a1b
    • Jason Thorpe's avatar
      hw/alpha: Provide a PCI-ISA bridge device node · 5ec4f1d3
      Jason Thorpe authored
      
      - Move initialization of the ISA bus from typhoon_init() to clipper_init();
        this apsect of device topology is really associated with the individual
        model, not the core logic chipset.  typhoon_init() now returns the IRQ
        to use for the output of the ISA PIC.
      
      - In clipper_init(), instantiate an i82378 instance, and connect its
        PIC output to the ISA IRQ input provided by typhoon_init().  Remove
        the explicit instantiations of i8254 and i82374, as these devices
        are subsumed by the i82378.
      
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Signed-off-by: default avatarJason Thorpe <thorpej@me.com>
      Message-Id: <20210616141538.25436-1-thorpej@me.com>
      [rth: Remove direct dependencies on i82374, i8254, i8259.]
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      5ec4f1d3
    • Jason Thorpe's avatar
      hw/alpha: Provide console information to the PALcode at start-up · 387a1dcb
      Jason Thorpe authored
      
      Redefine the a2 register passed by Qemu at start-up to also include
      some configuration flags, in addition to the CPU count, and define
      a flag to mirror the "-nographic" option.
      
      Signed-off-by: default avatarJason Thorpe <thorpej@me.com>
      Message-Id: <20210613211549.18094-5-thorpej@me.com>
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      387a1dcb
    • Jason Thorpe's avatar
      hw/alpha: Set minimum PCI device ID to 1 to match Clipper IRQ mappings · 3a8233dc
      Jason Thorpe authored
      
      Since we are emulating a Clipper device topology, we need to set the
      minimum PCI device ID to 1, as there is no IRQ mapping for a device
      at ID 0 (see sys_dp264.c:clipper_map_irq()).
      
      - Add a 'devfn_min' argument to typhoon_init().  Pass that argument
        along to pci_register_root_bus().
      - In clipper_init(), pass PCI_DEVFN(1, 0) as the minimum PCI device
        ID/function.
      
      Signed-off-by: default avatarJason Thorpe <thorpej@me.com>
      Message-Id: <20210613211549.18094-3-thorpej@me.com>
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      3a8233dc
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/jsnow-gitlab/tags/floppy-pull-request' into staging · 271fc190
      Peter Maydell authored
      
      FDC Pull request
      
      # gpg: Signature made Fri 25 Jun 2021 13:54:17 BST
      # gpg:                using RSA key F9B7ABDBBCACDF95BE76CBD07DEF8106AAFC390E
      # gpg: Good signature from "John Snow (John Huston) <jsnow@redhat.com>" [full]
      # Primary key fingerprint: FAEB 9711 A12C F475 812F  18F2 88A9 064D 1835 61EB
      #      Subkey fingerprint: F9B7 ABDB BCAC DF95 BE76  CBD0 7DEF 8106 AAFC 390E
      
      * remotes/jsnow-gitlab/tags/floppy-pull-request:
        hw/block/fdc: Add description to floppy controllers
        hw/block/fdc: Extract SysBus floppy controllers to fdc-sysbus.c
        hw/block/fdc: Extract ISA floppy controllers to fdc-isa.c
        hw/block/fdc: Declare shared prototypes in fdc-internal.h
        hw/block/fdc: Replace disabled fprintf() by trace event
        hw/isa/Kconfig: Fix missing dependency ISA_SUPERIO -> FDC
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      271fc190
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/philmd/tags/mips-20210625' into staging · 687f9f78
      Peter Maydell authored
      
      MIPS patches queue
      
      Various fixes:
      - Potential integer overflow (CID 1452921)
      - Invalid emulation of nanoMIPS BPOSGE32 opcode
      - Missing exception when DINSV opcode used with DSP disabled
      - Do not abort but emit exception for invalid BRANCH opcodes
      - TCG temporary leaks
      
      Housekeeping:
      - Remove dead code / comments
      - Restrict few files to TCG, declarations to sysemu
      - Merge MSA32 and MSA64 decodetree definitions
      
      # gpg: Signature made Fri 25 Jun 2021 10:22:20 BST
      # 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
      
      * remotes/philmd/tags/mips-20210625:
        target/mips: Merge msa32/msa64 decodetree definitions
        target/mips: Remove pointless gen_msa()
        target/mips: Optimize regnames[] arrays
        target/mips: Constify host_to_mips_errno[]
        target/mips: fix emulation of nanoMIPS BPOSGE32 instruction
        target/mips: Remove microMIPS BPOSGE32 / BPOSGE64 unuseful cases
        target/mips: Remove SmartMIPS / MDMX unuseful comments
        target/mips: Restrict some system specific declarations to sysemu
        target/mips: Move translate.h to tcg/ sub directory
        target/mips: Move TCG trace events to tcg/ sub directory
        target/mips: Do not abort on invalid instruction
        target/mips: Raise exception when DINSV opcode used with DSP disabled
        target/mips: Fix more TCG temporary leaks in gen_pool32a5_nanomips_insn
        target/mips: Fix TCG temporary leaks in gen_pool32a5_nanomips_insn()
        target/mips: Fix potential integer overflow (CID 1452921)
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      687f9f78
  3. Jun 25, 2021
Loading