Revision eace6157 lib/hypervisor/hv_kvm.py

b/lib/hypervisor/hv_kvm.py
1692 1692
    """Invoke a command on the instance monitor.
1693 1693

  
1694 1694
    """
1695
    # TODO: Replace monitor calls with QMP once KVM >= 0.14 is the minimum
1696
    # version. The monitor protocol is designed for human consumption, whereas
1697
    # QMP is made for programmatic usage. In the worst case QMP can also
1698
    # execute monitor commands. As it is, all calls to socat take at least
1699
    # 500ms and likely more: socat can't detect the end of the reply and waits
1700
    # for 500ms of no data received before exiting (500 ms is the default for
1701
    # the "-t" parameter).
1695 1702
    socat = ("echo %s | %s STDIO UNIX-CONNECT:%s" %
1696 1703
             (utils.ShellQuote(command),
1697 1704
              constants.SOCAT_PATH,

Also available in: Unified diff