summaryrefslogtreecommitdiffstats
path: root/arch/mips/include
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2015-09-15 08:41:57 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2015-09-15 16:59:46 +0200
commit8f4216c7d28976f7ec1b2bcbfa0a9f787133c45e (patch)
tree1e530734d606cc871c6a01a2b41567dae350104c /arch/mips/include
parentkvm: fix double free for fast mmio eventfd (diff)
downloadlinux-8f4216c7d28976f7ec1b2bcbfa0a9f787133c45e.tar.xz
linux-8f4216c7d28976f7ec1b2bcbfa0a9f787133c45e.zip
kvm: fix zero length mmio searching
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> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/mips/include')
0 files changed, 0 insertions, 0 deletions