1. 07 11月, 2013 35 次提交
  2. 06 11月, 2013 5 次提交
    • J
      rtc: remove dead SQW IRQ code · c2d30667
      Jan Kiszka 提交于
      This was once introduced by commit 100d9891 but was never used in-tree
      and then got broken by commit 32e0c826. Time to clean up.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Message-id: 520B6A27.4040207@siemens.com
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      c2d30667
    • M
      vga: fix invalid read after free · 2c8ebac7
      Marc-André Lureau 提交于
      After calling dpy_gfx_replace_surface(s->con, surface), the outer
      surface is invalid.
      
      ==5370== Invalid read of size 4
      ==5370==    at 0x460229: surface_bits_per_pixel (console.h:250)
      ==5370==    by 0x466A81: get_depth_index (vga.c:1173)
      ==5370==    by 0x467EC2: vga_draw_graphic (vga.c:1718)
      ==5370==    by 0x4687A5: vga_update_display (vga.c:1914)
      ==5370==    by 0x2A782E: qxl_hw_update (qxl.c:1766)
      ==5370==    by 0x3EB83B: graphic_hw_update (console.c:254)
      ==5370==    by 0x3FBE31: qemu_spice_display_refresh (spice-display.c:418)
      ==5370==    by 0x2A7D01: display_refresh (qxl.c:1886)
      ==5370==    by 0x3EEE1C: dpy_refresh (console.c:1436)
      ==5370==    by 0x3EB543: gui_update (console.c:192)
      ==5370==    by 0x3C43B3: timerlist_run_timers (qemu-timer.c:488)
      ==5370==    by 0x3C4416: qemu_clock_run_timers (qemu-timer.c:499)
      ==5370==  Address 0x22ffb1e0 is 0 bytes inside a block of size 56 free'd
      ==5370==    at 0x4A074C4: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==5370==    by 0x4245FC: free_and_trace (vl.c:2771)
      ==5370==    by 0x50899AE: g_free (gmem.c:252)
      ==5370==    by 0x3EE8D3: qemu_free_displaysurface (console.c:1332)
      ==5370==    by 0x3EEDB7: dpy_gfx_replace_surface (console.c:1427)
      ==5370==    by 0x467EB6: vga_draw_graphic (vga.c:1714)
      ==5370==    by 0x4687A5: vga_update_display (vga.c:1914)
      ==5370==    by 0x2A782E: qxl_hw_update (qxl.c:1766)
      ==5370==    by 0x3EB83B: graphic_hw_update (console.c:254)
      ==5370==    by 0x3FBE31: qemu_spice_display_refresh (spice-display.c:418)
      ==5370==    by 0x2A7D01: display_refresh (qxl.c:1886)
      ==5370==    by 0x3EEE1C: dpy_refresh (console.c:1436)
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@gmail.com>
      Reviewed-by: NGerd Hoffmann <kraxel@redhat.com>
      Message-id: 1383664554-15248-1-git-send-email-marcandre.lureau@gmail.com
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      2c8ebac7
    • S
      tests: fix 64-bit int literals for 32-bit hosts · 5cb6be2c
      Stefan Hajnoczi 提交于
      On 32-bit hosts:
      
        CC    tests/test-opts-visitor.o
      tests/test-opts-visitor.c: In function 'test_value':
      tests/test-opts-visitor.c:128: warning: integer constant is too large for 'long' type
        CC    tests/test-bitops.o
      tests/test-bitops.c:34: warning: integer constant is too large for 'long' type
      tests/test-bitops.c:35: warning: integer constant is too large for 'long' type
      tests/test-bitops.c:35: warning: integer constant is too large for 'long' type
        CC    tests/endianness-test.o
      tests/endianness-test.c:47: warning: integer constant is too large for 'long' type
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-id: 1383669768-23926-1-git-send-email-stefanha@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      5cb6be2c
    • P
      docs/memory.txt: Clarify and expand priority/overlap documentation · 6f1ce94a
      Peter Maydell 提交于
      The documentation of how overlapping memory regions behave and how
      the priority system works was rather brief, and confusion about
      priorities seems to be quite common for developers trying to understand
      how the memory region system works, so expand and clarify it.
      This includes a worked example with overlaps, documentation of the
      behaviour when an overlapped container has "holes", and mention
      that it's valid for a region to have both MMIO callbacks and
      subregions (and how this interacts with priorities when it does).
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Message-id: 1381848154-31602-1-git-send-email-peter.maydell@linaro.org
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      6f1ce94a
    • M
      configure: detect endian via compile test · 61cc919f
      Mike Frysinger 提交于
      This avoids needing to execute a program and keeping an (incomplete)
      list when cross-compiling.
      Signed-off-by: NMike Frysinger <vapier@gentoo.org>
      Reviewed-by: NRichard Henderson <rth@twiddle.net>
      Tested-by: James Hogan <james.hogan@imgtec.com> [mips]
      Message-id: 1372649418-4987-1-git-send-email-vapier@gentoo.org
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      61cc919f