1. 07 May, 2017 1 commit
  2. 19 May, 2016 1 commit
  3. 22 Mar, 2016 1 commit
    • 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: 's avatarMarkus Armbruster <armbru@redhat.com>
      [Fix compilation without the spice devel packages. - Paolo]
      Signed-off-by: 's avatarPaolo Bonzini <pbonzini@redhat.com>
      da34e65c
  4. 19 Feb, 2016 4 commits
  5. 04 Feb, 2016 1 commit
    • 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: 's avatarPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1454089805-5470-16-git-send-email-peter.maydell@linaro.org
      d38ea87a
  6. 27 Jul, 2015 1 commit
  7. 03 Jun, 2015 1 commit
  8. 11 Mar, 2015 1 commit
  9. 07 Jan, 2015 1 commit
  10. 02 Sep, 2014 2 commits
  11. 20 Dec, 2013 2 commits
  12. 10 Dec, 2013 1 commit
  13. 19 Jul, 2013 1 commit
    • 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: 's avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: 's avatarPeter Crosthwaite <peter.crosthwaite@xilinx.com>
      Message-id: 1373977512-28932-2-git-send-email-peter.maydell@linaro.org
      97c38f8c
  14. 09 Jul, 2013 2 commits
  15. 11 Jun, 2013 1 commit
  16. 19 Dec, 2012 2 commits
  17. 05 Oct, 2012 2 commits
  18. 20 Jul, 2012 1 commit
  19. 23 Jun, 2012 10 commits
  20. 26 Oct, 2011 1 commit
  21. 06 Oct, 2011 3 commits
    • 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: 's 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: 's 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: 's avatarAlexander Graf <agraf@suse.de>
      80ad7816