[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 1/5] io: tls: Inherit QIO_CHANNEL_FEATURE_SHUTDOWN on server side
From: |
Juan Quintela |
Subject: |
[PULL 1/5] io: tls: Inherit QIO_CHANNEL_FEATURE_SHUTDOWN on server side |
Date: |
Wed, 12 Apr 2023 23:45:03 +0200 |
From: Peter Xu <peterx@redhat.com>
TLS iochannel will inherit io_shutdown() from the master ioc, however we
missed to do that on the server side.
This will e.g. allow qemu_file_shutdown() to work on dest QEMU too for
migration.
Acked-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
io/channel-tls.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/io/channel-tls.c b/io/channel-tls.c
index 5a7a3d48d6..9805dd0a3f 100644
--- a/io/channel-tls.c
+++ b/io/channel-tls.c
@@ -74,6 +74,9 @@ qio_channel_tls_new_server(QIOChannel *master,
ioc = QIO_CHANNEL_TLS(object_new(TYPE_QIO_CHANNEL_TLS));
ioc->master = master;
+ if (qio_channel_has_feature(master, QIO_CHANNEL_FEATURE_SHUTDOWN)) {
+ qio_channel_set_feature(QIO_CHANNEL(ioc),
QIO_CHANNEL_FEATURE_SHUTDOWN);
+ }
object_ref(OBJECT(master));
ioc->session = qcrypto_tls_session_new(
--
2.39.2
- [PULL 0/5] Migration 20230412 patches, Juan Quintela, 2023/04/12
- [PULL 2/5] migration: Fix potential race on postcopy_qemufile_src, Juan Quintela, 2023/04/12
- [PULL 1/5] io: tls: Inherit QIO_CHANNEL_FEATURE_SHUTDOWN on server side,
Juan Quintela <=
- [PULL 5/5] migration: fix ram_state_pending_exact(), Juan Quintela, 2023/04/12
- [PULL 3/5] migration: Recover behavior of preempt channel creation for pre-7.2, Juan Quintela, 2023/04/12
- [PULL 4/5] migration/ram.c: Fix migration with compress enabled, Juan Quintela, 2023/04/12
- Re: [PULL 0/5] Migration 20230412 patches, Peter Maydell, 2023/04/13