[libvirt] [PATCH] qemu: add a value check for granularity