[libvirt] [PATCH v2 3/4] device: cleanup input device code