Re: [Qemu-devel] [PATCH] vhost: Fix aborting if KVM does not support eventfds

2015-11-16 Thread Christian Borntraeger
On 11/13/2015 10:28 AM, Pavel Fedin wrote: > If you happen to have a stock kernel of old version, like 3.x, and you > attempt to enable vhost by setting vhost=on, qemu aborts with error: > > kvm_mem_ioeventfd_add: error adding ioeventfd: Function not implemented > > This patch adds capability che

Re: [Qemu-devel] [PATCH] vhost: Fix aborting if KVM does not support eventfds

2015-11-16 Thread Pavel Fedin
Hello! > > If you happen to have a stock kernel of old version, like 3.x, and you > > attempt to enable vhost by setting vhost=on, qemu aborts with error: > > > > kvm_mem_ioeventfd_add: error adding ioeventfd: Function not implemented > > > > This patch adds capability check, so that vhost gets d

Re: [Qemu-devel] [PATCH] vhost: Fix aborting if KVM does not support eventfds

2015-11-16 Thread Pavel Fedin
Hello! > OK so it's a misconfigured kernel. > Fine but I'm not happy with silently using userspace instead. It's not silent. You get two warnings in the log: --- cut --- 2015-11-13T08:43:51.146802Z qemu-system-aarch64: KVM does not support MMIO eventfds 2015-11-13T08:43:51.146915Z qemu-system-

Re: [Qemu-devel] [PATCH] vhost: Fix aborting if KVM does not support eventfds

2015-11-16 Thread Michael S. Tsirkin
On Mon, Nov 16, 2015 at 10:02:07AM +0300, Pavel Fedin wrote: > Hello! > > > > If you happen to have a stock kernel of old version, like 3.x, and you > > > attempt to enable vhost by setting vhost=on, qemu aborts with error: > > > > > > kvm_mem_ioeventfd_add: error adding ioeventfd: Function not i

Re: [Qemu-devel] [PATCH] vhost: Fix aborting if KVM does not support eventfds

2015-11-15 Thread Michael S. Tsirkin
On Fri, Nov 13, 2015 at 12:28:10PM +0300, Pavel Fedin wrote: > If you happen to have a stock kernel of old version, like 3.x, and you > attempt to enable vhost by setting vhost=on, qemu aborts with error: > > kvm_mem_ioeventfd_add: error adding ioeventfd: Function not implemented > > This patch a

[Qemu-devel] [PATCH] vhost: Fix aborting if KVM does not support eventfds

2015-11-13 Thread Pavel Fedin
If you happen to have a stock kernel of old version, like 3.x, and you attempt to enable vhost by setting vhost=on, qemu aborts with error: kvm_mem_ioeventfd_add: error adding ioeventfd: Function not implemented This patch adds capability check, so that vhost gets disabled instead. A warning is d