mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-22 14:50:27 +03:00
qemu: Rename remoteCaps parameter in qemuMigrationParamsCheck
The migration cookie contains two bitmaps of migration capabilities: supported and automatic. qemuMigrationParamsCheck expects the letter so lets make it more obvious by renaming the parameter as remoteAuto. Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
c941106f7c
commit
efc26a665d
@ -1290,7 +1290,7 @@ int
|
||||
qemuMigrationParamsCheck(virDomainObj *vm,
|
||||
int asyncJob,
|
||||
qemuMigrationParams *migParams,
|
||||
virBitmap *remoteCaps)
|
||||
virBitmap *remoteAuto)
|
||||
{
|
||||
qemuDomainJobPrivate *jobPriv = vm->job->privateData;
|
||||
qemuMigrationCapability cap;
|
||||
@ -1323,8 +1323,8 @@ qemuMigrationParamsCheck(virDomainObj *vm,
|
||||
if (qemuMigrationParamsAlwaysOn[i].party != party) {
|
||||
bool remote = false;
|
||||
|
||||
if (remoteCaps)
|
||||
ignore_value(virBitmapGetBit(remoteCaps, cap, &remote));
|
||||
if (remoteAuto)
|
||||
ignore_value(virBitmapGetBit(remoteAuto, cap, &remote));
|
||||
|
||||
if (!remote) {
|
||||
VIR_DEBUG("Not enabling migration capability '%s'; it is "
|
||||
|
@ -142,7 +142,7 @@ int
|
||||
qemuMigrationParamsCheck(virDomainObj *vm,
|
||||
int asyncJob,
|
||||
qemuMigrationParams *migParams,
|
||||
virBitmap *remoteCaps);
|
||||
virBitmap *remoteAuto);
|
||||
|
||||
void
|
||||
qemuMigrationParamsReset(virDomainObj *vm,
|
||||
|
Loading…
x
Reference in New Issue
Block a user