Re: [PATCH] migration/dirtyrate: present dirty rate only when querying the rate has completed

2020-09-28 Thread Zheng Chuan
On 2020/9/28 20:23, David Edmondson wrote: > On Sunday, 2020-09-27 at 12:55:20 +08, Chuan Zheng wrote: > >> Make dirty_rate field optional, present dirty rate only when querying >> the rate has completed. >> The qmp results is shown as follow: >> @unstarted: >> {"return":{"status":"unstarted","

Re: [PATCH] migration/dirtyrate: present dirty rate only when querying the rate has completed

2020-09-28 Thread David Edmondson
On Sunday, 2020-09-27 at 12:55:20 +08, Chuan Zheng wrote: > Make dirty_rate field optional, present dirty rate only when querying > the rate has completed. > The qmp results is shown as follow: > @unstarted: > {"return":{"status":"unstarted","start-time":0,"calc-time":0},"id":"libvirt-12"} > @meas

[PATCH] migration/dirtyrate: present dirty rate only when querying the rate has completed

2020-09-26 Thread Chuan Zheng
Make dirty_rate field optional, present dirty rate only when querying the rate has completed. The qmp results is shown as follow: @unstarted: {"return":{"status":"unstarted","start-time":0,"calc-time":0},"id":"libvirt-12"} @measuring: {"return":{"status":"measuring","start-time":0,"calc-time":0},"i