[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 11/13] tests: Add postcopy tls migration test
From: |
Peter Xu |
Subject: |
Re: [PATCH v6 11/13] tests: Add postcopy tls migration test |
Date: |
Tue, 24 May 2022 17:06:48 -0400 |
On Thu, May 19, 2022 at 11:11:34AM +0100, Daniel P. Berrangé wrote:
> On Tue, May 17, 2022 at 03:57:28PM -0400, Peter Xu wrote:
> > We just added TLS tests for precopy but not postcopy. Add the
> > corresponding test for vanilla postcopy.
> >
> > Rename the vanilla postcopy to "postcopy/plain" because all postcopy tests
> > will only use unix sockets as channel.
> >
> > Signed-off-by: Peter Xu <peterx@redhat.com>
> > ---
> > tests/qtest/migration-test.c | 50 +++++++++++++++++++++++++++++++-----
> > 1 file changed, 43 insertions(+), 7 deletions(-)
> >
> > diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c
> > index d33e8060f9..e8304aa454 100644
> > --- a/tests/qtest/migration-test.c
> > +++ b/tests/qtest/migration-test.c
> > @@ -481,6 +481,10 @@ typedef struct {
> > bool only_target;
> > /* Use dirty ring if true; dirty logging otherwise */
> > bool use_dirty_ring;
> > + /* Whether use TLS channels for postcopy test? */
> > + bool postcopy_tls;
> > + /* Used only if postcopy_tls==true, to cache the data object */
> > + void *postcopy_tls_data;
>
> Rather than adding these fields, I think it would be preferrable to
> pass the hooks in the same way I did for the precopy tests.
I can give it a shot.
Ideally I think we should rename MigrationCommon to MigrationPrecopy and
keep all the precopy stuff there, meanwhile we could have MigrationPostcopy
which will also include MigrationStart but keeps the postcopy bits around.
Then I'd need to move start_hook and so into MigrationStart. But let me
start from simple..
--
Peter Xu
- Re: [PATCH v6 07/13] migration: Add helpers to detect TLS capability, (continued)
- [PATCH v6 05/13] migration: Create the postcopy preempt channel asynchronously, Peter Xu, 2022/05/17
- [PATCH v6 09/13] migration: Enable TLS for preempt channel, Peter Xu, 2022/05/17
- [PATCH v6 08/13] migration: Export tls-[creds|hostname|authz] params to cmdline too, Peter Xu, 2022/05/17
- [PATCH v6 11/13] tests: Add postcopy tls migration test, Peter Xu, 2022/05/17
- [PATCH v6 12/13] tests: Add postcopy tls recovery migration test, Peter Xu, 2022/05/17
- [PATCH v6 13/13] tests: Add postcopy preempt tests, Peter Xu, 2022/05/17
- [PATCH v6 06/13] migration: Add property x-postcopy-preempt-break-huge, Peter Xu, 2022/05/17
- [PATCH v6 04/13] migration: Postcopy recover with preempt enabled, Peter Xu, 2022/05/17
- [PATCH v6 10/13] migration: Respect postcopy request order in preemption mode, Peter Xu, 2022/05/17