win32: drop fd registration to the main-loop on setting non-block
commitc8b2b7fed9850356f5d88bc7da2f1cefe57289bf
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 18 Dec 2020 13:57:11 +0000 (18 17:57 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 6 Jan 2021 09:21:20 +0000 (6 10:21 +0100)
treea95b739a6de949778b48838895a721914b8c0ce0
parentacb1e6db849151ef6e271027904b6cfea2d5880c
win32: drop fd registration to the main-loop on setting non-block

Low-level fd users from QEMU use aio_set_fd_handler(), which handles
event registration with the main loop; qemu_fd_register() is only
needed together with the main loop's poll notifiers, of which SLIRP
is the only user.

This removes a dependency from oslib-win32.c to main-loop.c.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20201218135712.674094-1-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
util/oslib-win32.c