1. 14 3月, 2018 10 次提交
  2. 13 3月, 2018 15 次提交
  3. 12 3月, 2018 15 次提交
    • 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
    • D
      trace: only permit standard C types and fixed size integer types · 73ff0610
      Daniel P. Berrangé 提交于
      Some trace backends will compile code based on the declared trace
      events. It should not be assumed that the backends can resolve any QEMU
      specific typedefs. So trace events should restrict their argument
      types to the standard C types and fixed size integer types. Any complex
      pointer types can be declared as "void *" for purposes of trace events,
      since nothing will be dereferencing these pointer arguments.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      Message-id: 20180308155524.5082-3-berrange@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      73ff0610
    • D
      trace: remove use of QEMU specific types from trace probes · 88584448
      Daniel P. Berrangé 提交于
      Any compound structs / unions / etc, should always be declared as
      'void *' pointers, since it cannot be assumed that trace backends
      are able to resolve QEMU typedefs.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      Message-id: 20180308155524.5082-2-berrange@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      88584448
    • D
      trace: include filename when printing parser error messages · 86b5aacf
      Daniel P. Berrangé 提交于
      Improves error messages from:
      
        ValueError: Error on line 72: need more than 1 value to unpack
      
      To
      
        ValueError: Error at /home/berrange/src/virt/qemu/trace-events:72:
          need more than 1 value to unpack
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      Reviewed-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Message-id: 20180306154650.24075-1-berrange@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      86b5aacf
    • S
      simpletrace: fix timestamp argument type · e42860ae
      Stefan Hajnoczi 提交于
      The timestamp argument to a trace event method is documented as follows:
      
        The method can also take a timestamp argument before the trace event
        arguments:
      
          def runstate_set(self, timestamp, new_state):
              ...
      
        Timestamps have the uint64_t type and are in nanoseconds.
      
      In reality methods with a timestamp argument actually receive a tuple
      like (123456789,) as the timestamp argument.  This is due to a bug in
      simpletrace.py.
      
      This patch unpacks the tuple so that methods receive the correct
      timestamp argument type.
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Message-id: 20180222163901.14095-1-stefanha@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      e42860ae
    • P
      log-for-trace.h: Split out parts of log.h used by trace.h · be0aa7ac
      Peter Maydell 提交于
      A persistent build problem we see is where a source file
      accidentally omits the #include of log.h. This slips through
      local developer testing because if you configure with the
      default (log) trace backend trace.h will pull in log.h for you.
      Compilation fails only if some other backend is selected.
      
      To make this error cause a compile failure regardless of
      the configured trace backend, split out the parts of log.h
      that trace.h requires into a new log-for-trace.h header.
      Since almost all manual uses of the log.h functions will
      use constants or functions which aren't in log-for-trace.h,
      this will let us catch missing #include "qemu/log.h" more
      consistently.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NRichard Henderson <richard.henderson@linaro.org>
      Message-id: 20180213140029.8308-1-peter.maydell@linaro.org
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      be0aa7ac
    • S
      block: make BDRV_POLL_WHILE() re-entrancy safe · 7376eda7
      Stefan Hajnoczi 提交于
      Nested BDRV_POLL_WHILE() calls can occur.  Currently
      assert(!wait_->wakeup) fails in AIO_WAIT_WHILE() when this happens.
      
      This patch converts the bool wait_->need_kick flag to an unsigned
      wait_->num_waiters counter.
      
      Nesting works correctly because outer AIO_WAIT_WHILE() callers evaluate
      the condition again after the inner caller completes (invoking the inner
      caller counts as aio_poll() progress).
      Reported-by: N"fuweiwei (C)" <fuweiwei2@huawei.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Message-id: 20180307124619.6218-1-stefanha@redhat.com
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      7376eda7
    • 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
    • Z
      usbredir: reorder fields in USBRedirDevice to reduce padding · c7ac1ab0
      zhenwei.pi 提交于
      Changing the current ordering saves 8 bytes per entry in x86_64.
      Signed-off-by: Nzhenwei.pi <zhenwei.pi@youruncloud.com>
      Message-id: 1520318781-22644-1-git-send-email-zhenwei.pi@youruncloud.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      c7ac1ab0
    • 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