mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-08-19 03:47:27 +00:00
kvm tools: virtio-mmio: init_ioeventfd should use MMIO for ioeventfd__add_event()
This patch fixes a bug that vtirtio_mmio_init_ioeventfd() passed a wrong value when it invoked ioeventfd__add_event(). True value of 2nd parameter indicates the eventfd uses PIO bus which is used by virito-pci, however, for virtio-mmio, the value should be false. Signed-off-by: Ying-Shiuan Pan <yspan@itri.org.tw> Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
committed by
Will Deacon
parent
61c003c973
commit
08fee1cb64
+2
-2
@@ -55,10 +55,10 @@ static int virtio_mmio_init_ioeventfd(struct kvm *kvm,
|
||||
* Vhost will poll the eventfd in host kernel side,
|
||||
* no need to poll in userspace.
|
||||
*/
|
||||
err = ioeventfd__add_event(&ioevent, true, false);
|
||||
err = ioeventfd__add_event(&ioevent, false, false);
|
||||
else
|
||||
/* Need to poll in userspace. */
|
||||
err = ioeventfd__add_event(&ioevent, true, true);
|
||||
err = ioeventfd__add_event(&ioevent, false, true);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user