[libvirt] [PATCH 6/7] device: cleanup input device code