|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [RFC] dataplane: IOThreads and writing dataplane-capable code |
Date: | Thu, 08 May 2014 14:12:06 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
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=<name>) 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
[Prev in Thread] | Current Thread | [Next in Thread] |