[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/5] migration: Store downtime timestamps in an array
From: |
Joao Martins |
Subject: |
Re: [PATCH 1/5] migration: Store downtime timestamps in an array |
Date: |
Thu, 28 Sep 2023 14:31:30 +0100 |
User-agent: |
Mozilla Thunderbird |
On 28/09/2023 02:55, Wang, Lei wrote:
> On 9/27/2023 0:18, Joao Martins wrote:
>> Right now downtime_start is stored in MigrationState.
>>
>> In preparation to having more downtime timestamps during
>> switchover, move downtime_start to an array namely, @timestamp.
>>
>> Add a setter/getter surrounding which timestamps to record,
>> to make it easier to spread to various migration functions.
>>
>> Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
>> ---
>> qapi/migration.json | 14 ++++++++++++++
>> migration/migration.h | 7 +++++--
>> migration/migration.c | 24 ++++++++++++++++++++----
>> 3 files changed, 39 insertions(+), 6 deletions(-)
>>
>> diff --git a/qapi/migration.json b/qapi/migration.json
>> index 8843e74b59c7..b836cc881d33 100644
>> --- a/qapi/migration.json
>> +++ b/qapi/migration.json
>> @@ -190,6 +190,20 @@
>> { 'struct': 'VfioStats',
>> 'data': {'transferred': 'int' } }
>>
>> +##
>> +# @MigrationDowntime:
>> +#
>> +# An enumeration of downtime timestamps for all
>> +# steps of the switchover.
>> +#
>> +# @start:Timestamp taken at the start of the switchover right before
> ^
> Suggest adding a space here to keep consistent with other attributes.
>
Yeap, will do for v2
- [PATCH 0/5] migration: Downtime observability improvements, Joao Martins, 2023/09/26
- [PATCH 1/5] migration: Store downtime timestamps in an array, Joao Martins, 2023/09/26
- [PATCH 2/5] migration: Collect more timestamps during switchover, Joao Martins, 2023/09/26
- [PATCH 3/5] migration: Add a tracepoint for the downtime stats, Joao Martins, 2023/09/26
- [PATCH 4/5] migration: Provide QMP access to downtime stats, Joao Martins, 2023/09/26
- [PATCH 5/5] migration: Print expected-downtime on completion, Joao Martins, 2023/09/26