search for: virtio_console_port_add

Displaying 6 results from an estimated 6 matches for "virtio_console_port_add".

2014 Dec 01
0
[PATCH v8 47/50] virtio_console: virtio 1.0 support
...) { struct virtio_console_control *cpkt; @@ -1612,15 +1613,16 @@ static void handle_control_message(struct ports_device *portdev, cpkt = (struct virtio_console_control *)(buf->buf + buf->offset); - port = find_port_by_id(portdev, cpkt->id); - if (!port && cpkt->event != VIRTIO_CONSOLE_PORT_ADD) { + port = find_port_by_id(portdev, virtio32_to_cpu(vdev, cpkt->id)); + if (!port && + cpkt->event != cpu_to_virtio16(vdev, VIRTIO_CONSOLE_PORT_ADD)) { /* No valid header at start of buffer. Drop it. */ dev_dbg(&portdev->vdev->dev, "Invalid index %u in c...
2014 Dec 01
0
[PATCH v8 47/50] virtio_console: virtio 1.0 support
...) { struct virtio_console_control *cpkt; @@ -1612,15 +1613,16 @@ static void handle_control_message(struct ports_device *portdev, cpkt = (struct virtio_console_control *)(buf->buf + buf->offset); - port = find_port_by_id(portdev, cpkt->id); - if (!port && cpkt->event != VIRTIO_CONSOLE_PORT_ADD) { + port = find_port_by_id(portdev, virtio32_to_cpu(vdev, cpkt->id)); + if (!port && + cpkt->event != cpu_to_virtio16(vdev, VIRTIO_CONSOLE_PORT_ADD)) { /* No valid header at start of buffer. Drop it. */ dev_dbg(&portdev->vdev->dev, "Invalid index %u in c...
2010 Apr 16
0
Update virtio spec with new virtio console ABI information
...ur that bumps up the value of nr_ports. In this case, ports are hot-added. +\change_inserted 0 1271400879 + +\end_layout + +\begin_layout Enumerate + +\change_inserted 0 1271401808 +If the driver negotiated the VIRTIO_CONSOLE_F_MULTIPORT feature, active + ports are announced by the host using the VIRTIO_CONSOLE_PORT_ADD control + message. + The same message is used for port hot-plug as well. +\end_layout + +\begin_layout Enumerate + +\change_inserted 0 1271401905 +If the host specified a port 'name', a sysfs attribute is created with the + name filled in, so that udev rules can be written that can create a...
2010 Apr 16
0
Update virtio spec with new virtio console ABI information
...ur that bumps up the value of nr_ports. In this case, ports are hot-added. +\change_inserted 0 1271400879 + +\end_layout + +\begin_layout Enumerate + +\change_inserted 0 1271401808 +If the driver negotiated the VIRTIO_CONSOLE_F_MULTIPORT feature, active + ports are announced by the host using the VIRTIO_CONSOLE_PORT_ADD control + message. + The same message is used for port hot-plug as well. +\end_layout + +\begin_layout Enumerate + +\change_inserted 0 1271401905 +If the host specified a port 'name', a sysfs attribute is created with the + name filled in, so that udev rules can be written that can create a...
2010 Mar 23
0
[PATCH 09/11] virtio: console: Don't always create a port 0 if using multiport
...console to come up. + */ + if (early_put_chars) + early_put_chars = NULL; + /* Notify host of port being opened */ send_control_msg(port, VIRTIO_CONSOLE_PORT_OPEN, 1); @@ -1056,14 +1063,8 @@ static void handle_control_message(struct ports_device *portdev, switch (cpkt->event) { case VIRTIO_CONSOLE_PORT_ADD: if (port) { - /* - * This can happen for port 0: we have to - * create a console port during probe() as was - * the behaviour before the MULTIPORT feature. - * On a newer host, when the host tells us - * that a port 0 is available, we should just - * say we have the port all...
2010 Mar 23
0
[PATCH 09/11] virtio: console: Don't always create a port 0 if using multiport
...console to come up. + */ + if (early_put_chars) + early_put_chars = NULL; + /* Notify host of port being opened */ send_control_msg(port, VIRTIO_CONSOLE_PORT_OPEN, 1); @@ -1056,14 +1063,8 @@ static void handle_control_message(struct ports_device *portdev, switch (cpkt->event) { case VIRTIO_CONSOLE_PORT_ADD: if (port) { - /* - * This can happen for port 0: we have to - * create a console port during probe() as was - * the behaviour before the MULTIPORT feature. - * On a newer host, when the host tells us - * that a port 0 is available, we should just - * say we have the port all...