1. 05 2月, 2019 7 次提交
  2. 04 2月, 2019 3 次提交
  3. 02 2月, 2019 3 次提交
    • D
      virtio: add checks for the size of the indirect table · 74231929
      Dima Stepanov 提交于
      The virtqueue_pop() and virtqueue_get_avail_bytes() routines can use the
      INDIRECT table to get the data. It is possible to create a packet which
      will lead to the assert message like:
        include/exec/memory.h:1995: void
        address_space_read_cached(MemoryRegionCache *, hwaddr, void *, int):
        Assertion `addr < cache->len && len <= cache->len - addr' failed.
        Aborted
      To do it the first descriptor should have a link to the INDIRECT table
      and set the size of it to 0. It doesn't look good that the guest should
      be able to trigger the assert in qemu. Add additional check for the size
      of the INDIRECT table, which should not be 0.
      Signed-off-by: NDima Stepanov <dimastep@yandex-team.ru>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: NPhilippe Mathieu-Daudé <philmd@redhat.com>
      Reviewed-by: NCornelia Huck <cohuck@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      74231929
    • P
      Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging · b3fc0af1
      Peter Maydell 提交于
      Block layer patches:
      
      - vmdk: Support for blockdev-create
      - block: Apply auto-read-only for ro-whitelist drivers
      - virtio-scsi: Fixes related to attaching/detaching iothreads
      - scsi-disk: Fixed erroneously detected multipath setup with multiple
        disks created with node-names. Added device_id property.
      - block: Fix hangs in synchronous APIs with iothreads
      - block: Fix invalidate_cache error path for parent activation
      - block-backend, mirror, qcow2, vpc, vdi, qemu-iotests:
        Minor fixes and code improvements
      
      # gpg: Signature made Fri 01 Feb 2019 15:23:10 GMT
      # gpg:                using RSA key 7F09B272C88F2FD6
      # gpg: Good signature from "Kevin Wolf <kwolf@redhat.com>" [full]
      # Primary key fingerprint: DC3D EB15 9A9A F95D 3D74  56FE 7F09 B272 C88F 2FD6
      
      * remotes/kevin/tags/for-upstream: (27 commits)
        scsi-disk: Add device_id property
        scsi-disk: Don't use empty string as device id
        qtest.py: Wait for the result of qtest commands
        block: Fix invalidate_cache error path for parent activation
        iotests/236: fix transaction kwarg order
        iotests: Filter second BLOCK_JOB_ERROR from 229
        virtio-scsi: Forbid devices with different iothreads sharing a blockdev
        scsi-disk: Acquire the AioContext in scsi_*_realize()
        virtio-scsi: Move BlockBackend back to the main AioContext on unplug
        block: Eliminate the S_1KiB, S_2KiB, ... macros
        block: Remove blk_attach_dev_legacy() / legacy_dev code
        block: Apply auto-read-only for ro-whitelist drivers
        uuid: Make qemu_uuid_bswap() take and return a QemuUUID
        block/vdi: Don't take address of fields in packed structs
        block/vpc: Don't take address of fields in packed structs
        vmdk: Reject excess extents in blockdev-create
        iotests: Add VMDK tests for blockdev-create
        iotests: Filter cid numbers in VMDK extent info
        vmdk: Implement .bdrv_co_create callback
        vmdk: Refactor vmdk_create_extent
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      b3fc0af1
    • P
      Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20190201' into staging · e83d7428
      Peter Maydell 提交于
      target-arm queue:
       * New machine mps2-an521 -- this is a model of the AN521 FPGA image for the MPS2 devboard
       * Fix various places where we failed to UNDEF invalid A64 instructions
       * Don't UNDEF a valid FCMLA on 32-bit inputs
       * Fix some bugs in the newly-added PAuth implementation
       * microbit: Implement NVMC non-volatile memory controller
      
      # gpg: Signature made Fri 01 Feb 2019 16:06:03 GMT
      # gpg:                using RSA key E1A5C593CD419DE28E8315CF3C2525ED14360CDE
      # gpg:                issuer "peter.maydell@linaro.org"
      # gpg: Good signature from "Peter Maydell <peter.maydell@linaro.org>" [ultimate]
      # gpg:                 aka "Peter Maydell <pmaydell@gmail.com>" [ultimate]
      # gpg:                 aka "Peter Maydell <pmaydell@chiark.greenend.org.uk>" [ultimate]
      # Primary key fingerprint: E1A5 C593 CD41 9DE2 8E83  15CF 3C25 25ED 1436 0CDE
      
      * remotes/pmaydell/tags/pull-target-arm-20190201: (47 commits)
        tests/microbit-test: Add tests for nRF51 NVMC
        arm: Instantiate NRF51 special NVM's and NVMC
        hw/nvram/nrf51_nvm: Add nRF51 non-volatile memories
        target/arm: fix decoding of B{,L}RA{A,B}
        target/arm: fix AArch64 virtual address space size
        linux-user: Initialize aarch64 pac keys
        aarch64-linux-user: Enable HWCAP bits for PAuth
        aarch64-linux-user: Update HWCAP bits from linux 5.0-rc1
        target/arm: Always enable pac keys for user-only
        arm: Clarify the logic of set_pc()
        target/arm: Enable API, APK bits in SCR, HCR
        target/arm: Add a timer to predict PMU counter overflow
        target/arm: Send interrupts on PMU counter overflow
        target/arm/translate-a64: Fix mishandling of size in FCMLA decode
        target/arm/translate-a64: Fix FCMLA decoding error
        exec.c: Don't reallocate IOMMUNotifiers that are in use
        target/arm/translate-a64: Don't underdecode SDOT and UDOT
        target/arm/translate-a64: Don't underdecode FP insns
        target/arm/translate-a64: Don't underdecode add/sub extended register
        target/arm/translate-a64: Don't underdecode SIMD ld/st single
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      e83d7428
  4. 01 2月, 2019 27 次提交