Skip to content
Snippets Groups Projects
Commit d22b096e authored by Avi Kivity's avatar Avi Kivity
Browse files

kvm: use separate MemoryListeners for memory and I/O


The construct

   if (address_space == get_system_memory()) {
       // memory thing
   } else {
       // io thing
   }

fails if we have more than two address spaces.  Use a separate listener
for memory and I/O, and utilize MemoryListener's address space filtering to
fix this.

Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 0fada674
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment