1. 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
  2. 05 6月, 2018 4 次提交
  3. 23 5月, 2018 7 次提交
  4. 17 5月, 2018 1 次提交
  5. 14 5月, 2018 1 次提交
  6. 04 5月, 2018 1 次提交
  7. 30 4月, 2018 1 次提交
  8. 18 4月, 2018 3 次提交
  9. 17 4月, 2018 8 次提交
  10. 16 4月, 2018 1 次提交
  11. 03 4月, 2018 1 次提交
  12. 23 3月, 2018 1 次提交
  13. 06 3月, 2018 1 次提交
    • B
      qemu: log the crash information for S390 · a07a9146
      Bjoern Walk 提交于
      Since QEMU 2.12 commit id '4ada99ade' guest crash information for
      S390 is available in the QEMU monitor, e.g.:
      
        {
          "timestamp": {
              "seconds": 1518004739,
              "microseconds": 552563
          },
          "event": "GUEST_PANICKED",
          "data": {
              "action": "pause",
              "info": {
                  "core": 0,
                  "psw-addr": 1102832,
                  "reason": "disabled-wait",
                  "psw-mask": 562956395872256,
                  "type": "s390"
              }
          }
        }
      
      Let's log this information into the domain log file, e.g.:
      
          2018-02-08 13:11:26.075+0000: panic s390: core='0' psw-mask='0x0002000180000000' psw-addr='0x000000000010f146' reason='disabled-wait'
      Reviewed-by: NBoris Fiuczynski <fiuczy@linux.vnet.ibm.com>
      Signed-off-by: NBjoern Walk <bwalk@linux.vnet.ibm.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      a07a9146
  14. 19 2月, 2018 1 次提交
    • D
      qemu: stop passing virConnectPtr into qemuMonitorStartCPUs · aed679da
      Daniel P. Berrangé 提交于
      There is a long standing hack to pass a virConnectPtr into the
      qemuMonitorStartCPUs method, so that when the text monitor prompts
      for a disk password, we can lookup virSecretPtr objects. This causes
      us to have to pass a virConnectPtr around through countless methods
      up the call chain....except some places don't have any virConnectPtr
      available so have always just passed NULL. We can finally fix this
      disastrous design by using virGetConnectSecret() to open a connection
      to the secret driver at time of use.
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      aed679da
  15. 06 2月, 2018 3 次提交
  16. 19 1月, 2018 1 次提交
  17. 18 1月, 2018 1 次提交
  18. 03 1月, 2018 1 次提交
    • P
      qemu: monitor: Decrease logging verbosity · f10bb334
      Peter Krempa 提交于
      The PROBE macro used in qemuMonitorIOProcess and the VIR_DEBUG message
      in qemuMonitorJSONIOProcess create a lot of logging churn when debug
      logging is enabled during monitor communication.
      
      The messages logged from the PROBE macro are rather useless since they
      are reporting the partial state of receiving the reply from qemu. The
      actual full reply is still logged in qemuMonitorJSONIOProcessLine once
      the full message is received.
      f10bb334
  19. 06 12月, 2017 1 次提交
  20. 03 11月, 2017 1 次提交
    • A
      Remove backslash alignment attempts · 3e7db8d3
      Andrea Bolognani 提交于
      Right-aligning backslashes when defining macros or using complex
      commands in Makefiles looks cute, but as soon as any changes is
      required to the code you end up with either distractingly broken
      alignment or unnecessarily big diffs where most of the changes
      are just pushing all backslashes a few characters to one side.
      
      Generated using
      
        $ git grep -El '[[:blank:]][[:blank:]]\\$' | \
          grep -E '*\.([chx]|am|mk)$$' | \
          while read f; do \
            sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
          done
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      3e7db8d3