[libvirt] [PATCH v2 1/8] qemu: Separate char device removal into a standalone function