hyperv: add support for KVM_HYPERV_EVENTFD
commit8d3bc0b75318dce70928b8bde1a49e632adf5137
authorRoman Kagan <rkagan@virtuozzo.com>
Fri, 21 Sep 2018 08:22:15 +0000 (21 11:22 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 Oct 2018 11:44:14 +0000 (19 13:44 +0200)
tree65a5aaa15d8b8493b6277b7f808ce1764d57a49b
parente6ea9f45b72fe83d49adda948ff397dafc00c68f
hyperv: add support for KVM_HYPERV_EVENTFD

When setting up a notifier for Hyper-V event connection, try to use the
KVM-assisted one first, and fall back to userspace handling of the
hypercall if the kernel doesn't provide the requested feature.

Signed-off-by: Roman Kagan <rkagan@virtuozzo.com>
Message-Id: <20180921082217.29481-9-rkagan@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/hyperv/hyperv.c