memory: check address space when a listener is registered
authorJulien Grall <julien.grall@citrix.com>
Wed, 4 Apr 2012 14:15:41 +0000 (15:15 +0100)
committerAvi Kivity <avi@redhat.com>
Thu, 5 Apr 2012 10:09:17 +0000 (13:09 +0300)
commit221b3a3f1e5edb9e41a48bfa384803800184b397
treeaaea8496cf7a9102069fb06ba965d484a4dc6b64
parentb9f9be88385e9ab51d4163bfd66f015f14f56286
memory: check address space when a listener is registered

This patch resolves a bug in memory listener registration.
"range_add" callback  was called on each section of the both
address space (IO and memory space) even if it doesn't match
the address space filter.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
memory.c