docs: def _dedicate_device(self, userid, vaddr, raddr, mode):
          """dedicate device."""
          action = 'dedicate'
          rd = ('changevm %(uid)s %(act)s %(va)s %(ra)s %(mod)i' %
                {'uid': userid, 'act': action,
                 'va': vaddr, 'ra': raddr, 'mod': mode})
          action = "dedicate device to userid '%s'" % userid
          with zvmutils.log_and_reraise_smt_request_failed(action):
              self._request(rd)