提交 173a191c 编写于 作者: J Ján Tomko

qemu: stop formatting json='1' in status XML

For quite some time now it is impossible to connect to a domain
using a HMP monitor, so there is no point in formatting it in the status
XML.
Signed-off-by: NJán Tomko <jtomko@redhat.com>
Acked-by: NPeter Krempa <pkrempa@redhat.com>
上级 ec9f1cd5
......@@ -2474,7 +2474,6 @@ qemuDomainObjPrivateXMLFormat(virBufferPtr buf,
}
virBufferEscapeString(buf, "<monitor path='%s'", monitorpath);
virBufferAddLit(buf, " json='1'");
virBufferAsprintf(buf, " type='%s'/>\n",
virDomainChrTypeToString(priv->monConfig->type));
}
......
<domstatus state='running' reason='booted' pid='3803518'>
<taint flag='high-privileges'/>
<monitor path='/var/lib/libvirt/qemu/test.monitor' json='1' type='unix'/>
<monitor path='/var/lib/libvirt/qemu/test.monitor' type='unix'/>
<vcpus>
<vcpu id='0' pid='3803519'/>
</vcpus>
......
<domstatus state='running' reason='booted' pid='195139'>
<monitor path='/var/lib/libvirt/qemu/domain-1-upstream/monitor.sock' json='1' type='unix'/>
<monitor path='/var/lib/libvirt/qemu/domain-1-upstream/monitor.sock' type='unix'/>
<namespaces>
<mount/>
</namespaces>
......
<domstatus state='paused' reason='migration' pid='2296'>
<taint flag='high-privileges'/>
<taint flag='host-cpu'/>
<monitor path='/var/lib/libvirt/qemu/domain-1-nest/monitor.sock' json='1' type='unix'/>
<monitor path='/var/lib/libvirt/qemu/domain-1-nest/monitor.sock' type='unix'/>
<namespaces>
<mount/>
</namespaces>
......
<domstatus state='running' reason='booted' pid='15433'>
<taint flag='high-privileges'/>
<monitor path='/var/lib/libvirt/qemu/domain-4-upstream/monitor.sock' json='1' type='unix'/>
<monitor path='/var/lib/libvirt/qemu/domain-4-upstream/monitor.sock' type='unix'/>
<vcpus>
<vcpu id='0' pid='15449'/>
<vcpu id='1' pid='15450'/>
......
<domstatus state='running' reason='booted' pid='68472'>
<taint flag='high-privileges'/>
<monitor path='/var/lib/libvirt/qemu/domain-3-upstream/monitor.sock' json='1' type='unix'/>
<monitor path='/var/lib/libvirt/qemu/domain-3-upstream/monitor.sock' type='unix'/>
<namespaces>
<mount/>
</namespaces>
......
<domstatus state='paused' reason='migration' pid='21586'>
<taint flag='high-privileges'/>
<taint flag='host-cpu'/>
<monitor path='/var/lib/libvirt/qemu/domain-7-nest/monitor.sock' json='1' type='unix'/>
<monitor path='/var/lib/libvirt/qemu/domain-7-nest/monitor.sock' type='unix'/>
<namespaces>
<mount/>
</namespaces>
......
<domstatus state='running' reason='booted' pid='195139'>
<taint flag='high-privileges'/>
<monitor path='/var/lib/libvirt/qemu/domain-1-upstream/monitor.sock' json='1' type='unix'/>
<monitor path='/var/lib/libvirt/qemu/domain-1-upstream/monitor.sock' type='unix'/>
<namespaces>
<mount/>
</namespaces>
......
<domstatus state='running' reason='booted' pid='3803518'>
<taint flag='high-privileges'/>
<monitor path='/var/lib/libvirt/qemu/test.monitor' json='1' type='unix'/>
<monitor path='/var/lib/libvirt/qemu/test.monitor' type='unix'/>
<vcpus>
<vcpu id='0' pid='3803519'/>
<vcpu id='1' pid='3803520'/>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册