mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
qemu: domain: remove monJSON field
If we have a monitor, it is a JSON monitor. Signed-off-by: Ján Tomko <jtomko@redhat.com> Acked-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
011f4eb124
commit
466764346d
@ -2903,9 +2903,6 @@ qemuDomainObjPrivateXMLParse(xmlXPathContextPtr ctxt,
|
||||
priv->monConfig->type = VIR_DOMAIN_CHR_TYPE_PTY;
|
||||
VIR_FREE(tmp);
|
||||
|
||||
priv->monJSON = virXPathBoolean("count(./monitor[@json = '1']) > 0",
|
||||
ctxt) > 0;
|
||||
|
||||
switch (priv->monConfig->type) {
|
||||
case VIR_DOMAIN_CHR_TYPE_PTY:
|
||||
priv->monConfig->data.file.path = monitorpath;
|
||||
|
@ -280,7 +280,6 @@ struct _qemuDomainObjPrivate {
|
||||
|
||||
qemuMonitorPtr mon;
|
||||
virDomainChrSourceDefPtr monConfig;
|
||||
bool monJSON;
|
||||
bool monError;
|
||||
unsigned long long monStart;
|
||||
|
||||
|
@ -6195,7 +6195,6 @@ qemuProcessPrepareDomain(virQEMUDriverPtr driver,
|
||||
if (qemuProcessPrepareMonitorChr(priv->monConfig, priv->libDir) < 0)
|
||||
goto cleanup;
|
||||
|
||||
priv->monJSON = true;
|
||||
priv->monError = false;
|
||||
priv->monStart = 0;
|
||||
priv->runningReason = VIR_DOMAIN_RUNNING_UNKNOWN;
|
||||
|
@ -298,7 +298,6 @@ testQemuHotplug(const void *data)
|
||||
|
||||
priv = vm->privateData;
|
||||
priv->mon = qemuMonitorTestGetMonitor(test_mon);
|
||||
priv->monJSON = true;
|
||||
|
||||
/* XXX We need to unlock the monitor here, as
|
||||
* qemuDomainObjEnterMonitorInternal (called from qemuDomainChangeGraphics)
|
||||
@ -441,7 +440,6 @@ testQemuHotplugCpuPrepare(const char *test,
|
||||
goto error;
|
||||
|
||||
priv->mon = qemuMonitorTestGetMonitor(data->mon);
|
||||
priv->monJSON = true;
|
||||
virObjectUnlock(priv->mon);
|
||||
|
||||
if (qemuDomainRefreshVcpuInfo(&driver, data->vm, 0, false) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user