diff options
| author | Marc-André Lureau | 2015-12-21 12:10:13 +0100 |
|---|---|---|
| committer | Marc-André Lureau | 2016-02-02 13:28:58 +0100 |
| commit | 9940c3236f318949c92099163281d5d23a9fcf4f (patch) | |
| tree | f03dbfbe9a298310d3b328099b798c9987746603 /linux-headers/linux | |
| parent | ivshmem: generalize ivshmem_setup_interrupts (diff) | |
| download | qemu-9940c3236f318949c92099163281d5d23a9fcf4f.tar.gz qemu-9940c3236f318949c92099163281d5d23a9fcf4f.tar.xz qemu-9940c3236f318949c92099163281d5d23a9fcf4f.zip | |
ivshmem: use a single eventfd callback, get rid of CharDriver
Simplify the interrupt handling by having a single callback on irq&msi
cases. Remove usage of CharDriver, replace it with
qemu_set_fd_handler(). Use event_notifier_test_and_clear() to read the
eventfd.
Before this patch, ivshmem writes the first byte received to
s->intrstatus. But ivshmem_device_spec.txt says "The status register is
set to 1 when an interrupt occurs." Fortunately, the byte usually comes
from another ivshmem device, and those always write 1.
After this commit, follows the specification, set to 1 when an interrupt
occurs.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'linux-headers/linux')
0 files changed, 0 insertions, 0 deletions
