mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-19 01:24:42 -05:00
qemu: Remove 'allowReboot' field
The value is no longer used. Remove it including the status XML handling. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
@@ -1946,8 +1946,6 @@ qemuDomainObjPrivateDataClear(qemuDomainObjPrivate *priv)
|
||||
|
||||
priv->rememberOwner = false;
|
||||
|
||||
priv->allowReboot = VIR_TRISTATE_BOOL_ABSENT;
|
||||
|
||||
g_clear_pointer(&priv->migrationCaps, virBitmapFree);
|
||||
|
||||
virHashRemoveAll(priv->blockjobs);
|
||||
@@ -2621,17 +2619,6 @@ qemuDomainObjPrivateXMLFormatBackups(virBuffer *buf,
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
qemuDomainObjPrivateXMLFormatAllowReboot(virBuffer *buf,
|
||||
virTristateBool allowReboot)
|
||||
{
|
||||
if (allowReboot) {
|
||||
virBufferAsprintf(buf, "<allowReboot value='%s'/>\n",
|
||||
virTristateBoolTypeToString(allowReboot));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
qemuDomainObjPrivateXMLFormatPR(virBuffer *buf,
|
||||
qemuDomainObjPrivate *priv)
|
||||
@@ -2812,8 +2799,6 @@ qemuDomainObjPrivateXMLFormat(virBuffer *buf,
|
||||
if (priv->rememberOwner)
|
||||
virBufferAddLit(buf, "<rememberOwner/>\n");
|
||||
|
||||
qemuDomainObjPrivateXMLFormatAllowReboot(buf, priv->allowReboot);
|
||||
|
||||
qemuDomainObjPrivateXMLFormatPR(buf, priv);
|
||||
|
||||
virBufferAsprintf(buf, "<nodename index='%llu'/>\n", priv->nodenameindex);
|
||||
@@ -3302,21 +3287,6 @@ qemuDomainObjPrivateXMLParseBackups(qemuDomainObjPrivate *priv,
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
qemuDomainObjPrivateXMLParseAllowReboot(xmlXPathContextPtr ctxt,
|
||||
virTristateBool *allowReboot)
|
||||
{
|
||||
xmlNodePtr node = virXPathNode("./allowReboot", ctxt);
|
||||
|
||||
/* Allow value='default' as the input here, because old versions
|
||||
* of libvirt produced that output and we need to be able to read
|
||||
* it back to correctly handle running guests on daemon upgrade */
|
||||
return virXMLPropTristateBoolAllowDefault(node, "value",
|
||||
VIR_XML_PROP_NONE,
|
||||
allowReboot);
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
qemuDomainObjPrivateXMLParsePR(xmlXPathContextPtr ctxt,
|
||||
bool *prDaemonRunning)
|
||||
@@ -3548,9 +3518,6 @@ qemuDomainObjPrivateXMLParse(xmlXPathContextPtr ctxt,
|
||||
priv->chardevStdioLogd = virXPathBoolean("boolean(./chardevStdioLogd)",
|
||||
ctxt) == 1;
|
||||
|
||||
if (qemuDomainObjPrivateXMLParseAllowReboot(ctxt, &priv->allowReboot) < 0)
|
||||
return -1;
|
||||
|
||||
qemuDomainObjPrivateXMLParsePR(ctxt, &priv->prDaemonRunning);
|
||||
|
||||
if (qemuDomainObjPrivateXMLParseBlockjobs(vm, priv, ctxt) < 0)
|
||||
|
||||
@@ -134,15 +134,6 @@ struct _qemuDomainObjPrivate {
|
||||
bool fakeReboot;
|
||||
bool fakeReset;
|
||||
bool pausedShutdown;
|
||||
/* allowReboot:
|
||||
*
|
||||
* Unused with new QEMU versions which have QEMU_CAPS_SET_ACTION.
|
||||
*
|
||||
* Otherwise if it's set to VIR_TRISTATE_BOOL_YES, QEMU was started with
|
||||
* -no-shutdown, and if set to VIR_TRISTATE_BOOL_NO qemu was started with
|
||||
* -no-reboot instead.
|
||||
*/
|
||||
virTristateBool allowReboot;
|
||||
|
||||
unsigned long migMaxBandwidth;
|
||||
char *origname;
|
||||
@@ -1010,14 +1001,6 @@ qemuDomainFixupCPUs(virDomainObj *vm,
|
||||
char *
|
||||
qemuDomainGetMachineName(virDomainObj *vm);
|
||||
|
||||
void
|
||||
qemuDomainObjPrivateXMLFormatAllowReboot(virBuffer *buf,
|
||||
virTristateBool allowReboot);
|
||||
|
||||
int
|
||||
qemuDomainObjPrivateXMLParseAllowReboot(xmlXPathContextPtr ctxt,
|
||||
virTristateBool *allowReboot);
|
||||
|
||||
void
|
||||
qemuDomainPrepareDiskSourceData(virDomainDiskDef *disk,
|
||||
virStorageSource *src);
|
||||
|
||||
@@ -233,7 +233,6 @@
|
||||
<channelTargetDir path='/var/lib/libvirt/qemu/channel/target/domain-4-copy'/>
|
||||
<memoryBackingDir path='/var/lib/libvirt/qemu/ram/4-copy'/>
|
||||
<chardevStdioLogd/>
|
||||
<allowReboot value='yes'/>
|
||||
<nodename index='0'/>
|
||||
<fdset index='0'/>
|
||||
<blockjobs active='yes'>
|
||||
|
||||
@@ -232,7 +232,6 @@
|
||||
<channelTargetDir path='/var/lib/libvirt/qemu/channel/target/domain-4-copy'/>
|
||||
<memoryBackingDir path='/var/lib/libvirt/qemu/ram/4-copy'/>
|
||||
<chardevStdioLogd/>
|
||||
<allowReboot value='yes'/>
|
||||
<nodename index='0'/>
|
||||
<fdset index='0'/>
|
||||
<blockjobs active='yes'>
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
<libDir path='/tmp'/>
|
||||
<channelTargetDir path='/var/lib/libvirt/qemu/channel/target'/>
|
||||
<memoryBackingDir path='/var/lib/libvirt/qemu/ram/1-QEMUGuest1'/>
|
||||
<allowReboot value='yes'/>
|
||||
<nodename index='0'/>
|
||||
<fdset index='0'/>
|
||||
<blockjobs active='yes'/>
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
<libDir path='/tmp'/>
|
||||
<channelTargetDir path='/var/lib/libvirt/qemu/channel/target'/>
|
||||
<memoryBackingDir path='/some/random/path/1-QEMUGuest1'/>
|
||||
<allowReboot value='yes'/>
|
||||
<nodename index='0'/>
|
||||
<fdset index='0'/>
|
||||
<blockjobs active='no'/>
|
||||
|
||||
@@ -256,7 +256,6 @@
|
||||
<channelTargetDir path='/var/lib/libvirt/qemu/channel/target/domain-1-nest'/>
|
||||
<memoryBackingDir path='/var/lib/libvirt/qemu/ram/1-nest'/>
|
||||
<chardevStdioLogd/>
|
||||
<allowReboot value='yes'/>
|
||||
<nodename index='0'/>
|
||||
<fdset index='0'/>
|
||||
<blockjobs active='no'/>
|
||||
|
||||
@@ -342,7 +342,6 @@
|
||||
</cpu>
|
||||
<chardevStdioLogd/>
|
||||
<rememberOwner/>
|
||||
<allowReboot value='yes'/>
|
||||
<nodename index='3'/>
|
||||
<fdset index='0'/>
|
||||
<blockjobs active='yes'>
|
||||
|
||||
@@ -259,7 +259,6 @@
|
||||
<channelTargetDir path='/var/lib/libvirt/qemu/channel/target/domain-4-upstream'/>
|
||||
<memoryBackingDir path='/var/lib/libvirt/qemu/ram/4-upstream'/>
|
||||
<chardevStdioLogd/>
|
||||
<allowReboot value='yes'/>
|
||||
<nodename index='0'/>
|
||||
<fdset index='0'/>
|
||||
<blockjobs active='no'/>
|
||||
|
||||
@@ -288,7 +288,6 @@
|
||||
<channelTargetDir path='/var/lib/libvirt/qemu/channel/target/domain-3-upstream'/>
|
||||
<memoryBackingDir path='/var/lib/libvirt/qemu/ram/3-upstream'/>
|
||||
<chardevStdioLogd/>
|
||||
<allowReboot value='yes'/>
|
||||
<nodename index='0'/>
|
||||
<fdset index='0'/>
|
||||
<blockjobs active='no'/>
|
||||
|
||||
@@ -270,7 +270,6 @@
|
||||
<channelTargetDir path='/var/lib/libvirt/qemu/channel/target/domain-7-nest'/>
|
||||
<memoryBackingDir path='/var/lib/libvirt/qemu/ram/7-nest'/>
|
||||
<chardevStdioLogd/>
|
||||
<allowReboot value='yes'/>
|
||||
<nodename index='0'/>
|
||||
<fdset index='0'/>
|
||||
<blockjobs active='no'/>
|
||||
|
||||
@@ -260,7 +260,6 @@
|
||||
<channelTargetDir path='/var/lib/libvirt/qemu/channel/target/domain-1-upstream'/>
|
||||
<memoryBackingDir path='/var/lib/libvirt/qemu/ram/1-upstream'/>
|
||||
<chardevStdioLogd/>
|
||||
<allowReboot value='yes'/>
|
||||
<nodename index='123'/>
|
||||
<fdset index='321'/>
|
||||
<blockjobs active='no'/>
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
<libDir path='/tmp'/>
|
||||
<channelTargetDir path='/var/lib/libvirt/qemu/channel/target'/>
|
||||
<memoryBackingDir path='/var/lib/libvirt/qemu/ram/1-QEMUGuest1'/>
|
||||
<allowReboot value='yes'/>
|
||||
<nodename index='0'/>
|
||||
<fdset index='0'/>
|
||||
<blockjobs active='no'/>
|
||||
|
||||
@@ -233,7 +233,6 @@
|
||||
<channelTargetDir path='/var/lib/libvirt/qemu/channel/target/domain-4-copy'/>
|
||||
<memoryBackingDir path='/var/lib/libvirt/qemu/ram/4-copy'/>
|
||||
<chardevStdioLogd/>
|
||||
<allowReboot value='yes'/>
|
||||
<nodename index='0'/>
|
||||
<fdset index='0'/>
|
||||
<blockjobs active='no'/>
|
||||
|
||||
@@ -258,7 +258,6 @@
|
||||
<channelTargetDir path='/var/lib/libvirt/qemu/channel/target/domain-1-upstream'/>
|
||||
<memoryBackingDir path='/var/lib/libvirt/qemu/ram/1-upstream'/>
|
||||
<chardevStdioLogd/>
|
||||
<allowReboot value='yes'/>
|
||||
<nodename index='0'/>
|
||||
<fdset index='0'/>
|
||||
<blockjobs active='no'/>
|
||||
|
||||
@@ -308,7 +308,6 @@
|
||||
<libDir path='/tmp'/>
|
||||
<channelTargetDir path='/var/lib/libvirt/qemu/channel/target'/>
|
||||
<memoryBackingDir path='/var/lib/libvirt/qemu/ram/1729-QEMUGuest1'/>
|
||||
<allowReboot value='yes'/>
|
||||
<nodename index='0'/>
|
||||
<fdset index='0'/>
|
||||
<blockjobs active='no'/>
|
||||
|
||||
Reference in New Issue
Block a user