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
..
2015-06-01 14:18:55 +02:00
2015-06-01 14:18:55 +02:00
2015-06-01 14:18:55 +02:00
2015-06-01 14:18:55 +02:00
2015-05-29 11:28:59 +01:00
2015-06-01 14:18:55 +02:00
2015-06-10 18:15:04 +02:00
2015-06-03 18:19:18 +02:00
2015-05-31 16:26:41 +02:00
2015-06-01 14:18:55 +02:00
2015-06-01 14:18:54 +02:00
2015-05-11 13:54:00 +01:00