Skip to content
Snippets Groups Projects
  1. May 07, 2017
  2. May 19, 2016
  3. Mar 22, 2016
    • Markus Armbruster's avatar
      include/qemu/osdep.h: Don't include qapi/error.h · da34e65c
      Markus Armbruster authored
      
      Commit 57cb38b3 included qapi/error.h into qemu/osdep.h to get the
      Error typedef.  Since then, we've moved to include qemu/osdep.h
      everywhere.  Its file comment explains: "To avoid getting into
      possible circular include dependencies, this file should not include
      any other QEMU headers, with the exceptions of config-host.h,
      compiler.h, os-posix.h and os-win32.h, all of which are doing a
      similar job to this file and are under similar constraints."
      qapi/error.h doesn't do a similar job, and it doesn't adhere to
      similar constraints: it includes qapi-types.h.  That's in excess of
      100KiB of crap most .c files don't actually need.
      
      Add the typedef to qemu/typedefs.h, and include that instead of
      qapi/error.h.  Include qapi/error.h in .c files that need it and don't
      get it now.  Include qapi-types.h in qom/object.h for uint16List.
      
      Update scripts/clean-includes accordingly.  Update it further to match
      reality: replace config.h by config-target.h, add sysemu/os-posix.h,
      sysemu/os-win32.h.  Update the list of includes in the qemu/osdep.h
      comment quoted above similarly.
      
      This reduces the number of objects depending on qapi/error.h from "all
      of them" to less than a third.  Unfortunately, the number depending on
      qapi-types.h shrinks only a little.  More work is needed for that one.
      
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      [Fix compilation without the spice devel packages. - Paolo]
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      da34e65c
  4. Feb 19, 2016
  5. Feb 04, 2016
    • Peter Maydell's avatar
      all: Clean up includes · d38ea87a
      Peter Maydell authored
      
      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: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1454089805-5470-16-git-send-email-peter.maydell@linaro.org
      d38ea87a
  6. Jul 27, 2015
  7. Jun 03, 2015
  8. Mar 11, 2015
  9. Jan 07, 2015
  10. Sep 02, 2014
  11. Dec 20, 2013
  12. Dec 10, 2013
  13. Jul 19, 2013
    • Peter Maydell's avatar
      device_tree: Add qemu_devtree_setprop_sized_cells() utility functions · 97c38f8c
      Peter Maydell authored
      
      We already have a qemu_devtree_setprop_cells() which sets a dtb
      property to an array of cells whose values are specified by varargs.
      However for the fairly common case of setting a property to a list
      of addresses or of address,size pairs the number of cells used by
      each element in the list depends on the parent's #address-cells
      and #size-cells properties. To make this easier we provide an analogous
      qemu_devtree_setprop_sized_cells() macro which allows the number
      of cells used by each element to be specified. This is implemented
      using an underlying qemu_devtree_setprop_sized_cells_from_array()
      function which takes the values and sizes as an array; this may
      also be directly useful for cases where the cell contents are
      constructed programmatically.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarPeter Crosthwaite <peter.crosthwaite@xilinx.com>
      Message-id: 1373977512-28932-2-git-send-email-peter.maydell@linaro.org
      97c38f8c
  14. Jul 09, 2013
  15. Jun 11, 2013
  16. Dec 19, 2012
  17. Oct 05, 2012
  18. Jul 20, 2012
  19. Jun 23, 2012
  20. Oct 26, 2011
  21. Oct 06, 2011
    • Alexander Graf's avatar
      device tree: give dt more size · ded57c5f
      Alexander Graf authored
      
      We currently load a device tree blob and then just take its size x2 to
      account for modifications we do inside. While this is nice and great,
      it fails when we have a small device tree as blob and lots of nodes added
      in machine init code.
      
      So for now, just make it 20k bigger than it was before. We maybe want to
      be more clever about this later.
      
      Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
      ded57c5f
    • Alexander Graf's avatar
      device tree: dont fail operations · ccbcfedd
      Alexander Graf authored
      
      When we screw up and issue an FDT command that doesn't work, we really need to
      know immediately and usually can't continue to create the machine. To make sure
      we don't need to add error checking in all device tree modification code users,
      we can just add the fail checks to the qemu abstract functions.
      
      Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
      ccbcfedd
    • Alexander Graf's avatar
      device tree: add add_subnode command · 80ad7816
      Alexander Graf authored
      
      We want to be able to create subnodes in our device tree, so export it through
      the qemu device tree abstraction framework.
      
      Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
      80ad7816
Loading