1. 07 7月, 2014 16 次提交
  2. 06 7月, 2014 12 次提交
  3. 03 7月, 2014 1 次提交
  4. 02 7月, 2014 2 次提交
  5. 01 7月, 2014 9 次提交
    • P
      Merge remote-tracking branch 'remotes/kraxel/tags/pull-usb-20140701-1' into staging · 596742db
      Peter Maydell 提交于
      usb bugfixes.
      
      # gpg: Signature made Tue 01 Jul 2014 14:51:19 BST using RSA key ID D3E87138
      # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>"
      # gpg:                 aka "Gerd Hoffmann <gerd@kraxel.org>"
      # gpg:                 aka "Gerd Hoffmann (private) <kraxel@gmail.com>"
      
      * remotes/kraxel/tags/pull-usb-20140701-1:
        ccid-card-emulated: use EventNotifier
        usb: initialize libusb_device to avoid crash
        usb: Fix usb-bt-dongle initialization.
        input: fix jumpy mouse cursor with USB mouse emulation
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      596742db
    • P
      Merge remote-tracking branch 'remotes/kraxel/tags/pull-vnc-20140701-1' into staging · f9119a25
      Peter Maydell 提交于
      vnc: two bugfixes (by Peter Lieven).
      
      # gpg: Signature made Tue 01 Jul 2014 12:32:19 BST using RSA key ID D3E87138
      # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>"
      # gpg:                 aka "Gerd Hoffmann <gerd@kraxel.org>"
      # gpg:                 aka "Gerd Hoffmann (private) <kraxel@gmail.com>"
      
      * remotes/kraxel/tags/pull-vnc-20140701-1:
        ui/vnc: fix potential memory corruption issues
        ui/vnc: limit client_cut_text msg payload size
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      f9119a25
    • P
      ccid-card-emulated: use EventNotifier · c1129f6b
      Paolo Bonzini 提交于
      Shut up Coverity's complaint about unchecked fcntl return values,
      and especially make the code simpler and more efficient.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      c1129f6b
    • P
      Merge remote-tracking branch 'remotes/stefanha/tags/tracing-pull-request' into staging · 1aa85f46
      Peter Maydell 提交于
      Tracing pull request
      
      # gpg: Signature made Tue 01 Jul 2014 09:56:27 BST using RSA key ID 81AB73C8
      # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>"
      # gpg:                 aka "Stefan Hajnoczi <stefanha@gmail.com>"
      
      * remotes/stefanha/tags/tracing-pull-request:
        trace: add qemu_system_powerdown_request and qemu_system_shutdown_request trace events
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      1aa85f46
    • P
      Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging · 8593efa4
      Peter Maydell 提交于
      Block pull request
      
      # gpg: Signature made Tue 01 Jul 2014 09:47:15 BST using RSA key ID 81AB73C8
      # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>"
      # gpg:                 aka "Stefan Hajnoczi <stefanha@gmail.com>"
      
      * remotes/stefanha/tags/block-pull-request: (23 commits)
        block: add backing-file option to block-stream
        block: extend block-commit to accept a string for the backing file
        block: add helper function to determine if a BDS is in a chain
        block: add QAPI command to allow live backing file change
        qapi: Change back sector-count to sectors-count in quorum QAPI events.
        block/cow: Avoid use of uninitialized cow_bs in error path
        block: simplify bdrv_find_base() and bdrv_find_overlay()
        block: make 'top' argument to block-commit optional
        iotests: Add more tests to quick group
        iotests: Add qemu tests to quick group
        iotests: Simplify qemu-iotests-quick.sh
        qemu-img create: add 'nocow' option
        virtio-blk: remove need for explicit x-data-plane=on option
        qdev: drop iothread property type
        virtio-blk: replace x-iothread with iothread link property
        virtio-blk: move qdev properties into virtio-blk.c
        virtio: fix virtio-blk child refcount in transports
        virtio-blk: drop virtio_blk_set_conf()
        virtio-blk: use aliases instead of duplicate qdev properties
        qdev: add qdev_alias_all_properties()
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      8593efa4
    • P
      ui/vnc: fix potential memory corruption issues · bea60dd7
      Peter Lieven 提交于
      this patch makes the VNC server work correctly if the
      server surface and the guest surface have different sizes.
      
      Basically the server surface is adjusted to not exceed VNC_MAX_WIDTH
      x VNC_MAX_HEIGHT and additionally the width is rounded up to multiple of
      VNC_DIRTY_PIXELS_PER_BIT.
      
      If we have a resolution whose width is not dividable by VNC_DIRTY_PIXELS_PER_BIT
      we now get a small black bar on the right of the screen.
      
      If the surface is too big to fit the limits only the upper left area is shown.
      
      On top of that this fixes 2 memory corruption issues:
      
      The first was actually discovered during playing
      around with a Windows 7 vServer. During resolution
      change in Windows 7 it happens sometimes that Windows
      changes to an intermediate resolution where
      server_stride % cmp_bytes != 0 (in vnc_refresh_server_surface).
      This happens only if width % VNC_DIRTY_PIXELS_PER_BIT != 0.
      
      The second is a theoretical issue, but is maybe exploitable
      by the guest. If for some reason the guest surface size is bigger
      than VNC_MAX_WIDTH x VNC_MAX_HEIGHT we end up in severe corruption since
      this limit is nowhere enforced.
      Signed-off-by: NPeter Lieven <pl@kamp.de>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      bea60dd7
    • P
      ui/vnc: limit client_cut_text msg payload size · f9a70e79
      Peter Lieven 提交于
      currently a malicious client could define a payload
      size of 2^32 - 1 bytes and send up to that size of
      data to the vnc server. The server would allocated
      that amount of memory which could easily create an
      out of memory condition.
      
      This patch limits the payload size to 1MB max.
      
      Please note that client_cut_text messages are currently
      silently ignored.
      Signed-off-by: NPeter Lieven <pl@kamp.de>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      f9a70e79
    • J
      usb: initialize libusb_device to avoid crash · 3ce21445
      Jincheng Miao 提交于
      If libusb_get_device_list() fails, the uninitialized local variable
      libusb_device would be passed to libusb_free_device_list(), that
      will cause a crash, like:
      (gdb) bt
       #0  0x00007fbbb4bafc10 in pthread_mutex_lock () from /lib64/libpthread.so.0
       #1  0x00007fbbb233e653 in libusb_unref_device (dev=0x6275682d627375)
           at core.c:902
       #2  0x00007fbbb233e739 in libusb_free_device_list (list=0x7fbbb6e8436e,
           unref_devices=<optimized out>) at core.c:653
       #3  0x00007fbbb6cd80a4 in usb_host_auto_check (unused=unused@entry=0x0)
           at hw/usb/host-libusb.c:1446
       #4  0x00007fbbb6cd8525 in usb_host_initfn (udev=0x7fbbbd3c5670)
           at hw/usb/host-libusb.c:912
       #5  0x00007fbbb6cc123b in usb_device_init (dev=0x7fbbbd3c5670)
           at hw/usb/bus.c:106
       ...
      
      So initialize libusb_device at the begin time.
      Signed-off-by: NJincheng Miao <jmiao@redhat.com>
      Reviewed-by: NGonglei <arei.gonglei@huawei.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      3ce21445
    • H
      usb: Fix usb-bt-dongle initialization. · c340a284
      Hani Benhabiles 提交于
      Due to an incomplete initialization, adding a usb-bt-dongle device through HMP
      or QMP will cause a segmentation fault.
      Signed-off-by: NHani Benhabiles <hani@linux.com>
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      c340a284