mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-06-16 02:15:47 +00:00
kvm tools: Repair running on non ioeventfd-capable platforms
Commit d3923126a24212f1e746a84a575dadbd9f259418 added a bunch of nice error checking around ioevent__init() but the init may gracefully fail if ioevents simply aren't supported (PPC64 KVM). This commit adds a new return code for the init -- positive, but identifiable as 'not success 0'. Signed-off-by: Matt Evans <matt@ozlabs.org> Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
+1
-1
@@ -67,7 +67,7 @@ int ioeventfd__init(struct kvm *kvm)
|
||||
|
||||
ioeventfd_avail = kvm__supports_extension(kvm, KVM_CAP_IOEVENTFD);
|
||||
if (!ioeventfd_avail)
|
||||
return -ENOSYS;
|
||||
return 1; /* Not fatal, but let caller determine no-go. */
|
||||
|
||||
epoll_fd = epoll_create(IOEVENTFD_MAX_EVENTS);
|
||||
if (epoll_fd < 0)
|
||||
|
||||
Reference in New Issue
Block a user