Re: [PATCH V4 0/4] Fast MMIO eventfd fixes

2015-09-13 Thread Michael S. Tsirkin
On Fri, Sep 11, 2015 at 10:33:08AM +0200, Paolo Bonzini wrote: > > > On 11/09/2015 10:15, Michael S. Tsirkin wrote: > > I think we should add a capability for fast mmio. > > This way, userspace can avoid crashing buggy kernels. > > I agree. > > Paolo Having said that, we can merge these patche

Re: [PATCH V4 0/4] Fast MMIO eventfd fixes

2015-09-13 Thread Michael S. Tsirkin
On Fri, Sep 11, 2015 at 05:28:29PM +0800, Jason Wang wrote: > > > On 09/11/2015 04:33 PM, Paolo Bonzini wrote: > > > > On 11/09/2015 10:15, Michael S. Tsirkin wrote: > >> I think we should add a capability for fast mmio. > >> This way, userspace can avoid crashing buggy kernels. > > I agree. > >

Re: [PATCH V4 0/4] Fast MMIO eventfd fixes

2015-09-11 Thread Jason Wang
On 09/11/2015 04:33 PM, Paolo Bonzini wrote: > > On 11/09/2015 10:15, Michael S. Tsirkin wrote: >> I think we should add a capability for fast mmio. >> This way, userspace can avoid crashing buggy kernels. > I agree. > > Paolo Right, then qemu will use datamatch eventfd if kenrel dost not have t

Re: [PATCH V4 0/4] Fast MMIO eventfd fixes

2015-09-11 Thread Paolo Bonzini
On 11/09/2015 10:15, Michael S. Tsirkin wrote: > I think we should add a capability for fast mmio. > This way, userspace can avoid crashing buggy kernels. I agree. Paolo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.

Re: [PATCH V4 0/4] Fast MMIO eventfd fixes

2015-09-11 Thread Michael S. Tsirkin
On Fri, Sep 11, 2015 at 11:17:33AM +0800, Jason Wang wrote: > Hi: > > This series fixes two issues of fast mmio eventfd: > > 1) A single iodev instance were registerd on two buses: KVM_MMIO_BUS >and KVM_FAST_MMIO_BUS. This will cause double in >ioeventfd_destructor() > 2) A zero length io

[PATCH V4 0/4] Fast MMIO eventfd fixes

2015-09-10 Thread Jason Wang
Hi: This series fixes two issues of fast mmio eventfd: 1) A single iodev instance were registerd on two buses: KVM_MMIO_BUS and KVM_FAST_MMIO_BUS. This will cause double in ioeventfd_destructor() 2) A zero length iodev on KVM_MMIO_BUS will never be found but kvm_io_bus_cmp(). This will l