1. 16 2月, 2018 4 次提交
    • A
      sdl: restore optimized redraw · 2ab858c6
      Anatoly Trosinenko 提交于
      The documentation on SDL_RenderPresent function states that
      "the backbuffer should be considered invalidated after each present",
      so copy the entire texture on each redraw.
      
      On the other hand, SDL_UpdateTexture function is described as
      "fairly slow function", so restrict it to just the changed pixels.
      
      Also added SDL_RenderClear call, as suggested in the documentation
      page on SDL_RenderPresent.
      Signed-off-by: NAnatoly Trosinenko <anatoly.trosinenko@gmail.com>
      Message-id: 20180205133228.25082-1-anatoly.trosinenko@gmail.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      2ab858c6
    • K
      vnc: fix segfault in closed connection handling · d49b87f0
      Klim Kireev 提交于
      On one of our client's node, due to trying to read from closed ioc,
      a segmentation fault occured. Corresponding backtrace:
      
      0  object_get_class (obj=obj@entry=0x0)
      1  qio_channel_readv_full (ioc=0x0, iov=0x7ffe55277180 ...
      2  qio_channel_read (ioc=<optimized out> ...
      3  vnc_client_read_buf (vs=vs@entry=0x55625f3c6000, ...
      4  vnc_client_read_plain (vs=0x55625f3c6000)
      5  vnc_client_read (vs=0x55625f3c6000)
      6  vnc_client_io (ioc=<optimized out>, condition=G_IO_IN, ...
      7  g_main_dispatch (context=0x556251568a50)
      8  g_main_context_dispatch (context=context@entry=0x556251568a50)
      9  glib_pollfds_poll ()
      10 os_host_main_loop_wait (timeout=<optimized out>)
      11 main_loop_wait (nonblocking=nonblocking@entry=0)
      12 main_loop () at vl.c:1909
      13 main (argc=<optimized out>, argv=<optimized out>, ...
      
      Having analyzed the coredump, I understood that the reason is that
      ioc_tag is reset on vnc_disconnect_start and ioc is cleaned
      in vnc_disconnect_finish. Between these two events due to some
      reasons the ioc_tag was set again and after vnc_disconnect_finish
      the handler is running with freed ioc,
      which led to the segmentation fault.
      
      The patch checks vs->disconnecting in places where we call
      qio_channel_add_watch and resets handler if disconnecting == TRUE
      to prevent such an occurrence.
      Signed-off-by: NKlim Kireev <klim.kireev@virtuozzo.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      Message-id: 20180207094844.21402-1-klim.kireev@virtuozzo.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      d49b87f0
    • G
      vnc: add qapi/error.h include to stubs · 577ce409
      Gerd Hoffmann 提交于
      Fixes --disable-vnc build failure.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-id: 20180213070526.22475-1-kraxel@redhat.com
      577ce409
    • D
      vnc: remove bogus object_unref on client socket · f42fdb24
      Daniel P. Berrangé 提交于
      vnc_listen_io() does not own the reference on the 'cioc' parameter is it
      passed, so should not be unref'ing it.
      
      Fixes: 13e1d0e7Reported-by: NBandan Das <bsd@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-id: 20180215102602.10864-1-berrange@redhat.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      f42fdb24
  2. 13 2月, 2018 1 次提交
  3. 12 2月, 2018 3 次提交
    • P
      Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.12-20180212' into staging · 7d848450
      Peter Maydell 提交于
      ppc patch queue 2018-02-12
      
      Here's the accumulatead ppc and pseries related patches for the last
      while.  Highlights are:
          * A number of Macintosh / CUDA cleanups from Mark Cave-Ayland
          * An important bug fix (missing "break;") for
            H_GET_CPU_CHARACTERISTICS
          * Yet another fix for SMT mode handling
          * Assorted other cleanups and fixes
      
      # gpg: Signature made Mon 12 Feb 2018 03:39:30 GMT
      # gpg:                using RSA key 6C38CACA20D9B392
      # gpg: Good signature from "David Gibson <david@gibson.dropbear.id.au>"
      # gpg:                 aka "David Gibson (Red Hat) <dgibson@redhat.com>"
      # gpg:                 aka "David Gibson (ozlabs.org) <dgibson@ozlabs.org>"
      # gpg:                 aka "David Gibson (kernel.org) <dwg@kernel.org>"
      # Primary key fingerprint: 75F4 6586 AE61 A66C C44E  87DC 6C38 CACA 20D9 B392
      
      * remotes/dgibson/tags/ppc-for-2.12-20180212:
        misc: introduce new mos6522 VIA device and enable it for ppc builds
        cuda: factor out timebase-derived counter value and load time
        cuda: set timer 1 frequency property to CUDA_TIMER_FREQ
        cuda: don't call cuda_update() when writing to ACR register
        cuda: minor cosmetic tidy-ups to get_next_irq_time()
        cuda: rename frequency property to tb_frequency
        cuda: introduce CUDAState parameter to get_counter()
        spapr: set vsmt to MAX(8, smp_threads)
        cuda: don't allow writes to port output pins
        cuda: do not use old_mmio accesses
        hw/ppc: rename functions in comments
        spapr: add missing break in h_get_cpu_characteristics()
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      7d848450
    • P
      Merge remote-tracking branch 'remotes/mjt/tags/trivial-patches-fetch' into staging · 8e3fb802
      Peter Maydell 提交于
      trivial patches for 2018-02-10
      
      # gpg: Signature made Sat 10 Feb 2018 07:54:03 GMT
      # gpg:                using RSA key 701B4F6B1A693E59
      # gpg: Good signature from "Michael Tokarev <mjt@tls.msk.ru>"
      # gpg:                 aka "Michael Tokarev <mjt@corpit.ru>"
      # gpg:                 aka "Michael Tokarev <mjt@debian.org>"
      # Primary key fingerprint: 6EE1 95D1 886E 8FFB 810D  4324 457C E0A0 8044 65C5
      #      Subkey fingerprint: 7B73 BAD6 8BE7 A2C2 8931  4B22 701B 4F6B 1A69 3E59
      
      * remotes/mjt/tags/trivial-patches-fetch:
        tests/qapi: use ARRAY_SIZE macro
        tests/qapi: use QEMU_IS_ALIGNED macro
        tests/hbitmap: use ARRAY_SIZE macro
        async: use ARRAY_SIZE macro
        qga: use ARRAY_SIZE macro
        MAINTAINERS: Add qemu-binfmt-conf.sh script
        oslib-posix: check for posix_memalign in configure script
        maint: Mention web site maintenance in README
        build: fix typo in error message
        configure: Allow capstone=git only if git update is not disabled
        scripts/make-release: Don't archive .git files
        qemu-options.hx: Remove confusing spaces in parameter listings
        mailmap: set preferred spelling for Daniel Berrangé
        Drop unneeded system header includes
        machine: Polish -machine xxx,help
        scripts/argparse.py: spelling (independant)
        qapi-schema.json: spelling (independant comparation)
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      8e3fb802
    • P
      Merge remote-tracking branch 'remotes/ericb/tags/pull-nbd-2018-02-09' into staging · 019bb9ac
      Peter Maydell 提交于
      nbd patches for 2018-02-09
      
      - Vladimir Sementsov-Ogievskiy: iotests: 205: support luks format
      - Eric Blake: block: Simplify bdrv_can_write_zeroes_with_unmap()
      
      # gpg: Signature made Fri 09 Feb 2018 18:34:20 GMT
      # gpg:                using RSA key A7A16B4A2527436A
      # gpg: Good signature from "Eric Blake <eblake@redhat.com>"
      # gpg:                 aka "Eric Blake (Free Software Programmer) <ebb9@byu.net>"
      # gpg:                 aka "[jpeg image of size 6874]"
      # Primary key fingerprint: 71C2 CC22 B1C4 6029 27D2  F3AA A7A1 6B4A 2527 436A
      
      * remotes/ericb/tags/pull-nbd-2018-02-09:
        block: Simplify bdrv_can_write_zeroes_with_unmap()
        iotests: 205: support luks format
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      019bb9ac
  4. 11 2月, 2018 7 次提交
  5. 10 2月, 2018 25 次提交