summaryrefslogtreecommitdiff
path: root/kvm-all.c
diff options
context:
space:
mode:
authorAmos Kong <akong@redhat.com>2013-05-22 12:57:35 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2013-07-03 10:38:19 +0200
commitfa4ba923bd539647ace9d70d226a848bd6a89dac (patch)
treec0e13b09fdc311891fce46093c942f9ab63fecaa /kvm-all.c
parent1acd5a373905ddb28957842256a038956941f332 (diff)
downloadqemu-fa4ba923bd539647ace9d70d226a848bd6a89dac.tar.gz
qemu-fa4ba923bd539647ace9d70d226a848bd6a89dac.tar.bz2
qemu-fa4ba923bd539647ace9d70d226a848bd6a89dac.zip
kvm: add detail error message when fail to add ioeventfd
I try to hotplug 28 * 8 multiple-function devices to guest with old host kernel, ioeventfds in host kernel will be exhausted, then qemu fails to allocate ioeventfds for blk/nic devices. It's better to add detail error here. Signed-off-by: Amos Kong <akong@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'kvm-all.c')
-rw-r--r--kvm-all.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kvm-all.c b/kvm-all.c
index c757dd262e..12042f72ae 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -837,6 +837,8 @@ static void kvm_mem_ioeventfd_add(MemoryListener *listener,
data, true, int128_get64(section->size),
match_data);
if (r < 0) {
+ fprintf(stderr, "%s: error adding ioeventfd: %s\n",
+ __func__, strerror(-r));
abort();
}
}
@@ -869,6 +871,8 @@ static void kvm_io_ioeventfd_add(MemoryListener *listener,
data, true, int128_get64(section->size),
match_data);
if (r < 0) {
+ fprintf(stderr, "%s: error adding ioeventfd: %s\n",
+ __func__, strerror(-r));
abort();
}
}