[libvirt] [PATCH 09/10 v2] device: cleanup input device code