kvm: don't try to register to KVM_FAST_MMIO_BUS for non mmio eventfd
authorJason Wang <jasowang@redhat.com>
Tue, 15 Sep 2015 06:41:54 +0000 (14:41 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Sep 2015 14:58:27 +0000 (16:58 +0200)
commit8453fecbecae26edb3f278627376caab05d9a88d
tree26c18feae38a64a5247132dca8a328c49740b06e
parent81523aac01a7f68af2576800c8623edfb6323017
kvm: don't try to register to KVM_FAST_MMIO_BUS for non mmio eventfd

We only want zero length mmio eventfd to be registered on
KVM_FAST_MMIO_BUS. So check this explicitly when arg->len is zero to
make sure this.

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>
virt/kvm/eventfd.c