1. 29 1月, 2016 1 次提交
  2. 07 9月, 2015 1 次提交
    • M
      arm: Use g_new() & friends where that makes obvious sense · b45c03f5
      Markus Armbruster 提交于
      g_new(T, n) is neater than g_malloc(sizeof(T) * n).  It's also safer,
      for two reasons.  One, it catches multiplication overflowing size_t.
      Two, it returns T * rather than void *, which lets the compiler catch
      more type errors.
      
      This commit only touches allocations with size arguments of the form
      sizeof(T).
      
      Coccinelle semantic patch:
      
          @@
          type T;
          @@
          -g_malloc(sizeof(T))
          +g_new(T, 1)
          @@
          type T;
          @@
          -g_try_malloc(sizeof(T))
          +g_try_new(T, 1)
          @@
          type T;
          @@
          -g_malloc0(sizeof(T))
          +g_new0(T, 1)
          @@
          type T;
          @@
          -g_try_malloc0(sizeof(T))
          +g_try_new0(T, 1)
          @@
          type T;
          expression n;
          @@
          -g_malloc(sizeof(T) * (n))
          +g_new(T, n)
          @@
          type T;
          expression n;
          @@
          -g_try_malloc(sizeof(T) * (n))
          +g_try_new(T, n)
          @@
          type T;
          expression n;
          @@
          -g_malloc0(sizeof(T) * (n))
          +g_new0(T, n)
          @@
          type T;
          expression n;
          @@
          -g_try_malloc0(sizeof(T) * (n))
          +g_try_new0(T, n)
          @@
          type T;
          expression p, n;
          @@
          -g_realloc(p, sizeof(T) * (n))
          +g_renew(T, p, n)
          @@
          type T;
          expression p, n;
          @@
          -g_try_realloc(p, sizeof(T) * (n))
          +g_try_renew(T, p, n)
          @@
          type T;
          expression n;
          @@
          -(T *)g_new(T, n)
          +g_new(T, n)
          @@
          type T;
          expression n;
          @@
          -(T *)g_new0(T, n)
          +g_new0(T, n)
          @@
          type T;
          expression p, n;
          @@
          -(T *)g_renew(T, p, n)
          +g_renew(T, p, n)
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-id: 1440524394-15640-1-git-send-email-armbru@redhat.com
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      b45c03f5
  3. 24 7月, 2015 1 次提交
    • P
      framebuffer: set DIRTY_MEMORY_VGA on RAM that is used for the framebuffer · c1076c3e
      Paolo Bonzini 提交于
      The MemoryRegionSection contains enough information to access the
      RAM region underlying the framebuffer, and can be cached inside the
      display device.
      
      By doing this, the new framebuffer_update_memory_section function can
      enable dirty memory logging on the relevant RAM region.  The function
      must be called whenever the stride or base of the framebuffer changes;
      a simple way to cover these cases is to call it on every full frame
      invalidation, which is a rare case.
      
      framebuffer_update_display now works entirely on a MemoryRegionSection,
      without going through cpu_physical_memory_map/unmap.
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      c1076c3e
  4. 05 3月, 2014 1 次提交
  5. 04 7月, 2013 1 次提交
  6. 26 4月, 2013 1 次提交
  7. 16 4月, 2013 2 次提交
    • G
      console: add GraphicHwOps · 380cd056
      Gerd Hoffmann 提交于
      Pass a single GraphicHwOps struct pointer to graphic_console_init,
      instead of a bunch of function pointers.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      380cd056
    • G
      console: simplify screendump · 2c62f08d
      Gerd Hoffmann 提交于
      Screendumps are alot simpler as we can update non-active
      QemuConsoles now.  So we only need to update the QemuConsole
      we want write out, then dump the DisplaySurface content into
      a ppm file.  Done.
      
      No console switching needed.  No special support code in the
      gfx card emulation needed.  Zap it all.  Also move ppm_save
      out of the vga code and next to the qmp_screendump function.
      
      For now screen dumping is limited to console #0 (like it used
      to be), even though it is dead simple to extend it to other
      consoles.  I wanna finish the console cleanup before setting
      new qapi interfaces into stone.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Tested-by: NIgor Mitsyanko <i.mitsyanko@gmail.com>
      2c62f08d
  8. 09 4月, 2013 3 次提交
  9. 18 3月, 2013 1 次提交
  10. 01 3月, 2013 1 次提交
    • P
      hw: include hw header files with full paths · 83c9f4ca
      Paolo Bonzini 提交于
      Done with this script:
      
      cd hw
      for i in `find . -name '*.h' | sed 's/^..//'`; do
        echo '\,^#.*include.*["<]'$i'[">], s,'$i',hw/&,'
      done | sed -i -f - `find . -type f`
      
      This is so that paths remain valid as files are moved.
      
      Instead, files in hw/dataplane are referenced with the relative path.
      We know they are not going to move to include/, and they are the only
      include files that are in subdirectories _and_ move.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      83c9f4ca
  11. 19 12月, 2012 1 次提交
  12. 01 11月, 2012 1 次提交
    • G
      console: untangle gfx & txt updates · a93a4a22
      Gerd Hoffmann 提交于
      Stop abusing displaysurface fields for text mode displays.
      (bpp = 0, width = cols, height = lines).
      
      Add flags to displaystate indicating whenever text mode display
      (curses) or gfx mode displays (sdl, vnc, ...) are present.
      
      Add separate displaychangelistener callbacks for text / gfx mode
      resize & updates.
      
      This allows to enable gfx and txt diplays at the same time and also
      paves the way for more cleanups in the future.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      a93a4a22
  13. 23 10月, 2012 1 次提交
    • A
      Rename target_phys_addr_t to hwaddr · a8170e5e
      Avi Kivity 提交于
      target_phys_addr_t is unwieldly, violates the C standard (_t suffixes are
      reserved) and its purpose doesn't match the name (most target_phys_addr_t
      addresses are not target specific).  Replace it with a finger-friendly,
      standards conformant hwaddr.
      
      Outstanding patchsets can be fixed up with the command
      
        git rebase -i --exec 'find -name "*.[ch]"
                              | xargs s/target_phys_addr_t/hwaddr/g' origin
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      a8170e5e
  14. 06 9月, 2012 3 次提交
  15. 24 3月, 2012 1 次提交
  16. 25 2月, 2012 1 次提交
  17. 20 12月, 2011 1 次提交
  18. 28 11月, 2011 1 次提交
  19. 21 9月, 2011 1 次提交
  20. 21 8月, 2011 1 次提交
  21. 11 12月, 2010 1 次提交
    • A
      Add endianness as io mem parameter · 2507c12a
      Alexander Graf 提交于
      As stated before, devices can be little, big or native endian. The
      target endianness is not of their concern, so we need to push things
      down a level.
      
      This patch adds a parameter to cpu_register_io_memory that allows a
      device to choose its endianness. For now, all devices simply choose
      native endian, because that's the same behavior as before.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      2507c12a
  22. 02 10月, 2009 2 次提交
  23. 22 9月, 2009 1 次提交
  24. 26 8月, 2009 1 次提交
  25. 17 7月, 2009 1 次提交
  26. 17 6月, 2009 1 次提交
  27. 01 4月, 2009 1 次提交
  28. 17 1月, 2009 1 次提交
    • A
      graphical_console_init change (Stefano Stabellini) · 3023f332
      aliguori 提交于
      Patch 5/7
      
      This patch changes the graphical_console_init function to return an
      allocated DisplayState instead of a QEMUConsole.
      
      This patch contains just the graphical_console_init change and few other
      modifications mainly in console.c and vl.c.
      It was necessary to move the display frontends (e.g. sdl and vnc)
      initialization after machine->init in vl.c.
      
      This patch does *not* include any required changes to any device, these
      changes come with the following patches.
      
      Patch 6/7
      
      This patch changes the QEMUMachine init functions not to take a
      DisplayState as an argument because is not needed any more;
      
      In few places the graphic hardware initialization function was called
      only if DisplayState was not NULL, now they are always called.
      Apart from these cases, the rest are all mechanical substitutions.
      
      Patch 7/7
      
      This patch updates the graphic device code to use the new
      graphical_console_init function.
      
      As for the previous patch, in few places graphical_console_init was called
      only if DisplayState was not NULL, now it is always called.
      Apart from these cases, the rest are all mechanical substitutions.
      Signed-off-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6344 c046a42c-6fe2-441c-8c8c-71466251a162
      3023f332
  29. 05 1月, 2009 1 次提交
  30. 02 12月, 2008 1 次提交
  31. 25 11月, 2008 1 次提交
  32. 02 7月, 2008 1 次提交
  33. 11 2月, 2008 1 次提交
  34. 18 11月, 2007 1 次提交