Received: from eggs.gnu.org ([2001:4830:134:3::10]:60976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VW3yi-0006N7-4U for qemu-devel@nongnu.org; Tue, 15 Oct 2013 08:44:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VW3yc-0007Ez-1M for qemu-devel@nongnu.org; Tue, 15 Oct 2013 08:44:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48045) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VW3yb-0007Ek-PF for qemu-devel@nongnu.org; Tue, 15 Oct 2013 08:43:53 -0400 From: Markus Armbruster References: <1381416174-5110-1-git-send-email-armbru@redhat.com> <1381416174-5110-9-git-send-email-armbru@redhat.com> Date: Tue, 15 Oct 2013 14:43:50 +0200 In-Reply-To: <1381416174-5110-9-git-send-email-armbru@redhat.com> (armbru@redhat.com's message of "Thu, 10 Oct 2013 16:42:53 +0200") Message-ID: <87wqlehfg9.fsf_-_@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] Should the i8259 devices remain no-user? (was: [PATCH RFC 8/9] isa: Clean up use of cannot_instantiate_with_device_add_yet) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Andreas =?utf-8?Q?F=C3=A4rber?= , Anthony Liguori Paolo, or maybe Andreas, To go beyond RFC with this series, I need to explain why isa-i8259 and kvm-i8259 cannot_instantiate_with_device_add_yet, or drop that. I'd appreciate your help. Both are derived from TYPE_PIC_COMMON, which is derived from TYPE_ISA_DEVICE. I figure isa-i8259 cannot_instantiate_with_device_add_yet, because it sets global isa_pic and slave_pic. slave_pic appears to be a lame way to wire the slave PIC to the master PIC behind QOM's back. isa_pic appears to be a lame way to wire the master PIC to whatever it needs to be wired to. Is that a fair description? If yes, is it sufficient reason for cannot_instantiate_with_device_add_yet? kvm-i8259 is the same device implemented with kernel support. Does it have its own reason for cannot_instantiate_with_device_add_yet? If not, should it keep cannot_instantiate_with_device_add_yet for symmetry with isa-i8259?