1. 06 6月, 2016 27 次提交
  2. 03 6月, 2016 13 次提交
    • P
      Merge remote-tracking branch 'remotes/kraxel/tags/pull-ui-20160603-1' into staging · 6b3532b2
      Peter Maydell 提交于
      vnc: keyboard delay, colormap support
      ui: misc bugfixes
      
      # gpg: Signature made Fri 03 Jun 2016 08:02:32 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-ui-20160603-1:
        vnc: add configurable keyboard delay
        sdl2: skip init without outputs
        vnc: Add support for color map
        SDL2: add bgrx pixel format
        gtk: fix unchecked vc dereference
        ui: spice: Exit if gl=on EGL init fails
        ui: egl: Replace fprintf with error_report
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      6b3532b2
    • D
      e1000e: Fix build with ust trace backend · defbaec1
      Dmitry Fleytman 提交于
      ust trace backend has limitation of maximum 10
      arguments per event. Traces with more arguments
      cannot be compiled for this backend.
      
      Trace e1000e_rx_rss_ip6 introduced by previous
      commits has 11 arguments and fails to compile with
      ust trace backend.
      
      This patch fixes the problem by splitting this
      tracepoint into two successive tracepoints with
      smaller number of arguments.
      
      For more information see comment regarding TP_ARGS
      in lttng/tracepoint.h:
      
      /*
      * TP_ARGS takes tuples of type, argument separated by a comma.
      * It can take up to 10 tuples (which means that less than 10 tuples is
      * fine too).
      * Each tuple is also separated by a comma.
      */
      
      Build log generated by this problem:
      
      In file included from ./trace/generated-tracers.h:9:0,
                       from /home/travis/build/qemu/qemu/include/trace.h:4,
                       from util/oslib-posix.c:36:
      ./trace/generated-ust-provider.h:16556:3: error: unknown type name ‘_TP_EXPROTO_Bool’
      In file included from /home/travis/build/qemu/qemu/include/trace.h:4:0,
                       from util/oslib-posix.c:36:
      ./trace/generated-tracers.h: In function ‘trace_e1000e_rx_rss_ip6’:
      ./trace/generated-tracers.h:8379:431: error: expected string literal before ‘_SDT_ASM_OPERANDS_ipv6_enabled’
      ./trace/generated-tracers.h:8379:431: error: implicit declaration of function ‘__tracepoint_cb_qemu___e1000e_rx_rss_ip6’ [-Werror=implicit-function-declaration]
      ./trace/generated-tracers.h:8379:431: error: nested extern declaration of ‘__tracepoint_cb_qemu___e1000e_rx_rss_ip6’ [-Werror=nested-externs]
      cc1: all warnings being treated as errors
      make: *** [util/oslib-posix.o] Error 1
      make: *** Waiting for unfinished jobs....
      In file included from ./trace/generated-tracers.h:9:0,
                       from /home/travis/build/qemu/qemu/include/trace.h:4,
                       from util/hbitmap.c:16:
      ./trace/generated-ust-provider.h:16556:3: error: unknown type name ‘_TP_EXPROTO_Bool’
      In file included from /home/travis/build/qemu/qemu/include/trace.h:4:0,
                       from util/hbitmap.c:16:
      ./trace/generated-tracers.h: In function ‘trace_e1000e_rx_rss_ip6’:
      ./trace/generated-tracers.h:8379:431: error: expected string literal before ‘_SDT_ASM_OPERANDS_ipv6_enabled’
      ./trace/generated-tracers.h:8379:431: error: implicit declaration of function ‘__tracepoint_cb_qemu___e1000e_rx_rss_ip6’ [-Werror=implicit-function-declaration]
      ./trace/generated-tracers.h:8379:431: error: nested extern declaration of ‘__tracepoint_cb_qemu___e1000e_rx_rss_ip6’ [-Werror=nested-externs]
      cc1: all warnings being treated as errors
      make: *** [util/hbitmap.o] Error 1
      Signed-off-by: NDmitry Fleytman <dmitry@daynix.com>
      Message-id: 1464894748-27803-1-git-send-email-dmitry@daynix.com
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      defbaec1
    • X
      hw/audio: QOM'ify milkymist-ac97.c · 07b9098d
      xiaoqiang zhao 提交于
      * Drop the old SysBus init function and use instance_init
      * Move AUD_open_in / AUD_open_out function into realize stage
      Acked-by: NMichael Walle <michael@walle.cc>
      Tested-by: NMichael Walle <michael@walle.cc>
      Signed-off-by: Nxiaoqiang zhao <zxq_yx_007@163.com>
      Message-id: 1463111220-30335-5-git-send-email-zxq_yx_007@163.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      07b9098d
    • X
      hw/audio: QOM'ify intel-hda · bda8d9b8
      xiaoqiang zhao 提交于
      * use DeviceClass::realize instead of DeviceClass::init
      Signed-off-by: Nxiaoqiang zhao <zxq_yx_007@163.com>
      Message-id: 1463111220-30335-4-git-send-email-zxq_yx_007@163.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      bda8d9b8
    • X
      hw/audio: QOM cleanup for intel-hda · e19202af
      xiaoqiang zhao 提交于
      drop the DO_UPCAST macro
      Signed-off-by: Nxiaoqiang zhao <zxq_yx_007@163.com>
      Message-id: 1463111220-30335-3-git-send-email-zxq_yx_007@163.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      e19202af
    • X
      hw/audio: QOM'ify cs4231.c · ff2df541
      xiaoqiang zhao 提交于
      Drop the old SysBus init function and use instance_init
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: Nxiaoqiang zhao <zxq_yx_007@163.com>
      Message-id: 1463111220-30335-2-git-send-email-zxq_yx_007@163.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      ff2df541
    • P
      audio: pa: Set volume of recording stream instead of recording device · e58ff62d
      Peter Krempa 提交于
      Since pulseaudio 1.0 it's possible to set the individual stream volume
      rather than setting the device volume. With this, setting hardware mixer
      of a emulated sound card doesn't mess up the volume configuration of the
      host.
      
      A side effect is that this limits compatible pulseaudio version to 1.0
      which was released on 2011-09-27.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-id: 78853815be2069971b89b3a2e3181837064dd8f3.1462962512.git.pkrempa@redhat.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      e58ff62d
    • G
      virtio-gpu: fix scanout rectangles · fa06e5cb
      Gerd Hoffmann 提交于
      Commit "ca58b45f ui/virtio-gpu: add and use qemu_create_displaysurface_pixman"
      breaks scanouts which use a region of the underlying resource only.
      
      So, we need another way to handle the underlying issue.  Lets create a
      new pixman image, grab a reference on the pixman providing the
      underlying storage, hook up a destroy callback which releases the
      reference.  That way regions work again and releasing the backing
      storage should still be impossible thanks to the extra reference we are
      holding.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-id: 1464597655-26341-1-git-send-email-kraxel@redhat.com
      fa06e5cb
    • G
      vnc: add configurable keyboard delay · c5ce8333
      Gerd Hoffmann 提交于
      Limits the rate kbd events from the vnc server are forwarded to the
      guest, so input devices which are typically low-bandwidth can keep
      up even on bulky input.
      
      v2: update documentation too.
      v3: spell fixes.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Tested-by: NYang Hongyang <hongyang.yang@easystack.cn>
      Message-id: 1464762150-25817-1-git-send-email-kraxel@redhat.com
      c5ce8333
    • G
      sdl2: skip init without outputs · 8efa5f29
      Gerd Hoffmann 提交于
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Tested-by: NCole Robinson <crobinso@redhat.com>
      Message-id: 1464790116-32405-1-git-send-email-kraxel@redhat.com
      8efa5f29
    • A
      vnc: Add support for color map · 0c426e45
      Alexander Graf 提交于
      Our current VNC code does not handle color maps (aka non-true-color) at all
      and aborts if a client requests them. There are 2 major issues with this:
      
       1) A VNC viewer on an 8-bit X11 system may request color maps
       2) RealVNC _always_ starts requesting color maps, then moves on to full color
      
      In order to support these 2 use cases, let's just create a fake color map
      that covers exactly our normal true color 8 bit color space. That way we don't
      lose anything over a client that wants true color.
      Reported-by: NSascha Wehnert <swehnert@suse.com>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NPavel Butsykin <pbutsykin@virtuozzo.com>
      Signed-off-by: NDenis V. Lunev <den@openvz.org>
      Message-id: 1464099559-20789-1-git-send-email-den@openvz.org
      
      Actually this is a very old patch originally submitted in 2013 by
      Alexander. The situation is still the same with RealVNC, it does not
      connect by default to QEMU VNC. The problem is that this client is
      really popular. This is better to be kludged.
      Signed-off-by: NPavel Butsykin <pbutsykin@virtuozzo.com>
      Signed-off-by: NDenis V. Lunev <den@openvz.org>
      CC: Gerd Hoffmann <kraxel@redhat.com>
      CC: Paolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      0c426e45
    • P
      SDL2: add bgrx pixel format · 435deffe
      Pavel Dovgalyuk 提交于
      This patch adds support of b8g8r8x8 pixel format for SDL2.
      Signed-off-by: NPavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
      Message-id: 20160517072848.4540.34695.stgit@PASHA-ISP
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      435deffe
    • G
      gtk: fix unchecked vc dereference · 41cc5239
      Gerd Hoffmann 提交于
      Spotted by Coverity.
      
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Message-id: 1463737748-1062-1-git-send-email-kraxel@redhat.com
      41cc5239