migration/dirtyrate: Introduce virDomainDirtyRateStatus enum

Introduce virDomainDirtyRateStatus enum.

Signed-off-by: Hao Wang <wanghao232@huawei.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Hao Wang 2021-03-16 20:32:48 +08:00 committed by Michal Privoznik
parent a2ae2dad06
commit a0c7f61f37

View File

@ -5128,6 +5128,24 @@ int virDomainGetMessages(virDomainPtr domain,
char ***msgs,
unsigned int flags);
/**
* virDomainDirtyRateStatus:
*
* Details on the cause of a dirty rate calculation status.
*/
typedef enum {
VIR_DOMAIN_DIRTYRATE_UNSTARTED = 0, /* the dirtyrate calculation has
not been started */
VIR_DOMAIN_DIRTYRATE_MEASURING = 1, /* the dirtyrate calculation is
measuring */
VIR_DOMAIN_DIRTYRATE_MEASURED = 2, /* the dirtyrate calculation is
completed */
# ifdef VIR_ENUM_SENTINELS
VIR_DOMAIN_DIRTYRATE_LAST
# endif
} virDomainDirtyRateStatus;
int virDomainStartDirtyRateCalc(virDomainPtr domain,
int seconds,
unsigned int flags);