1. 07 3月, 2018 1 次提交
  2. 03 3月, 2018 1 次提交
    • M
      qapi: Empty out qapi-schema.json · 112ed241
      Markus Armbruster 提交于
      The previous commit improved compile time by including less of the
      generated QAPI headers.  This is impossible for stuff defined directly
      in qapi-schema.json, because that ends up in headers that that pull in
      everything.
      
      Move everything but include directives from qapi-schema.json to new
      sub-module qapi/misc.json, then include just the "misc" shard where
      possible.
      
      It's possible everywhere, except:
      
      * monitor.c needs qmp-command.h to get qmp_init_marshal()
      
      * monitor.c, ui/vnc.c and the generated qapi-event-FOO.c need
        qapi-event.h to get enum QAPIEvent
      
      Perhaps we'll get rid of those some other day.
      
      Adding a type to qapi/migration.json now recompiles some 120 instead
      of 2300 out of 5100 objects.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20180211093607.27351-25-armbru@redhat.com>
      [eblake: rebase to master]
      Signed-off-by: NEric Blake <eblake@redhat.com>
      112ed241
  3. 31 1月, 2018 1 次提交
  4. 19 5月, 2017 2 次提交
  5. 25 1月, 2017 1 次提交
    • M
      nios2: Add support for Nios-II R1 · e671711c
      Marek Vasut 提交于
      Add remaining bits of the Altera NiosII R1 support into qemu, which
      is documentation, MAINTAINERS file entry, configure bits, arch_init
      and configuration files for both linux-user (userland binaries) and
      softmmu (hardware emulation).
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chris Wulff <crwulff@gmail.com>
      Cc: Jeff Da Silva <jdasilva@altera.com>
      Cc: Ley Foon Tan <lftan@altera.com>
      Cc: Sandra Loosemore <sandra@codesourcery.com>
      Cc: Yves Vandervennet <yvanderv@altera.com>
      Reviewed-by: NAlexander Graf <agraf@suse.de>
      Message-Id: <20170118220146.489-8-marex@denx.de>
      Signed-off-by: NRichard Henderson <rth@twiddle.net>
      e671711c
  6. 24 1月, 2017 1 次提交
  7. 17 1月, 2017 2 次提交
  8. 23 9月, 2016 1 次提交
    • F
      util: Add UUID API · cea25275
      Fam Zheng 提交于
      A number of different places across the code base use CONFIG_UUID. Some
      of them are soft dependency, some are not built if libuuid is not
      available, some come with dummy fallback, some throws runtime error.
      
      It is hard to maintain, and hard to reason for users.
      
      Since UUID is a simple standard with only a small number of operations,
      it is cleaner to have a central support in libqemuutil. This patch adds
      qemu_uuid_* functions that all uuid users in the code base can
      rely on. Except for qemu_uuid_generate which is new code, all other
      functions are just copy from existing fallbacks from other files.
      
      Note that qemu_uuid_parse is moved without updating the function
      signature to use QemuUUID, to keep this patch simple.
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NJeff Cody <jcody@redhat.com>
      Message-Id: <1474432046-325-2-git-send-email-famz@redhat.com>
      cea25275
  9. 24 5月, 2016 1 次提交
  10. 19 5月, 2016 1 次提交
  11. 23 3月, 2016 1 次提交
  12. 05 2月, 2016 1 次提交
    • P
      all: Clean up includes · d38ea87a
      Peter Maydell 提交于
      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: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1454089805-5470-16-git-send-email-peter.maydell@linaro.org
      d38ea87a
  13. 13 1月, 2016 1 次提交
    • M
      error: Use error_reportf_err() where it makes obvious sense · c29b77f9
      Markus Armbruster 提交于
      Done with this Coccinelle semantic patch
      
          @@
          expression FMT, E, S;
          expression list ARGS;
          @@
          -    error_report(FMT, ARGS, error_get_pretty(E));
          +    error_reportf_err(E, FMT/*@@@*/, ARGS);
          (
          -    error_free(E);
          |
      	 exit(S);
          |
      	 abort();
          )
      
      followed by a replace of '%s"/*@@@*/' by '"' and some line rewrapping,
      because I can't figure out how to make Coccinelle transform strings.
      
      We now use the error whole instead of just its message obtained with
      error_get_pretty().  This avoids suppressing its hint (see commit
      50b7b000), but I can't see how the errors touched in this commit could
      come with hints.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <1450452927-8346-12-git-send-email-armbru@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      c29b77f9
  14. 13 8月, 2015 1 次提交
  15. 12 6月, 2015 2 次提交
  16. 05 6月, 2015 1 次提交
  17. 03 6月, 2015 1 次提交
  18. 08 5月, 2015 5 次提交
  19. 06 5月, 2015 5 次提交
  20. 26 3月, 2015 1 次提交
  21. 17 3月, 2015 1 次提交
  22. 16 3月, 2015 6 次提交
  23. 18 2月, 2015 1 次提交
  24. 17 2月, 2015 1 次提交
    • M
      Convert ram_list to RCU · 0dc3f44a
      Mike Day 提交于
      Allow "unlocked" reads of the ram_list by using an RCU-enabled QLIST.
      
      The ramlist mutex is kept.  call_rcu callbacks are run with the iothread
      lock taken, but that may change in the future.  Writers still take the
      ramlist mutex, but they no longer need to assume that the iothread lock
      is taken.
      
      Readers of the list, instead, no longer require either the iothread
      or ramlist mutex, but they need to use rcu_read_lock() and
      rcu_read_unlock().
      
      One place in arch_init.c was downgrading from write side to read side
      like this:
      
          qemu_mutex_lock_iothread()
          qemu_mutex_lock_ramlist()
          ...
          qemu_mutex_unlock_iothread()
          ...
          qemu_mutex_unlock_ramlist()
      
      and the equivalent idiom is:
      
          qemu_mutex_lock_ramlist()
          rcu_read_lock()
          ...
          qemu_mutex_unlock_ramlist()
          ...
          rcu_read_unlock()
      Reviewed-by: NFam Zheng <famz@redhat.com>
      Signed-off-by: NMike Day <ncmike@ncultra.org>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      0dc3f44a