1. 17 10月, 2017 1 次提交
  2. 19 9月, 2017 1 次提交
    • A
      Convert single line fprintf(.../n) to warn_report() · 2ab4b135
      Alistair Francis 提交于
      Convert all the single line uses of fprintf(stderr, "warning:"..."\n"...
      to use warn_report() instead. This helps standardise on a single
      method of printing warnings to the user.
      
      All of the warnings were changed using this command:
        find ./* -type f -exec sed -i \
          's|fprintf(.*".*warning[,:] \(.*\)\\n"\(.*\));|warn_report("\1"\2);|Ig' \
          {} +
      
      Some of the lines were manually edited to reduce the line length to below
      80 charecters.
      
      The #include lines were manually updated to allow the code to compile.
      Signed-off-by: NAlistair Francis <alistair.francis@xilinx.com>
      Cc: Kevin Wolf <kwolf@redhat.com>
      Cc: Max Reitz <mreitz@redhat.com>
      Cc: "Michael S. Tsirkin" <mst@redhat.com>
      Cc: Igor Mammedov <imammedo@redhat.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Richard Henderson <rth@twiddle.net>
      Cc: Eduardo Habkost <ehabkost@redhat.com>
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Cc: Jason Wang <jasowang@redhat.com>
      Cc: Michael Roth <mdroth@linux.vnet.ibm.com>
      Cc: James Hogan <james.hogan@imgtec.com>
      Cc: Aurelien Jarno <aurelien@aurel32.net>
      Cc: Yongbok Kim <yongbok.kim@imgtec.com>
      Cc: Stefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: James Hogan <james.hogan@imgtec.com> [mips]
      Message-Id: <ae8f8a7f0a88ded61743dff2adade21f8122a9e7.1505158760.git.alistair.francis@xilinx.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      2ab4b135
  3. 14 6月, 2017 1 次提交
  4. 27 2月, 2017 3 次提交
  5. 31 1月, 2017 1 次提交
  6. 28 9月, 2016 1 次提交
    • G
      spice/gl: render DisplaySurface via opengl · 44231843
      Gerd Hoffmann 提交于
      This switches over spice (in opengl mode) to render DisplaySurface
      updates into a opengl texture, using the helper functions in
      ui/console-gl.c.  With this patch applied spice (with gl=on) will
      stop using qxl rendering ops, it will use dma-buf passing all the
      time, i.e. for bios/bootloader (before virtio-gpu driver is loaded)
      too.
      
      This should improve performance even using spice (with gl=on) with
      non-accelerated stdvga because we stop squeezing all display updates
      through a unix/tcp socket and basically using a shared memory transport
      instead.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Message-id: 1474617028-3979-3-git-send-email-kraxel@redhat.com
      44231843
  7. 06 7月, 2016 3 次提交
  8. 07 6月, 2016 1 次提交
  9. 12 5月, 2016 2 次提交
  10. 23 2月, 2016 5 次提交
  11. 05 2月, 2016 1 次提交
    • P
      ui: Clean up includes · e16f4c87
      Peter Maydell 提交于
      Clean up includes so that osdep.h is included first and headers
      which it implies are not included manually.
      
      This commit was created with scripts/clean-includes.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1454089805-5470-2-git-send-email-peter.maydell@linaro.org
      e16f4c87
  12. 21 9月, 2015 1 次提交
  13. 11 9月, 2015 1 次提交
  14. 23 6月, 2015 1 次提交
  15. 11 6月, 2015 2 次提交
  16. 30 4月, 2015 2 次提交
  17. 27 4月, 2015 4 次提交
  18. 22 1月, 2015 1 次提交
    • G
      spice: fix coverity reported defect in display code · 51a09099
      Gerd Hoffmann 提交于
      Report:
      
      1. Condition surface, taking false branch
      406    if (surface && ssd->surface &&
      407        surface_width(surface) == pixman_image_get_width(ssd->surface) &&
      408        surface_height(surface) == pixman_image_get_height(ssd->surface)) {
      409        /* no-resize fast path: just swap backing store */
      ...
      
      10. alias_transfer: Assigning: ssd->ds = surface.
      440    ssd->ds = surface;
      
      11. var_deref_op: Dereferencing null pointer ssd->ds.
      CID 1264334 (#1 of 1): Dereference after null check (FORWARD_NULL)
      441    ssd->surface = pixman_image_ref(ssd->ds->image);
      
      Fix:
      
      Move code block dereferencing ssd->ds into the already existing
      if (ssd->ds) { ... } block.
      
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      51a09099
  19. 19 1月, 2015 1 次提交
  20. 16 12月, 2014 2 次提交
  21. 05 9月, 2014 1 次提交
    • G
      spice: make sure we don't overflow ssd->buf · ab9509cc
      Gerd Hoffmann 提交于
      Related spice-only bug.  We have a fixed 16 MB buffer here, being
      presented to the spice-server as qxl video memory in case spice is
      used with a non-qxl card.  It's also used with qxl in vga mode.
      
      When using display resolutions requiring more than 16 MB of memory we
      are going to overflow that buffer.  In theory the guest can write,
      indirectly via spice-server.  The spice-server clears the memory after
      setting a new video mode though, triggering a segfault in the overflow
      case, so qemu crashes before the guest has a chance to do something
      evil.
      
      Fix that by switching to dynamic allocation for the buffer.
      
      CVE-2014-3615
      
      Cc: qemu-stable@nongnu.org
      Cc: secalert@redhat.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Reviewed-by: NLaszlo Ersek <lersek@redhat.com>
      ab9509cc
  22. 20 6月, 2014 1 次提交
  23. 13 6月, 2014 1 次提交
  24. 07 4月, 2014 1 次提交
  25. 10 3月, 2014 1 次提交