Lines Matching full:serial
2 * A bus for connecting virtio serial and console ports
32 #include "hw/virtio/virtio-serial.h"
370 error_report("virtio-serial-bus: Guest failure in adding device %s", in handle_control_message()
386 error_report("virtio-serial-bus: Unexpected port id %u for device %s", in handle_control_message()
398 error_report("virtio-serial-bus: Guest failure in adding port %u for device %s", in handle_control_message()
521 * Users of virtio-serial would like to know when guest becomes in handle_input()
577 vser->serial.max_virtserial_ports); in get_config()
679 max_nr_ports = s->serial.max_virtserial_ports; in virtio_serial_save_device()
813 max_nr_ports = s->serial.max_virtserial_ports; in virtio_serial_load_device()
873 max_nr_ports = vser->serial.max_virtserial_ports; in find_free_port_id()
951 error_setg(errp, "virtio-serial-bus: A port already exists at id %u", in virtser_port_device_realize()
957 error_setg(errp, "virtio-serial-bus: A port already exists by name %s", in virtser_port_device_realize()
968 error_setg(errp, "virtio-serial-bus: Maximum port limit for " in virtser_port_device_realize()
975 max_nr_ports = port->vser->serial.max_virtserial_ports; in virtser_port_device_realize()
977 error_setg(errp, "virtio-serial-bus: Out-of-range port id specified, " in virtser_port_device_realize()
1030 if (!vser->serial.max_virtserial_ports) { in virtio_serial_device_realize()
1031 error_setg(errp, "Maximum number of serial ports not specified"); in virtio_serial_device_realize()
1038 if (vser->serial.max_virtserial_ports > max_supported_ports) { in virtio_serial_device_realize()
1049 /* Spawn a new virtio-serial bus on which the ports will ride as devices */ in virtio_serial_device_realize()
1056 vser->bus.max_nr_ports = vser->serial.max_virtserial_ports; in virtio_serial_device_realize()
1057 vser->ivqs = g_new(VirtQueue *, vser->serial.max_virtserial_ports); in virtio_serial_device_realize()
1058 vser->ovqs = g_new(VirtQueue *, vser->serial.max_virtserial_ports); in virtio_serial_device_realize()
1083 vser->ports_map = g_malloc0((DIV_ROUND_UP(vser->serial.max_virtserial_ports, 32)) in virtio_serial_device_realize()
1157 DEFINE_PROP_UINT32("max_ports", VirtIOSerial, serial.max_virtserial_ports,