From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiNBW-0000CP-A5 for qemu-devel@nongnu.org; Thu, 08 May 2014 08:12:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WiNBL-0001IH-M0 for qemu-devel@nongnu.org; Thu, 08 May 2014 08:12:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:2514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiNBL-0001Ho-EY for qemu-devel@nongnu.org; Thu, 08 May 2014 08:12:11 -0400 Message-ID: <536B7496.6030903@redhat.com> Date: Thu, 08 May 2014 14:12:06 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <20140508101655.GA7534@stefanha-thinkpad.redhat.com> <20140508113335.GA21899@T430.nay.redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC] dataplane: IOThreads and writing dataplane-capable code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi , Fam Zheng Cc: Kevin Wolf , qemu-devel , Stefan Hajnoczi , Max Reitz Il 08/05/2014 13:56, Stefan Hajnoczi ha scritto: >> > Is dataplane the only user for this now? > Yes, and neither dataplane (x-data-plane=on) nor IOThread (-object > iothread,id=) are finalized. > > There was a discussion about -object and QOM on the mailing list a > while back. We reached the conclusion that -object shouldn't be a > supported command-line interface, it should be used for testing, > development, etc. So an -iothread option still needs to be added. Actually I think that wasn't the conclusion. "-object" is a supported command-line interface; we also support hotplug/unplug nowadays for it, and the implementation makes QMP entirely typesafe unlike netdev_add and device_add. We're using it for iothreads and virtio-rng backends, and we'll add memory backends in 2.1. However, the agreement was that "QMP methods" are the preferred interface to work with objects. Properties and qom-get/qom-set are not the way to build a command-line interface. Paolo