Skip to contentSkip to conversation

qemu-kvm: Update kvm_check_many_ioeventfds for qemu-kvm use

PATCH Applied Jan Kiszka 2 participants 2 messages Feb 8, 2011 – Feb 15, 2011 KVM

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 qemu-kvm: Update kvm_check_many_ioeventfds for qemu-kvm use

From: Jan Kiszka <[email protected]>

qemu-kvm does not (yet) have CONFIG_IOTHREAD enabled. Without it, kvm_check_many_ioeventfds will always fail although there is no reason.

---
 kvm-all.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kvm-all.c +0 -0
index 0e404d6..44534bb 100644
@@ -464,7 +464,7 @@ static int kvm_check_many_ioeventfds(void)
      * Older kernels have a 6 device limit on the KVM io bus.  Find out

so we
* can avoid creating too many ioeventfds.
*/
-#if defined(CONFIG_EVENTFD) && defined(CONFIG_IOTHREAD) +#if defined(CONFIG_EVENTFD) /* && defined(CONFIG_IOTHREAD) */

     int ioeventfds[7];
     int i, ret = 0;
     for (i = 0; i < ARRAY_SIZE(ioeventfds); i++) {
Signature · 1 line
1.7.1
#1 lore raw
Quoted 9 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

qemu-kvm does not (yet) have CONFIG_IOTHREAD enabled. Without it, kvm_check_many_ioeventfds will always fail although there is no reason.

---
 kvm-all.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Applied, thanks.