Skip to content
Snippets Groups Projects
  1. Oct 06, 2023
  2. Jun 20, 2023
  3. Jun 01, 2023
  4. May 11, 2023
  5. Feb 27, 2023
  6. Feb 04, 2023
  7. Oct 04, 2022
  8. Mar 22, 2022
  9. Feb 09, 2022
  10. Jan 27, 2022
  11. Oct 14, 2021
  12. Oct 05, 2021
  13. Sep 13, 2021
  14. Jul 21, 2021
  15. Jul 12, 2021
  16. Mar 06, 2021
    • Paolo Bonzini's avatar
      trace: fix "-trace file=..." · 9f45a641
      Paolo Bonzini authored
      
      Because trace_opt_parse always deletes the options it has parsed,
      trace_init_file's call to qemu_find_opts_singleton always
      creates an empty -trace option group.  Therefore, the subsequent
      qemu_opt_get(opts, "file") always returns NULL.
      
      To fix this, save the last "-trace file=..." option in a global
      variable and use it later in trace_init_file.
      
      This is similar to what was done before commit 92eecfff ("trace:
      remove argument from trace_init_file", 2020-11-11), except contained
      within trace/control.c and without memory leaks.
      
      Fixes: 92eecfff ("trace: remove argument from trace_init_file", 2020-11-11)
      Cc: stefanha@redhat.com
      Reported-by: default avatar <armbru@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Message-Id: <20210209145759.141231-2-pbonzini@redhat.com>
      9f45a641
  17. Feb 01, 2021
  18. Jan 04, 2021
  19. Jan 02, 2021
  20. 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
  21. Nov 19, 2020
  22. Nov 11, 2020
  23. Oct 26, 2020
    • Josh DuBois's avatar
      trace/simple: Enable tracing on startup only if the user specifies a trace option · 648b4823
      Josh DuBois authored
      
      Tracing can be enabled at the command line or via the
      monitor. Command-line trace options are recorded during
      trace_opt_parse(), but tracing is not enabled until the various
      front-ends later call trace_init_file(). If the user passes a trace
      option on the command-line, remember that and enable tracing during
      trace_init_file().  Otherwise, trace_init_file() should record the
      trace file specified by the frontend and avoid enabling traces
      until the user requests them via the monitor.
      
      This fixes 1b7157be and also
      db25d56c, by allowing the user
      to enable traces on the command line and also avoiding
      unwanted trace-<pid> files when the user has not asked for them.
      
      Fixes: 1b7157be
      Signed-off-by: default avatarJosh DuBois <josh@joshdubois.com>
      Message-id: 20200816174610.20253-1-josh@joshdubois.com
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      648b4823
  24. Oct 09, 2020
  25. Sep 30, 2020
  26. Sep 01, 2020
  27. Aug 27, 2020
  28. Aug 21, 2020
Loading