mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: Remove 'memAliasOrderMismatch' field from VM private data
The field is no longer used so we can remove it and the code filling it. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
6d3f0b11b2
commit
5764930463
@ -177,9 +177,6 @@ struct _qemuDomainObjPrivate {
|
||||
uint8_t *masterKey;
|
||||
size_t masterKeyLen;
|
||||
|
||||
/* note whether memory device alias does not correspond to slot number */
|
||||
bool memAliasOrderMismatch;
|
||||
|
||||
/* for migrations using TLS with a secret (not to be saved in our */
|
||||
/* private XML). */
|
||||
qemuDomainSecretInfo *migSecinfo;
|
||||
|
@ -3896,28 +3896,6 @@ qemuDomainPerfRestart(virDomainObj *vm)
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
qemuProcessReconnectCheckMemAliasOrderMismatch(virDomainObj *vm)
|
||||
{
|
||||
size_t i;
|
||||
int aliasidx;
|
||||
virDomainDef *def = vm->def;
|
||||
qemuDomainObjPrivate *priv = vm->privateData;
|
||||
|
||||
if (!virDomainDefHasMemoryHotplug(def) || def->nmems == 0)
|
||||
return;
|
||||
|
||||
for (i = 0; i < def->nmems; i++) {
|
||||
aliasidx = qemuDomainDeviceAliasIndex(&def->mems[i]->info, "dimm");
|
||||
|
||||
if (def->mems[i]->info.addr.dimm.slot != aliasidx) {
|
||||
priv->memAliasOrderMismatch = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static bool
|
||||
qemuProcessDomainMemoryDefNeedHugepagesPath(const virDomainMemoryDef *mem,
|
||||
const long system_pagesize)
|
||||
@ -9091,8 +9069,6 @@ qemuProcessReconnect(void *opaque)
|
||||
if (qemuProcessRefreshFdsetIndex(obj) < 0)
|
||||
goto error;
|
||||
|
||||
qemuProcessReconnectCheckMemAliasOrderMismatch(obj);
|
||||
|
||||
if (qemuConnectAgent(driver, obj) < 0)
|
||||
goto error;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user