Hi, The 2nd patch prevents adding ports to the system with conflicts in the 'name' parameter. This is done by going through all the ports in the system, including ports on other virtio-serial devices.
The first patch prepares for this by creating a linked list of all available virtio-serial devices, so they can be walked over to check their ports' names. Please review. Amit Shah (2): virtio-serial: create a linked list of all active devices virtio-serial: search for duplicate port names before adding new ports hw/char/virtio-serial-bus.c | 32 ++++++++++++++++++++++++++++++++ include/hw/virtio/virtio-serial.h | 2 ++ 2 files changed, 34 insertions(+) -- 1.9.3