1. 06 11月, 2018 5 次提交
    • P
      hw/arm/exynos4210: Zero memory allocated for Exynos4210State · 76a82ced
      Peter Maydell 提交于
      In exynos4210_init() we allocate memory for an Exynos4210State
      struct. Generally devices can assume that the memory allocated
      for their state struct is zero-initialized; we broke that
      assumption here by using g_new(). Use g_new0() instead.
      (In particular, some code assumes that the various irq arrays
      in the Exynos4210Irq sub-struct are zero-initialized.)
      
      In the longer term, this code should be QOMified, and then
      the struct memory will be allocated elsewhere and by functions
      which always zero-initalize it; but for 3.1 this is a
      simple fix.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NPhilippe Mathieu-Daudé <philmd@redhat.com>
      Tested-by: NPhilippe Mathieu-Daudé <philmd@redhat.com>
      Message-id: 20181105151132.13884-1-peter.maydell@linaro.org
      76a82ced
    • P
      milkymist: Check for failure trying to load BIOS image · 40af11eb
      Peter Maydell 提交于
      Check the return value from load_image_targphys(), which tells us
      whether our attempt to load the BIOS image into RAM failed.
      (Spotted by Coverity, CID 1190305.)
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NPhilippe Mathieu-Daudé <philmd@redhat.com>
      Acked-by: NMichael Walle <michael@walle.cc>
      Message-id: 20181030170032.1844-1-peter.maydell@linaro.org
      40af11eb
    • P
      target/arm: Remove can't-happen if() from handle_vec_simd_shli() · f6c98f91
      Peter Maydell 提交于
      In handle_vec_simd_shli() we have a check:
           if (size > 3 && !is_q) {
               unallocated_encoding(s);
               return;
           }
      However this can never be true, because we calculate
          int size = 32 - clz32(immh) - 1;
      where immh is a 4 bit field which we know cannot be all-zeroes.
      So the clz32() return must be in {28,29,30,31} and the resulting
      size is in {0,1,2,3}, and "size > 3" is never true.
      
      This unnecessary code confuses Coverity's analysis:
      in CID 1396476 it thinks we might later index off the
      end of an array because the condition implies that we
      might have a size > 3.
      
      Remove the code, and instead assert that the size is in [0..3],
      since the decode that enforces that is somewhat distant from
      this function.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NPhilippe Mathieu-Daudé <philmd@redhat.com>
      Reviewed-by: NAlex Bennée <alex.bennee@linaro.org>
      Tested-by: NAlex Bennée <alex.bennee@linaro.org>
      Message-id: 20181030162517.21816-1-peter.maydell@linaro.org
      f6c98f91
    • P
      Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20181105' into staging · 03c1ca1c
      Peter Maydell 提交于
      - some changes in s390x maintainership
      - bugfix in vfio-ap
      
      # gpg: Signature made Mon 05 Nov 2018 16:34:03 GMT
      # gpg:                using RSA key DECF6B93C6F02FAF
      # gpg: Good signature from "Cornelia Huck <conny@cornelia-huck.de>"
      # gpg:                 aka "Cornelia Huck <huckc@linux.vnet.ibm.com>"
      # gpg:                 aka "Cornelia Huck <cornelia.huck@de.ibm.com>"
      # gpg:                 aka "Cornelia Huck <cohuck@kernel.org>"
      # gpg:                 aka "Cornelia Huck <cohuck@redhat.com>"
      # Primary key fingerprint: C3D0 D66D C362 4FF6 A8C0  18CE DECF 6B93 C6F0 2FAF
      
      * remotes/cohuck/tags/s390x-20181105:
        MAINTAINERS: s390/boot: the ipl code and the bios belong together
        MAINTAINERS: s390: Remove myself
        MAINTAINERS: s390/pci: add Collin Walling as maintainer for zpci
        MAINTAINERS: s390/virtio-ccw: drop Christian, add Halil
        MAINTAINERS: s390: more maintainers for vfio-ccw
        s390x/vfio-ap: report correct error
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      03c1ca1c
    • P
      Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging · 3cb99f41
      Peter Maydell 提交于
      Block layer patches:
      
      - auto-read-only option to fix commit job when used with -blockdev
      - Fix help text related qemu-iotests failure (by improving the help text
        and updating the reference output)
      - quorum: Add missing checks when adding/removing child nodes
      - Don't take address of fields in packed structs
      - vvfat: Fix crash when reporting error about too many files in directory
      
      # gpg: Signature made Mon 05 Nov 2018 15:35:25 GMT
      # gpg:                using RSA key 7F09B272C88F2FD6
      # gpg: Good signature from "Kevin Wolf <kwolf@redhat.com>"
      # Primary key fingerprint: DC3D EB15 9A9A F95D 3D74  56FE 7F09 B272 C88F 2FD6
      
      * remotes/kevin/tags/for-upstream: (36 commits)
        include: Add a comment to explain the origin of sizes' lookup table
        vdi: Use a literal number of bytes for DEFAULT_CLUSTER_SIZE
        fw_cfg: Drop newline in @file description
        object: Make option help nicer to read
        qdev-monitor: Make device options help nicer
        chardev: Indent list of chardevs
        option: Make option help nicer to read
        qemu-iotests: Test auto-read-only with -drive and -blockdev
        block: Make auto-read-only=on default for -drive
        iscsi: Support auto-read-only option
        gluster: Support auto-read-only option
        curl: Support auto-read-only option
        file-posix: Support auto-read-only option
        nbd: Support auto-read-only option
        block: Require auto-read-only for existing fallbacks
        rbd: Close image in qemu_rbd_open() error path
        block: Add auto-read-only option
        block: Update flags in bdrv_set_read_only()
        iotest: Test x-blockdev-change on a Quorum
        quorum: Forbid adding children in blkverify mode
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      3cb99f41
  2. 05 11月, 2018 35 次提交