[PATCH v2 2/3] qemu: make separate function for setting statsType of privateData