commit | cb289d6244a37cf932c571d6deb0daa8030f931b | [log] [tgz] |
---|---|---|
author | Davide Libenzi <davidel@xmailserver.org> | Wed Jan 13 09:34:36 2010 -0800 |
committer | Marcelo Tosatti <mtosatti@redhat.com> | Mon Jan 25 12:26:38 2010 -0200 |
tree | 05bea15a25c9d9a4dcc0658a6a8bf845daca535a | |
parent | a6085fbaf65ab09bfb5ec8d902d6d21680fe1895 [diff] |
eventfd - allow atomic read and waitqueue remove KVM needs a wait to atomically remove themselves from the eventfd ->poll() wait queue head, in order to handle correctly their IRQfd deassign operation. This patch introduces such API, plus a way to read an eventfd from its context. Signed-off-by: Davide Libenzi <davidel@xmailserver.org> Signed-off-by: Avi Kivity <avi@redhat.com>