mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
qemu: domain: Pass 'qemuCaps' to post parse callbacks when parsing status XML
When status XML was parsed the post-parse callbacks could not access qemu caps and potentially upgrade the definition according to the present caps. Implement the callback to pass it in. Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
ac6f736ed1
commit
1bbb5dddbb
@ -2801,6 +2801,15 @@ qemuDomainObjPrivateXMLParse(xmlXPathContextPtr ctxt,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static void *
|
||||||
|
qemuDomainObjPrivateXMLGetParseOpaque(virDomainObjPtr vm)
|
||||||
|
{
|
||||||
|
qemuDomainObjPrivatePtr priv = vm->privateData;
|
||||||
|
|
||||||
|
return priv->qemuCaps;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
virDomainXMLPrivateDataCallbacks virQEMUDriverPrivateDataCallbacks = {
|
virDomainXMLPrivateDataCallbacks virQEMUDriverPrivateDataCallbacks = {
|
||||||
.alloc = qemuDomainObjPrivateAlloc,
|
.alloc = qemuDomainObjPrivateAlloc,
|
||||||
.free = qemuDomainObjPrivateFree,
|
.free = qemuDomainObjPrivateFree,
|
||||||
@ -2809,6 +2818,7 @@ virDomainXMLPrivateDataCallbacks virQEMUDriverPrivateDataCallbacks = {
|
|||||||
.chrSourceNew = qemuDomainChrSourcePrivateNew,
|
.chrSourceNew = qemuDomainChrSourcePrivateNew,
|
||||||
.parse = qemuDomainObjPrivateXMLParse,
|
.parse = qemuDomainObjPrivateXMLParse,
|
||||||
.format = qemuDomainObjPrivateXMLFormat,
|
.format = qemuDomainObjPrivateXMLFormat,
|
||||||
|
.getParseOpaque = qemuDomainObjPrivateXMLGetParseOpaque,
|
||||||
.storageParse = qemuStorageSourcePrivateDataParse,
|
.storageParse = qemuStorageSourcePrivateDataParse,
|
||||||
.storageFormat = qemuStorageSourcePrivateDataFormat,
|
.storageFormat = qemuStorageSourcePrivateDataFormat,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user