qemu/hw/virtio
Jason Wang 975acc0ae6 virtio-pci: correctly set host notifiers for modern bar
Currently, during host notifier set. We only add eventfd for legacy
bar, this is not correct since:

- Non-transitional device does not have legacy bar, so qemu will crash
  since proxy->bar was not initialized.
- Modern device uses modern bar and notify cap to notify the device,
  we should add eventfd for proxy->notify.

So this patch fixes the above two issues by adding eventfd based on
whether legacy or modern device were supported.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
2015-06-10 18:15:05 +02:00
..
dataplane dataplane: allow virtio-1 devices 2015-06-10 18:15:04 +02:00
Makefile.objs dataplane: endianness-aware accesses 2015-02-16 15:07:16 +00:00
vhost-backend.c vhost: Remove superfluous '\n' around error_report() 2015-03-10 08:15:33 +03:00
vhost-user.c vhost-user: add multi queue support 2015-06-01 14:18:55 +02:00
vhost.c vhost: 64 bit features 2015-06-10 18:15:04 +02:00
virtio-balloon.c virtio: make features 64bit wide 2015-06-01 14:18:55 +02:00
virtio-bus.c virtio: device_plugged() can fail 2015-05-31 16:44:12 +02:00
virtio-mmio.c virtio: allow virtio-1 queue layout 2015-06-10 18:15:04 +02:00
virtio-pci.c virtio-pci: correctly set host notifiers for modern bar 2015-06-10 18:15:05 +02:00
virtio-pci.h virtio-pci: add flags to enable/disable legacy/modern 2015-06-10 18:15:05 +02:00
virtio-rng.c virtio: make features 64bit wide 2015-06-01 14:18:55 +02:00
virtio.c virtio: add modern config accessors 2015-06-10 18:15:05 +02:00