mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 19:45:21 +00:00
qemu: domain: Store virStorageSources representing pflash backing
To allow converting the pflash drives to blockdev we will need a virStorageSource to allow using our helpers. Temporarily prior to coverting loader data to a virStorageSoruce add private data which will house this. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
316223b6ad
commit
07675b0100
@ -2167,6 +2167,11 @@ qemuDomainObjPrivateDataClear(qemuDomainObjPrivatePtr priv)
|
|||||||
|
|
||||||
virHashRemoveAll(priv->blockjobs);
|
virHashRemoveAll(priv->blockjobs);
|
||||||
virHashRemoveAll(priv->dbusVMStates);
|
virHashRemoveAll(priv->dbusVMStates);
|
||||||
|
|
||||||
|
virObjectUnref(priv->pflash0);
|
||||||
|
priv->pflash0 = NULL;
|
||||||
|
virObjectUnref(priv->pflash1);
|
||||||
|
priv->pflash1 = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -397,6 +397,12 @@ struct _qemuDomainObjPrivate {
|
|||||||
|
|
||||||
virHashTablePtr dbusVMStates;
|
virHashTablePtr dbusVMStates;
|
||||||
bool disableSlirp;
|
bool disableSlirp;
|
||||||
|
|
||||||
|
/* Until we add full support for backing chains for pflash drives, these
|
||||||
|
* pointers hold the temporary virStorageSources for creating the -blockdev
|
||||||
|
* commandline for pflash drives. */
|
||||||
|
virStorageSourcePtr pflash0;
|
||||||
|
virStorageSourcePtr pflash1;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define QEMU_DOMAIN_PRIVATE(vm) \
|
#define QEMU_DOMAIN_PRIVATE(vm) \
|
||||||
|
Loading…
Reference in New Issue
Block a user