def METHOD_NAME(self, vm):
    """
    Returns separated virtconsoles and virtserialports
    :param vm: VM object
    :return: tuple (all virtconsoles, all virtserialports)
    """
    consoles = []
    serialports = []
    for port in vm.virtio_ports:
        if isinstance(port, qemu_virtio_port.VirtioSerial):
            serialports.append(port)
        else:
            consoles.append(port)
    return (consoles, serialports)