From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=55209 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwVKd-0005QJ-Jl for qemu-devel@nongnu.org; Mon, 07 Mar 2011 02:58:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwVKc-00065E-BZ for qemu-devel@nongnu.org; Mon, 07 Mar 2011 02:58:19 -0500 Received: from fmmailgate01.web.de ([217.72.192.221]:54819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PwVKb-000655-Pe for qemu-devel@nongnu.org; Mon, 07 Mar 2011 02:58:18 -0500 Message-ID: <4D74900C.90408@web.de> Date: Mon, 07 Mar 2011 08:58:04 +0100 From: Jan Kiszka MIME-Version: 1.0 References: <4D73B6CA.8070000@codemonkey.ws> <4D73C8CE.6080800@codemonkey.ws> <4D73CD43.1010004@web.de> <4D73F272.50105@codemonkey.ws> <4D73FA15.8090107@web.de> <4D742780.1050000@codemonkey.ws> In-Reply-To: <4D742780.1050000@codemonkey.ws> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig553EFE0F39A480A470F6DB1D" Sender: jan.kiszka@web.de Subject: [Qemu-devel] Re: [PATCH 4/4] i8254: convert to qdev List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Blue Swirl , qemu-devel This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig553EFE0F39A480A470F6DB1D Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 2011-03-07 01:32, Anthony Liguori wrote: > On 03/06/2011 03:18 PM, Jan Kiszka wrote: >>> It's far from academic as this is user-visible and visible via the >>> command line. >>> =20 >> I thought it was stated before that there is no guarantee on the >> internal structure of our device tree as the user may explore it (as >> long as it's stable for the guest). >=20 > We have a lot of "unstable" interfaces that folks yell about every time= > it changes (like the -help output). Providing a bad external interface= > and justifying by saying its unstable is just asking for pain later. This is really a "harmless", mostly read-only interface we are discussing here. >=20 >> Regarding command line: What are >> your worries here? The user can't mess with built-in devices. >> =20 >=20 > -global still applies to no_user devices. Already tried "-global isa-pit.iobase=3D0x4711"? -global changes property= defaults, not directly their values. >=20 >> I still think we have more important things to improve than these >> cosmetic issues. >> =20 >=20 > What does converting this device to qdev actually add other than an > interface that we're not going to be able to support long term? This device is probably no big deal. But generally those conversions help to clean up or at least uncover twisted dependencies between devices. They are surely a step in the right direction as everything that follows qdev will have to improve it evolutionary (we can't effort a third device model in qemu), so will be able to build on top. The major issues I see when looking at more complex devices, specifically in the x86 world: - IRQ/GPIO binding should become a generic qdev service instead of a sysbus bonus (and its interface should be improved). - Buses may benefit from generic IRQ management as well. - We need a generic connector between devices, maybe multi-bus binding (e.g. to bind the IOAPIC both to the sysbus and the inter-processor bus), maybe PROP_TYPE_BUS that could be set via qtree path or alternatively a plain pointer. That should obsolete PROP_TYPE_PTR. And there are likely thousand things in the qdev model that could be made simpler, more handy to use. Jan --------------enig553EFE0F39A480A470F6DB1D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk10kBEACgkQitSsb3rl5xRyxQCgq+q4YHtbApxL/RdevxHpyOmn R20AoN1uHY/hlfI5F2/N3deh9Zlt2i17 =qecK -----END PGP SIGNATURE----- --------------enig553EFE0F39A480A470F6DB1D--