Skip to content
Snippets Groups Projects
  1. Jun 01, 2023
  2. Jul 12, 2021
  3. Dec 19, 2020
    • Eric Blake's avatar
      qapi: Use QAPI_LIST_PREPEND() where possible · 54aa3de7
      Eric Blake authored
      
      Anywhere we create a list of just one item or by prepending items
      (typically because order doesn't matter), we can use
      QAPI_LIST_PREPEND().  But places where we must keep the list in order
      by appending remain open-coded until later patches.
      
      Note that as a side effect, this also performs a cleanup of two minor
      issues in qga/commands-posix.c: the old code was performing
       new = g_malloc0(sizeof(*ret));
      which 1) is confusing because you have to verify whether 'new' and
      'ret' are variables with the same type, and 2) would conflict with C++
      compilation (not an actual problem for this file, but makes
      copy-and-paste harder).
      
      Signed-off-by: default avatarEric Blake <eblake@redhat.com>
      Message-Id: <20201113011340.463563-5-eblake@redhat.com>
      Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Acked-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      [Straightforward conflicts due to commit a8aa94b5 "qga: update
      schema for guest-get-disks 'dependents' field" and commit a10b453a
      "target/mips: Move mips_cpu_add_definition() from helper.c to cpu.c"
      resolved.  Commit message tweaked.]
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      54aa3de7
  4. Aug 16, 2019
    • Markus Armbruster's avatar
      trace: Do not include qom/cpu.h into generated trace.h · 13d4ff07
      Markus Armbruster authored
      
      docs/devel/tracing.txt explains "since many source files include
      trace.h, [the generated trace.h use] a minimum of types and other
      header files included to keep the namespace clean and compile times
      and dependencies down."
      
      Commit 48151859 "trace: Add per-vCPU tracing states for events with
      the 'vcpu' property" made them all include qom/cpu.h via
      control-internal.h.  qom/cpu.h in turn includes about thirty headers.
      Ouch.
      
      Per-vCPU tracing is currently not supported in sub-directories'
      trace-events.  In other words, qom/cpu.h can only be used in
      trace-root.h, not in any trace.h.
      
      Split trace/control-vcpu.h off trace/control.h and
      trace/control-internal.h.  Have the generated trace.h include
      trace/control.h (which no longer includes qom/cpu.h), and trace-root.h
      include trace/control-vcpu.h (which includes it).
      
      The resulting improvement is a bit disappointing: in my "build
      everything" tree, some 1100 out of 6600 objects (not counting tests
      and objects that don't depend on qemu/osdep.h) depend on a trace.h,
      and about 600 of them no longer depend on qom/cpu.h.  But more than
      1300 others depend on trace-root.h.  More work is clearly needed.
      Left for another day.
      
      Cc: Stefan Hajnoczi <stefanha@redhat.com>
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
      Tested-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
      Message-Id: <20190812052359.30071-8-armbru@redhat.com>
      13d4ff07
  5. Jun 01, 2018
  6. Mar 02, 2018
  7. Feb 09, 2018
  8. Oct 12, 2016
  9. Jul 18, 2016
  10. Mar 22, 2016
  11. 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
  12. Sep 26, 2014
Loading