Received: from [140.186.70.92] (port=47382 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P60kB-0001cc-Or for qemu-devel@nongnu.org; Wed, 13 Oct 2010 08:47:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P60kA-0000L8-75 for qemu-devel@nongnu.org; Wed, 13 Oct 2010 08:47:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P60k9-0000L1-W9 for qemu-devel@nongnu.org; Wed, 13 Oct 2010 08:47:42 -0400 Date: Wed, 13 Oct 2010 13:47:38 +0100 From: "Richard W.M. Jones" Message-ID: <20101013124738.GJ11277@amd.home.annexia.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] Re: qdev: Some ISA devices don't handle second instantiation gracefully (was: isa-applesmc doesn't handle second instantiation gracefully) List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-devel@nongnu.org, "H. Peter Anvin" , Alexander Graf , Gerd Hoffmann On Tue, Oct 12, 2010 at 03:00:13PM +0200, Markus Armbruster wrote: > Markus Armbruster writes: > > > When I try -device isa-applesmc -device isa-applesmc, I get > > > > WARNING: Using AppleSMC with invalid key > > qemu: hardware error: register_ioport_read: invalid opaque > > [...] > > > > and a core dump. > > > > I know nothing about this device. Instantiating twice may well make no > > sense. But hw_error() is not a nice way to reject a command line > > option. > > Actually, ib700 and isa-debugcon fail the same way. I will just comment that ib700 should not be instantiated twice. It lives at a fixed IO address, so it wouldn't make sense even for a real machine (nevermind that having two watchdogs would be useless). Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://et.redhat.com/~rjones/libguestfs/ See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html