[PATCH v4 1/9] qemu: Refactor dirty page rate calculation status implementation