Received: from eggs.gnu.org ([2001:4830:134:3::10]:50382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEvd0-0008Ks-Lq for qemu-devel@nongnu.org; Wed, 06 Aug 2014 03:27:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEvcp-0000iQ-Up for qemu-devel@nongnu.org; Wed, 06 Aug 2014 03:27:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEvcp-0000iL-Ne for qemu-devel@nongnu.org; Wed, 06 Aug 2014 03:27:07 -0400 From: Markus Armbruster References: Date: Wed, 06 Aug 2014 09:27:04 +0200 In-Reply-To: (Amit Shah's message of "Wed, 16 Jul 2014 17:01:02 +0530") Message-ID: <8738dayt6f.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [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: Amit Shah Cc: Amos Kong , qemu list , Andreas =?utf-8?Q?F=C3=A4rber?= Amit Shah writes: > 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. No advice from Andreas on better ways to iterate over devices, yet (vacation time?). If there is one, we can always use it on top. Reviewed-by: Markus Armbruster