From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7NRB-0005YH-HY for qemu-devel@nongnu.org; Wed, 16 Jul 2014 07:32:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7NR3-0005W6-WA for qemu-devel@nongnu.org; Wed, 16 Jul 2014 07:31:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:7493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7NR3-0005Vz-OZ for qemu-devel@nongnu.org; Wed, 16 Jul 2014 07:31:45 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s6GBVikU004157 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 16 Jul 2014 07:31:45 -0400 From: Amit Shah Date: Wed, 16 Jul 2014 17:01:02 +0530 Message-Id: Subject: [Qemu-devel] [PATCH 0/2] virtio-serial: Prevent addition of ports with same name List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu list Cc: Amit Shah , Amos Kong , Markus Armbruster 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