From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuSvx-0001Zc-R8 for qemu-devel@nongnu.org; Wed, 24 Mar 2010 11:55:53 -0400 Received: from [140.186.70.92] (port=58277 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuSvw-0001YA-11 for qemu-devel@nongnu.org; Wed, 24 Mar 2010 11:55:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuSvu-0007Oe-26 for qemu-devel@nongnu.org; Wed, 24 Mar 2010 11:55:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42854) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuSvt-0007OZ-Op for qemu-devel@nongnu.org; Wed, 24 Mar 2010 11:55:50 -0400 From: Markus Armbruster Subject: Re: [Qemu-devel] Re: [libvirt] Supporting hypervisor specific APIs in libvirt References: <4BA7C40C.2040505@codemonkey.ws> <201003241230.58160.paul@codesourcery.com> <4BAA06E0.5040004@redhat.com> <201003241303.25813.paul@codesourcery.com> Date: Wed, 24 Mar 2010 16:55:30 +0100 In-Reply-To: <201003241303.25813.paul@codesourcery.com> (Paul Brook's message of "Wed, 24 Mar 2010 13:03:25 +0000") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: "libvir-list@redhat.com" , qemu-devel@nongnu.org, Avi Kivity Paul Brook writes: >> > IMO the no_user flag is a bug, and should not exist. >> >> Sorry, what's that? > > Usually an indication that a device has been incorrectly or inproperly > converted to the qdev interface. Can also be an indication that the device can't support multiple instances. For instance: commit 39a51dfda835a75c0ebbfd92705b96e4de77f795 Author: Markus Armbruster Date: Tue Oct 27 13:52:13 2009 +0100 qdev: Tag isa-fdc, PIIX3 IDE and PIIX4 IDE as no-user These devices are created automatically, and attempting to create another one with -device fails with "qemu: hardware error: register_ioport_write: invalid opaque". Signed-off-by: Markus Armbruster Signed-off-by: Anthony Liguori With no-user, we at least fail with a decent error message. I don't think it's fair to demand that a qdev conversion must relax restrictions that haven't otherwise bothered us to be correct and proper. We'll relax them if and when they bother us enough to make somebody send a decent patch. And yes, there are better ways to disallow multiple instances of a device than declaring it no-user. Patches welcome.