From 753d5e14c4cd9e545242971c5d149fe5da0a5ba1 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 5 Jul 2012 17:16:27 +0200 Subject: memory: pass EventNotifier, not eventfd Under Win32, EventNotifiers will not have event_notifier_get_fd, so we cannot call it in common code such as hw/virtio-pci.c. Pass a pointer to the notifier, and only retrieve the file descriptor in kvm-specific code. Signed-off-by: Paolo Bonzini Signed-off-by: Avi Kivity --- xen-all.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'xen-all.c') diff --git a/xen-all.c b/xen-all.c index 59f232395e..61def2ec8f 100644 --- a/xen-all.c +++ b/xen-all.c @@ -560,13 +560,15 @@ static void xen_log_global_stop(MemoryListener *listener) static void xen_eventfd_add(MemoryListener *listener, MemoryRegionSection *section, - bool match_data, uint64_t data, int fd) + bool match_data, uint64_t data, + EventNotifier *e) { } static void xen_eventfd_del(MemoryListener *listener, MemoryRegionSection *section, - bool match_data, uint64_t data, int fd) + bool match_data, uint64_t data, + EventNotifier *e) { } -- cgit v1.2.1