diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2022-06-20 12:02:00 +0100 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2022-06-22 19:33:43 +0100 |
commit | 80ad97069c3c434a3631f0c8bc0d5c4cee09be6d (patch) | |
tree | 3d13a69c55be2e0e1e29a40bff53c977b3384ff0 /migration/qemu-file.c | |
parent | d3c581b750ab099aa8937df5533655b3f9d08ab3 (diff) | |
download | qemu-80ad97069c3c434a3631f0c8bc0d5c4cee09be6d.zip qemu-80ad97069c3c434a3631f0c8bc0d5c4cee09be6d.tar.gz qemu-80ad97069c3c434a3631f0c8bc0d5c4cee09be6d.tar.bz2 |
migration: remove the QEMUFileOps 'set_blocking' callback
This directly implements the set_blocking logic using QIOChannel APIs.
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/qemu-file.c')
-rw-r--r-- | migration/qemu-file.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/migration/qemu-file.c b/migration/qemu-file.c index d71bcb6..95d5db9 100644 --- a/migration/qemu-file.c +++ b/migration/qemu-file.c @@ -879,9 +879,7 @@ void qemu_put_counted_string(QEMUFile *f, const char *str) */ void qemu_file_set_blocking(QEMUFile *f, bool block) { - if (f->ops->set_blocking) { - f->ops->set_blocking(f->ioc, block, NULL); - } + qio_channel_set_blocking(f->ioc, block, NULL); } /* |