]> git.proxmox.com Git - mirror_qemu.git/commit - util/event_notifier-posix.c
event_notifier: Make event_notifier_init_fd() #ifdef CONFIG_EVENTFD
authorMarkus Armbruster <armbru@redhat.com>
Tue, 15 Mar 2016 18:34:20 +0000 (19:34 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 21 Mar 2016 20:28:59 +0000 (21:28 +0100)
commit330b58368ca16c31efdadcf8263f7f903546af50
tree312ec2338bd7d0b6c2953a2e5dde097a2ee82e7d
parentad4929384b64ffc9908915fd40cb80f455835d4a
event_notifier: Make event_notifier_init_fd() #ifdef CONFIG_EVENTFD

Event notifiers are designed for eventfd(2).  They can fall back to
pipes, but according to Paolo, event_notifier_init_fd() really
requires the real thing, and should therefore be under #ifdef
CONFIG_EVENTFD.  Do that.

Its only user is ivshmem, which is currently CONFIG_POSIX.  Narrow it
to CONFIG_EVENTFD.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <1458066895-20632-6-git-send-email-armbru@redhat.com>
default-configs/pci.mak
tests/Makefile
util/event_notifier-posix.c