Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1224740
| From | Cornelia Huck <cornelia.huck@de.ibm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH V6 4/6] kvm: fix zero length mmio searching |
| Date | 2015-09-15 10:00 +0200 |
| Message-ID | <q8TjJ-6Xi-31@gated-at.bofh.it> (permalink) |
| References | <q8SdX-5qT-3@gated-at.bofh.it> <q8SdX-5qT-1@gated-at.bofh.it> |
| Organization | IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Koederitz Geschäftsführung: Dirk Wittkopp Sitz der Gesellschaft: Böblingen Registergericht: Amtsgericht Stuttgart, HRB 243294 |
On Tue, 15 Sep 2015 14:41:57 +0800 Jason Wang <jasowang@redhat.com> wrote: > Currently, if we had a zero length mmio eventfd assigned on > KVM_MMIO_BUS. It will never be found by kvm_io_bus_cmp() since it > always compares the kvm_io_range() with the length that guest > wrote. This will cause e.g for vhost, kick will be trapped by qemu > userspace instead of vhost. Fixing this by using zero length if an > iodevice is zero length. > > Cc: stable@vger.kernel.org > Cc: Gleb Natapov <gleb@kernel.org> > Cc: Paolo Bonzini <pbonzini@redhat.com> > Signed-off-by: Jason Wang <jasowang@redhat.com> > --- > virt/kvm/kvm_main.c | 19 +++++++++++++++++-- > 1 file changed, 17 insertions(+), 2 deletions(-) Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH V6 4/6] kvm: fix zero length mmio searching Jason Wang <jasowang@redhat.com> - 2015-09-15 08:50 +0200 Re: [PATCH V6 4/6] kvm: fix zero length mmio searching Cornelia Huck <cornelia.huck@de.ibm.com> - 2015-09-15 10:00 +0200
csiph-web