1. 27 9月, 2018 1 次提交
    • G
      display/stdvga: add edid support. · d46b40fc
      Gerd Hoffmann 提交于
      This patch adds edid support to the qemu stdvga.  It is turned off by
      default and can be enabled with the new edid property.  The patch also
      adds xres and yres properties to specify the video mode you want the
      guest use.  Works only with edid enabled and updated guest driver.
      
      The mmio bar of the stdvga has some unused address space at the start.
      It was reserved just in case it'll be needed for virtio, but it turned
      out to not be needed for that.  So let's use that region to place the
      EDID data block there.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Message-id: 20180925075646.25114-6-kraxel@redhat.com
      d46b40fc
  2. 03 7月, 2018 1 次提交
    • G
      vga: disable global_vmstate for 3.0+ machine types · 1fcfdc43
      Gerd Hoffmann 提交于
      Move global_vmstate from vga_common_init() parameter to VGACommonState
      field.  Set global_vmstate to true for isa vga devices, so nothing
      changes here.  virtio-vga and secondary-vga already set global_vmstate
      to false so no change here either.  All other pci vga devices get a new
      global-vmstate property, defaulting to false.  A compat property flips
      it to true for older machine types.
      
      With this in place you don't get a vmstate section naming conflict any
      more when adding multiple pci vga devices to your vm.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Message-Id: <20180702163345.17892-1-kraxel@redhat.com>
      1fcfdc43
  3. 26 6月, 2018 1 次提交
  4. 24 5月, 2018 2 次提交
  5. 14 3月, 2018 1 次提交
  6. 18 12月, 2017 1 次提交
  7. 15 10月, 2017 1 次提交
  8. 29 1月, 2016 1 次提交
  9. 12 6月, 2015 1 次提交
  10. 10 6月, 2015 3 次提交
  11. 19 5月, 2015 1 次提交
  12. 09 3月, 2015 1 次提交
    • D
      vga: Expose framebuffer byteorder as a QOM property · 3c2784fc
      David Gibson 提交于
      The VGA device model now supports having the framebuffer in either endian,
      and can be switched between these by the guest via a register in the qext
      region.
      
      However, in some cases (e.g. LE OS on the pseries machine) we have
      existing guest that don't know about the endian switch register, but other
      parts of the qemu code have better information to set a default endianness
      than the VGA code does of itself.
      
      In order to allow them to set a correct default endianness in these cases,
      without breaking abstraction walls, this patch exposes the VGA framebuffer
      endianness via a writable QOM property.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Reviewed-by: NGerd Hoffmann <kraxel@redhat.com>
      [agraf: use instance_init for property exposure]
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      3c2784fc
  13. 26 2月, 2015 1 次提交
  14. 16 12月, 2014 1 次提交
  15. 15 10月, 2014 1 次提交
  16. 16 6月, 2014 1 次提交
  17. 28 4月, 2014 2 次提交
  18. 05 3月, 2014 1 次提交
  19. 10 2月, 2014 1 次提交
  20. 29 7月, 2013 1 次提交
  21. 04 7月, 2013 4 次提交
  22. 26 4月, 2013 1 次提交
  23. 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
  24. 09 4月, 2013 2 次提交
  25. 18 3月, 2013 1 次提交
  26. 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
  27. 11 1月, 2013 1 次提交
    • A
      Make all static TypeInfos const · 8c43a6f0
      Andreas Färber 提交于
      Since 39bffca2 (qdev: register all
      types natively through QEMU Object Model), TypeInfo as used in
      the common, non-iterative pattern is no longer amended with information
      and should therefore be const.
      
      Fix the documented QOM examples:
      
       sed -i 's/static TypeInfo/static const TypeInfo/g' include/qom/object.h
      
      Since frequently the wrong examples are being copied by contributors of
      new devices, fix all types in the tree:
      
       sed -i 's/^static TypeInfo/static const TypeInfo/g' */*.c
       sed -i 's/^static TypeInfo/static const TypeInfo/g' */*/*.c
      
      This also avoids to piggy-back these changes onto real functional
      changes or other refactorings.
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      8c43a6f0
  28. 19 12月, 2012 2 次提交
  29. 17 12月, 2012 1 次提交
  30. 16 11月, 2012 1 次提交