]> git.proxmox.com Git - qemu.git/commit
kvm: add API to set ioeventfd
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 17 Mar 2010 11:07:54 +0000 (13:07 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 1 Apr 2010 18:56:43 +0000 (13:56 -0500)
commitca82180603446831187203383de4b5ede4e2c346
tree38b5d43ad938dc0a7a7fcd7e14b8023ffa57bfe6
parent95d528a2fe9f1eaec11dc3256dc9dec49b557990
kvm: add API to set ioeventfd

Comment on kvm usage: rather than require users to do if (kvm_enabled())
and/or ifdefs, this patch adds an API that, internally, is defined to
stub function on non-kvm build, and checks kvm_enabled for non-kvm
run.

While rest of qemu code still uses if (kvm_enabled()), I think this
approach is cleaner, and we should convert rest of code to it
long term.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
kvm-all.c
kvm.h