kvm: factor out core eventfd assign/deassign logic
commit7642b3f109228718f1bf57c35210c9a36696a465
authorJason Wang <jasowang@redhat.com>
Tue, 15 Sep 2015 06:41:55 +0000 (15 14:41 +0800)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 28 Oct 2015 02:12:50 +0000 (27 22:12 -0400)
treec7ad56032b4d94d5f877f9244a27471cf516e346
parent7d765ce07eff78ab78d09d4acaa3aecb71e322a4
kvm: factor out core eventfd assign/deassign logic

[ Upstream commit 85da11ca587c8eb73993a1b503052391a73586f9 ]

This patch factors out core eventfd assign/deassign logic and leaves
the argument checking and bus index selection to callers.

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
virt/kvm/eventfd.c