diff options
| author | Jason Wang | 2015-06-04 12:34:30 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2015-06-10 18:15:05 +0200 |
| commit | 975acc0ae6d60260859884a9235ae3c62e2969a2 (patch) | |
| tree | 14d90d3235c1492b3111c1d35eea24832551ee98 /include/exec/user | |
| parent | virtio-pci: make modern bar 64bit + prefetchable (diff) | |
| download | qemu-975acc0ae6d60260859884a9235ae3c62e2969a2.tar.gz qemu-975acc0ae6d60260859884a9235ae3c62e2969a2.tar.xz qemu-975acc0ae6d60260859884a9235ae3c62e2969a2.zip | |
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>
Diffstat (limited to 'include/exec/user')
0 files changed, 0 insertions, 0 deletions
