def qemuopts(qemuopts):
    """
    Makes sure qemuopts is valid.
    """
    if qemuopts is None:
        return True
    if not isinstance(qemuopts, str):
        raise TypeError('qemuopts must be none or str.')
    return True
