[libvirt] [PATCH 1/6 ACKed] qemu: Add checking in helpers for sgio setting