mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
Pull request
-----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAmHfDFIACgkQnKSrs4Gr c8hoMwf/QPaU1svRdP9pPiMkJiwmtmgacEKEfrF3I8w8aOOf3dLPyUKafuStJtfZ Fhl2631jHL7JKKQKGomJhdzQovHAPsPEC8YFxesB1LvO0LIX4UtYplkxkj27In2D 9w+cIMVMTkFyIv/5GgTaFBbnmk2at4tqXkcGmcblp0qZCMsElJvGWOkToM+Fjot4 A4jYUCviqQqdt4j558UjIdecdaWy+5Cnej3NsKwH5V62o2uZY1+7vu0cf0ARcja1 kptZBbvMIfjyl1TeuJWuEya8aWo0KwIbbs3tVKz16Na7RXlG01mYCwGLAVkBADCD mJaM1jZVADtUZyoCkh4M4KBBwFnFCw== =ITwP -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/stefanha-gitlab/tags/block-pull-request' into staging Pull request # gpg: Signature made Wed 12 Jan 2022 17:13:54 GMT # gpg: using RSA key 8695A8BFD3F97CDAAC35775A9CA4ABB381AB73C8 # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>" [full] # gpg: aka "Stefan Hajnoczi <stefanha@gmail.com>" [full] # Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35 775A 9CA4 ABB3 81AB 73C8 * remotes/stefanha-gitlab/tags/block-pull-request: virtio: unify dataplane and non-dataplane ->handle_output() virtio: use ->handle_output() instead of ->handle_aio_output() virtio-scsi: prepare virtio_scsi_handle_cmd for dataplane virtio-blk: drop unused virtio_blk_handle_vq() return value virtio: get rid of VirtIOHandleAIOOutput aio-posix: split poll check from ready handler Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
1001c9d9c0
31 changed files with 221 additions and 232 deletions
|
@ -130,7 +130,7 @@ static void *test_acquire_thread(void *opaque)
|
|||
static void set_event_notifier(AioContext *ctx, EventNotifier *notifier,
|
||||
EventNotifierHandler *handler)
|
||||
{
|
||||
aio_set_event_notifier(ctx, notifier, false, handler, NULL);
|
||||
aio_set_event_notifier(ctx, notifier, false, handler, NULL, NULL);
|
||||
}
|
||||
|
||||
static void dummy_notifier_read(EventNotifier *n)
|
||||
|
@ -390,7 +390,7 @@ static void test_aio_external_client(void)
|
|||
for (i = 1; i < 3; i++) {
|
||||
EventNotifierTestData data = { .n = 0, .active = 10, .auto_set = true };
|
||||
event_notifier_init(&data.e, false);
|
||||
aio_set_event_notifier(ctx, &data.e, true, event_ready_cb, NULL);
|
||||
aio_set_event_notifier(ctx, &data.e, true, event_ready_cb, NULL, NULL);
|
||||
event_notifier_set(&data.e);
|
||||
for (j = 0; j < i; j++) {
|
||||
aio_disable_external(ctx);
|
||||
|
|
|
@ -22,14 +22,14 @@ static void add_event_notifiers(EventNotifier *notifiers, size_t n)
|
|||
for (size_t i = 0; i < n; i++) {
|
||||
event_notifier_init(¬ifiers[i], false);
|
||||
aio_set_event_notifier(ctx, ¬ifiers[i], false,
|
||||
dummy_fd_handler, NULL);
|
||||
dummy_fd_handler, NULL, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
static void remove_event_notifiers(EventNotifier *notifiers, size_t n)
|
||||
{
|
||||
for (size_t i = 0; i < n; i++) {
|
||||
aio_set_event_notifier(ctx, ¬ifiers[i], false, NULL, NULL);
|
||||
aio_set_event_notifier(ctx, ¬ifiers[i], false, NULL, NULL, NULL);
|
||||
event_notifier_cleanup(¬ifiers[i]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue