Skip to content
Snippets Groups Projects
  1. Mar 23, 2018
    • Peter Xu's avatar
      Revert "monitor: enable IO thread for (qmp & !mux) typed" · a4f90923
      Peter Xu authored
      
      This reverts commit 3fd2457d.
      
      Enabling OOB caused several iotests failures; due to the imminent
      2.12 release, the safest action is to disable OOB for now.  If
      other patches fix the issues that iotests exposed, it may be turned
      back on in time for the release, otherwise it will be 2.13 material;
      either way, the framework changes not reverted now do not hurt if
      they remain as part of the 2.12 release.
      
      Additionally, revert the tests in the patch 02130314 ("qmp: introduce
      QMPCapability", 2018-03-19), as both parts must be reverted at once
      to keep 'make check' passing.
      
      Signed-off-by: default avatarPeter Xu <peterx@redhat.com>
      Message-Id: <20180323140821.28957-2-peterx@redhat.com>
      Tested-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
      [eblake: reorder/squash commits, enhance commit message]
      Signed-off-by: default avatarEric Blake <eblake@redhat.com>
      a4f90923
  2. Mar 19, 2018
  3. Mar 13, 2018
  4. Mar 05, 2018
  5. Mar 02, 2018
  6. Feb 26, 2018
  7. Feb 16, 2018
  8. Feb 09, 2018
  9. Jan 16, 2018
    • Marc-André Lureau's avatar
      readline: add a free function · e5dc1a6c
      Marc-André Lureau authored
      
      Fixes leaks such as:
      
      Direct leak of 2 byte(s) in 1 object(s) allocated from:
          #0 0x7eff58beb850 in malloc (/lib64/libasan.so.4+0xde850)
          #1 0x7eff57942f0c in g_malloc ../glib/gmem.c:94
          #2 0x7eff579431cf in g_malloc_n ../glib/gmem.c:331
          #3 0x7eff5795f6eb in g_strdup ../glib/gstrfuncs.c:363
          #4 0x55db720f1d46 in readline_hist_add /home/elmarco/src/qq/util/readline.c:258
          #5 0x55db720f2d34 in readline_handle_byte /home/elmarco/src/qq/util/readline.c:387
          #6 0x55db71539d00 in monitor_read /home/elmarco/src/qq/monitor.c:3896
          #7 0x55db71f9be35 in qemu_chr_be_write_impl /home/elmarco/src/qq/chardev/char.c:167
          #8 0x55db71f9bed3 in qemu_chr_be_write /home/elmarco/src/qq/chardev/char.c:179
          #9 0x55db71fa013c in fd_chr_read /home/elmarco/src/qq/chardev/char-fd.c:66
          #10 0x55db71fe18a8 in qio_channel_fd_source_dispatch /home/elmarco/src/qq/io/channel-watch.c:84
          #11 0x7eff5793a90b in g_main_dispatch ../glib/gmain.c:3182
          #12 0x7eff5793b7ac in g_main_context_dispatch ../glib/gmain.c:3847
          #13 0x55db720af3bd in glib_pollfds_poll /home/elmarco/src/qq/util/main-loop.c:214
          #14 0x55db720af505 in os_host_main_loop_wait /home/elmarco/src/qq/util/main-loop.c:261
          #15 0x55db720af6d6 in main_loop_wait /home/elmarco/src/qq/util/main-loop.c:515
          #16 0x55db7184e0de in main_loop /home/elmarco/src/qq/vl.c:1995
          #17 0x55db7185e956 in main /home/elmarco/src/qq/vl.c:4914
          #18 0x7eff4ea17039 in __libc_start_main (/lib64/libc.so.6+0x21039)
      
      (while at it, use g_new0(ReadLineState), it's a bit easier to read)
      
      Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
      Reviewed-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Message-Id: <20180104160523.22995-11-marcandre.lureau@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      e5dc1a6c
  10. Dec 18, 2017
  11. Oct 30, 2017
    • Greg Kurz's avatar
      monitor: fix dangling CPU pointer · 751f8cfe
      Greg Kurz authored
      
      If a CPU selected with the "cpu" command is hot-unplugged then "info cpus"
      causes QEMU to exit:
      
      (qemu) device_del cpu1
      (qemu) info cpus
      qemu:qemu_cpu_kick_thread: No such process
      
      This happens because "cpu" stores the pointer to the selected CPU into
      the monitor structure. When the CPU is hot-unplugged, we end up with a
      dangling pointer. The "info cpus" command then does:
      
      hmp_info_cpus()
       monitor_get_cpu_index()
        mon_get_cpu()
         cpu_synchronize_state() <--- called with dangling pointer
      
      This could cause a QEMU crash as well.
      
      This patch switches the monitor to store the QOM path instead of a
      pointer to the current CPU. The path is then resolved when needed.
      If the resolution fails, we assume that the CPU was removed and the
      path is resetted to the default (ie, path of first_cpu).
      
      Reported-by: default avatarSatheesh Rajendran <sathnaga@linux.vnet.ibm.com>
      Suggested-by: default avatarIgor Mammedov <imammedo@redhat.com>
      Signed-off-by: default avatarGreg Kurz <groug@kaod.org>
      Message-Id: <150822818243.26242.12993827911736928961.stgit@bahia.lan>
      Reviewed-by: default avatarIgor Mammedov <imammedo@redhat.com>
      Signed-off-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
      751f8cfe
  12. Oct 25, 2017
Loading