summaryrefslogtreecommitdiffstats
path: root/memory.h
diff options
context:
space:
mode:
authorAvi Kivity2012-02-08 15:39:06 +0100
committerAvi Kivity2012-02-29 12:44:41 +0100
commit80a1ea3748203b840d8bad488ada4d6f5bb66c9d (patch)
treeb29184d33c61b7cba42f44c3f6e03ff8f9640b61 /memory.h
parentmemory: code motion: move MEMORY_LISTENER_CALL() (diff)
downloadqemu-80a1ea3748203b840d8bad488ada4d6f5bb66c9d.tar.gz
qemu-80a1ea3748203b840d8bad488ada4d6f5bb66c9d.tar.xz
qemu-80a1ea3748203b840d8bad488ada4d6f5bb66c9d.zip
memory: move ioeventfd ops to MemoryListener
This way the accelerator (kvm) can handle them directly. Signed-off-by: Avi Kivity <avi@redhat.com> Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'memory.h')
-rw-r--r--memory.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/memory.h b/memory.h
index 954dc86721..84bb67c27a 100644
--- a/memory.h
+++ b/memory.h
@@ -185,6 +185,10 @@ struct MemoryListener {
void (*log_sync)(MemoryListener *listener, MemoryRegionSection *section);
void (*log_global_start)(MemoryListener *listener);
void (*log_global_stop)(MemoryListener *listener);
+ void (*eventfd_add)(MemoryListener *listener, MemoryRegionSection *section,
+ bool match_data, uint64_t data, int fd);
+ void (*eventfd_del)(MemoryListener *listener, MemoryRegionSection *section,
+ bool match_data, uint64_t data, int fd);
/* Lower = earlier (during add), later (during del) */
unsigned priority;
QTAILQ_ENTRY(MemoryListener) link;