1. 07 6月, 2019 1 次提交
  2. 14 12月, 2018 2 次提交
  3. 20 9月, 2018 2 次提交
  4. 13 7月, 2018 1 次提交
  5. 12 6月, 2018 2 次提交
  6. 06 6月, 2018 1 次提交
    • D
      qemu: don't retry connect() if doing FD passing · 7ef0471b
      Daniel P. Berrangé 提交于
      Since libvirt called bind() and listen() on the UNIX socket, it is
      guaranteed that connect() will immediately succeed, if QEMU is running
      normally. It will only fail if QEMU has closed the monitor socket by
      mistake or if QEMU has exited, letting the kernel close it.
      
      With this in mind we can remove the retry loop and timeout when
      connecting to the QEMU monitor if we are doing FD passing. Libvirt can
      go straight to sending the QMP greeting and will simply block waiting
      for a reply until QEMU is ready.
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      7ef0471b
  7. 18 4月, 2018 1 次提交
  8. 23 3月, 2018 1 次提交
  9. 10 4月, 2017 1 次提交
  10. 16 3月, 2017 1 次提交
  11. 18 1月, 2017 4 次提交
  12. 06 10月, 2016 1 次提交
  13. 09 6月, 2016 3 次提交
  14. 11 3月, 2015 1 次提交
    • P
      test: qemu: Fix qemu monitor test utils to allow testing HMP · fc471345
      Peter Krempa 提交于
      qemu HMP commands sent by libvirt are terminated just by a '\r'. The
      fake monitor used in tests wasn't prepared to handle this and the
      communication would hang on an attempt to do a HMP conversation.
      
      Add a special case for handling commands separated by \r in case HMP is
      used.
      fc471345
  15. 03 6月, 2014 1 次提交
    • P
      tests: monitor: json: Fix error message when returning json in json · 9046f910
      Peter Krempa 提交于
      The qemu JSON monitor test allows to test also expected command
      arguments. As the error from the monitor simulator is returned as a
      simulated qemu error (in JSON) all other JSON contained in the error
      message needs to be escaped. This will happen if the monitor command
      under test receives a JSON array as an argument.
      
      This will improve the error message from:
      libvirt:  error : internal error: cannot parse json { "error":  { "desc":
      "Invalid value of argument 'keys' of command 'send-key': expected 'ble'
      got '[{"type":"number","data":43},{"type":"number","data":26},
      {"type":"number","data":46},{"type":"number","data":32}]'",
      "class": "UnexpectedCommand" } }: lexical error: invalid string in json text.
      
      To:
      libvirt: QEMU Driver error : internal error: unable to execute QEMU
      command 'send-key': Invalid value of argument 'keys' of command
      'send-key': expected 'ble' got '[{"type":"number","data":43},
      {"type":"number","data":26},{"type":"number","data":46},
      {"type":"number","data":32}]'
      
      This improvement will not have any effect on tests executing as
      expected, but it will help test development.
      9046f910
  16. 25 3月, 2014 1 次提交
  17. 18 3月, 2014 1 次提交
  18. 21 10月, 2013 1 次提交
  19. 03 10月, 2013 1 次提交
    • M
      qemuMonitorTestFree: Join worker thread · 2d670cd4
      Michal Privoznik 提交于
      Join the worker thread no matter if it is running or zombie already.
      With current implementation the thread is joined iff @running is true.
      However, when worker executes the last line, @running is set to false.
      Hence qemuMonitorTestFree() won't join it (and free resources) even
      though we can clearly see worker has run (nobody else sets @running =
      false).
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      2d670cd4
  20. 01 10月, 2013 2 次提交
  21. 26 9月, 2013 3 次提交
  22. 26 8月, 2013 4 次提交
  23. 02 8月, 2013 1 次提交
  24. 31 7月, 2013 3 次提交