mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 02:04:16 +03:00
conf: Compare memory device address in virDomainMemoryFindByDefInternal()
This is similar to one of my previous commits. Simply speaking, users can specify address where a memory device is mapped to. And as such, we should include it when looking up corresponding device in domain definition (e.g. on device hot unplug). Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
10d38f46c7
commit
29df55e74d
@ -15253,7 +15253,8 @@ virDomainMemoryFindByDefInternal(virDomainDef *def,
|
||||
tmp->targetNode != mem->targetNode ||
|
||||
tmp->size != mem->size ||
|
||||
tmp->blocksize != mem->blocksize ||
|
||||
tmp->requestedsize != mem->requestedsize)
|
||||
tmp->requestedsize != mem->requestedsize ||
|
||||
tmp->address != mem->address)
|
||||
continue;
|
||||
|
||||
switch (mem->model) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user