From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQdqI-0001RG-8a for qemu-devel@nongnu.org; Thu, 20 Mar 2014 10:21:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQdq8-0003Lo-9f for qemu-devel@nongnu.org; Thu, 20 Mar 2014 10:21:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:25899) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQdq8-0003Le-1s for qemu-devel@nongnu.org; Thu, 20 Mar 2014 10:21:00 -0400 From: Stefan Hajnoczi Date: Thu, 20 Mar 2014 15:06:30 +0100 Message-Id: <1395324392-2142-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH for-2.0 0/2] dataplane: fix internal IOThread name collision List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Paolo Bonzini , Stefan Hajnoczi , Christian Borntraeger Christian Borntraeger noticed that the naming of the internal IOThread objects, which are created when the user does not specify an IOThread explicitly, can result in collisions. These patches make the IOThread object nameless so it cannot cause collisions. This is important when multiple dataplane devices are used simultaneously or the user happened to choose a colliding name. Stefan Hajnoczi (2): iothread: make IOThread struct definition public dataplane: replace iothread object_add() with embedded instance hw/block/dataplane/virtio-blk.c | 31 ++++++++++++------------------- include/sysemu/iothread.h | 12 +++++++++++- iothread.c | 11 ----------- 3 files changed, 23 insertions(+), 31 deletions(-) -- 1.8.5.3