1. 14 3月, 2018 7 次提交
  2. 13 3月, 2018 11 次提交
  3. 12 3月, 2018 22 次提交
    • P
      Merge remote-tracking branch 'remotes/kraxel/tags/ui-20180312-pull-request' into staging · b16a54da
      Peter Maydell 提交于
      gtk,spice: add dmabuf support.
      sdl,vnc,gtk: bugfixes.
      ui/qapi: add device ID and head parameters to screendump.
      build: try improve handling of clang warnings.
      
      # gpg: Signature made Mon 12 Mar 2018 09:13:28 GMT
      # gpg:                using RSA key 4CB6D8EED3E87138
      # 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>"
      # Primary key fingerprint: A032 8CFF B93A 17A7 9901  FE7D 4CB6 D8EE D3E8 7138
      
      * remotes/kraxel/tags/ui-20180312-pull-request:
        qapi: Add device ID and head parameters to screendump
        spice: add cursor_dmabuf support
        spice: add scanout_dmabuf support
        spice: drop dprint() debug logging
        vnc: deal with surface NULL pointers
        ui/gtk-egl: add cursor_dmabuf support
        ui/gtk-egl: add scanout_dmabuf support
        ui/gtk: use GtkGlArea on wayland only
        ui/opengl: Makefile cleanup
        ui/gtk: group gtk.mo declarations in Makefile
        ui/gtk: make GtkGlArea usage a runtime option
        sdl: workaround bug in sdl 2.0.8 headers
        make: switch language file build to be gtk module aware
        build: try improve handling of clang warnings
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      b16a54da
    • P
      Merge remote-tracking branch 'remotes/dgilbert/tags/pull-migration-20180309a' into staging · 819fd469
      Peter Maydell 提交于
      Migration pull 2018-03-09
      
      # gpg: Signature made Fri 09 Mar 2018 17:52:46 GMT
      # gpg:                using RSA key 0516331EBC5BFDE7
      # gpg: Good signature from "Dr. David Alan Gilbert (RH2) <dgilbert@redhat.com>"
      # Primary key fingerprint: 45F5 C71B 4A0C B7FB 977A  9FA9 0516 331E BC5B FDE7
      
      * remotes/dgilbert/tags/pull-migration-20180309a:
        tests: Silence migration-test 'bad' test
        migration: fix applying wrong capabilities
        migration/block: rename MAX_INFLIGHT_IO to MAX_IO_BUFFERS
        migration/block: reset dirty bitmap before read in bulk phase
        migration: do not transfer ram during bulk storage migration
        migration: fix minor finalize leak
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      819fd469
    • P
      Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20180309' into staging · 5df08956
      Peter Maydell 提交于
      target-arm queue:
       * i.MX: Add i.MX7 SOC implementation and i.MX7 Sabre board
       * Report the correct core count in A53 L2CTLR on the ZynqMP board
       * linux-user: preliminary SVE support work (signal handling)
       * hw/arm/boot: fix memory leak in case of error loading ELF file
       * hw/arm/boot: avoid reading off end of buffer if passed very
         small image file
       * hw/arm: Use more CONFIG switches for the object files
       * target/arm: Add "-cpu max" support
       * hw/arm/virt: Support -machine gic-version=max
       * hw/sd: improve debug tracing
       * hw/sd: sdcard: Add the Tuning Command (CMD 19)
       * MAINTAINERS: add Philippe as odd-fixes maintainer for SD
      
      # gpg: Signature made Fri 09 Mar 2018 17:24:23 GMT
      # gpg:                using RSA key 3C2525ED14360CDE
      # gpg: Good signature from "Peter Maydell <peter.maydell@linaro.org>"
      # gpg:                 aka "Peter Maydell <pmaydell@gmail.com>"
      # gpg:                 aka "Peter Maydell <pmaydell@chiark.greenend.org.uk>"
      # Primary key fingerprint: E1A5 C593 CD41 9DE2 8E83  15CF 3C25 25ED 1436 0CDE
      
      * remotes/pmaydell/tags/pull-target-arm-20180309: (25 commits)
        MAINTAINERS: Add entries for SD (SDHCI, SDBus, SDCard)
        sdhci: Fix a typo in comment
        sdcard: Add the Tuning Command (CMD19)
        sdcard: Display which protocol is used when tracing (SD or SPI)
        sdcard: Display command name when tracing CMD/ACMD
        sdcard: Do not trace CMD55, except when we already expect an ACMD
        hw/arm/virt: Support -machine gic-version=max
        hw/arm/virt: Add "max" to the list of CPU types "virt" supports
        target/arm: Make 'any' CPU just an alias for 'max'
        target/arm: Add "-cpu max" support
        target/arm: Move definition of 'host' cpu type into cpu.c
        target/arm: Query host CPU features on-demand at instance init
        arm: avoid heap-buffer-overflow in load_aarch64_image
        arm: fix load ELF error leak
        hw/arm: Use more CONFIG switches for the object files
        aarch64-linux-user: Add support for SVE signal frame records
        aarch64-linux-user: Add support for EXTRA signal frame records
        aarch64-linux-user: Remove struct target_aux_context
        aarch64-linux-user: Split out helpers for guest signal handling
        linux-user: Implement aarch64 PR_SVE_SET/GET_VL
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      5df08956
    • G
      vga: fix region calculation · 7cdc61be
      Gerd Hoffmann 提交于
      Typically the scanline length and the line offset are identical.  But
      in case they are not our calculation for region_end is incorrect.  Using
      line_offset is fine for all scanlines, except the last one where we have
      to use the actual scanline length.
      
      Fixes: CVE-2018-7550
      Reported-by: NRoss Lagerwall <ross.lagerwall@citrix.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Reviewed-by: NPrasad J Pandit <pjp@fedoraproject.org>
      Tested-by: NRoss Lagerwall <ross.lagerwall@citrix.com>
      Message-id: 20180309143704.13420-1-kraxel@redhat.com
      7cdc61be
    • G
      audio/sdl: build as module · 051c7d5c
      Gerd Hoffmann 提交于
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Message-id: 20180306074053.22856-8-kraxel@redhat.com
      051c7d5c
    • G
      audio/pulseaudio: build as module · d2f623da
      Gerd Hoffmann 提交于
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Message-id: 20180306074053.22856-7-kraxel@redhat.com
      d2f623da
    • G
      audio/oss: build as module · 22d81543
      Gerd Hoffmann 提交于
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Message-id: 20180306074053.22856-6-kraxel@redhat.com
      22d81543
    • G
      audio/alsa: build as module · ce3dc033
      Gerd Hoffmann 提交于
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Message-id: 20180306074053.22856-5-kraxel@redhat.com
      ce3dc033
    • G
      build: enable audio modules · 08a05b37
      Gerd Hoffmann 提交于
      Add audio/ to common-obj-m variable.
      
      Also run both audio and ui variables through unnest-vars.
      This avoids sdl.mo (exists in both audio/ and ui/) name clashes.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Message-id: 20180306074053.22856-4-kraxel@redhat.com
      08a05b37
    • G
      audio: add module loading support · 65ba8696
      Gerd Hoffmann 提交于
      Make audio_driver_lookup() try load the module in case it doesn't find
      the driver in the registry.  Also load all modules for -audio-help, so
      the help output includes the help text for modular audio drivers.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-id: 20180306074053.22856-3-kraxel@redhat.com
      65ba8696
    • G
      audio: add driver registry · d3893a39
      Gerd Hoffmann 提交于
      Add registry for audio drivers, using the existing audio_driver struct.
      Make all drivers register themself.  The old list of audio_driver struct
      pointers is now a list of audio driver names, specifying the priority
      (aka probe order) in case no driver is explicitly asked for.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-id: 20180306074053.22856-2-kraxel@redhat.com
      d3893a39
    • P
      Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging · 12c06d6f
      Peter Maydell 提交于
      Block layer patches
      
      # gpg: Signature made Fri 09 Mar 2018 15:09:20 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: (56 commits)
        qemu-iotests: fix 203 migration completion race
        iotests: Tweak 030 in order to trigger a race condition with parallel jobs
        iotests: Skip test for ENOMEM error
        iotests: Mark all tests executable
        iotests: Test creating overlay when guest running
        qemu-iotests: Test ssh image creation over QMP
        qemu-iotests: Test qcow2 over file image creation with QMP
        block: Fail bdrv_truncate() with negative size
        file-posix: Fix no-op bdrv_truncate() with falloc preallocation
        ssh: Support .bdrv_co_create
        ssh: Pass BlockdevOptionsSsh to connect_to_ssh()
        ssh: QAPIfy host-key-check option
        ssh: Use QAPI BlockdevOptionsSsh object
        sheepdog: Support .bdrv_co_create
        sheepdog: QAPIfy "redundancy" create option
        nfs: Support .bdrv_co_create
        nfs: Use QAPI options in nfs_client_open()
        rbd: Use qemu_rbd_connect() in qemu_rbd_do_create()
        rbd: Assign s->snap/image_name in qemu_rbd_open()
        rbd: Support .bdrv_co_create
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      12c06d6f
    • G
      modules: use gmodule-export · a88afc64
      Gerd Hoffmann 提交于
      As we want qemu symbols be exported to modules we should use the
      gmodule-export-2.0 pkg-config instead of gmodule-2.0.
      
      Cc: Marc-André Lureau <marcandre.lureau@gmail.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Message-id: 20180308085301.8875-2-kraxel@redhat.com
      a88afc64
    • T
      qapi: Add device ID and head parameters to screendump · f771c544
      Thomas Huth 提交于
      QEMU's screendump command can only take dumps from the primary display.
      When using multiple VGA cards, there is no way to get a dump from a
      secondary card or other display heads yet. So let's add a 'device' and
      a 'head' parameter to the HMP and QMP commands to be able to specify
      alternative devices and heads with the screendump command, too.
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      Acked-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Reviewed-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-id: 1520267868-31778-1-git-send-email-thuth@redhat.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      f771c544
    • G
      spice: add cursor_dmabuf support · b153f901
      Gerd Hoffmann 提交于
      Add support for cursor dmabufs.  qemu has to render the cursor for
      that, so in case a cursor is present qemu allocates a new dmabuf, blits
      the scanout, blends in the pointer and passes on the new dmabuf to
      spice-server.  Without cursor qemu continues to simply pass on the
      scanout dmabuf as-is.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-id: 20180308090618.30147-4-kraxel@redhat.com
      b153f901
    • G
      spice: add scanout_dmabuf support · cd2452b2
      Gerd Hoffmann 提交于
      Add support for scanout dmabufs.  Just
      pass them through to spice-server.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-id: 20180308090618.30147-3-kraxel@redhat.com
      cd2452b2
    • G
      spice: drop dprint() debug logging · e181f8bb
      Gerd Hoffmann 提交于
      Some calls are deleted, some are converted into tracepoints.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-id: 20180308090618.30147-2-kraxel@redhat.com
      e181f8bb
    • G
      vnc: deal with surface NULL pointers · 2e5567c9
      Gerd Hoffmann 提交于
      Secondary displays in multihead setups are allowed to have a NULL
      DisplaySurface.  Typically user interfaces handle this by hiding the
      window which shows the display in question.
      
      This isn't an option for vnc though because it simply hasn't a concept
      of windows or outputs.  So handle the situation by showing a placeholder
      DisplaySurface instead.  Also check in console_select whenever a surface
      is preset in the first place before requesting an update.
      
      This fixes a segfault which can be triggered by switching to an unused
      display (via vtrl-alt-<nr>) in a multihead setup, for example using
      -device virtio-vga,max_outputs=2.
      
      Cc: Christian Borntraeger <borntraeger@de.ibm.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Reviewed-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Tested-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      Message-id: 20180308161803.6152-1-kraxel@redhat.com
      2e5567c9
    • G
      ui/gtk-egl: add cursor_dmabuf support · f1bd3132
      Gerd Hoffmann 提交于
      Add support for cursor dmabufs to gtk-egl.  Just blend in the cursor
      (if we have one) when rendering the dmabuf.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Message-id: 20180306090951.22932-7-kraxel@redhat.com
      f1bd3132
    • G
      ui/gtk-egl: add scanout_dmabuf support · 70763fea
      Gerd Hoffmann 提交于
      Add support for dmabuf scanouts to gtk-egl.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Message-id: 20180306090951.22932-6-kraxel@redhat.com
      70763fea
    • G
      ui/gtk: use GtkGlArea on wayland only · 4c702805
      Gerd Hoffmann 提交于
      For dma-buf support we need a egl context.  The gtk x11 backend uses glx
      contexts though.  We can't use the GtkGlArea widget on x11 because of
      that, so use our own gtk-egl code instead.  wayland continues to use
      the GtkGlArea widget.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Message-id: 20180306090951.22932-5-kraxel@redhat.com
      4c702805
    • G
      ui/opengl: Makefile cleanup · 2f92f37c
      Gerd Hoffmann 提交于
      With gtk.mo bits moved away we don't need the ifeq any more.
      Also add missing opengl libs for some objects.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Message-id: 20180306090951.22932-4-kraxel@redhat.com
      2f92f37c