[libvirt] [PATCHv10 3/6] clean up UpdateDevice for consolidation