[PATCH v9 08/17] qemu: Refactor qemuDomainSetBlockIoTune to extract common methods