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(a)redhat.com>
---
src/conf/domain_conf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 47693a49bf..9a4a26d875 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -15254,7 +15254,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) {
--
2.41.0