From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJlth-0008FS-Pj for qemu-devel@nongnu.org; Thu, 04 Oct 2012 09:55:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJltd-000555-M5 for qemu-devel@nongnu.org; Thu, 04 Oct 2012 09:55:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:30702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJltd-00053p-Dl for qemu-devel@nongnu.org; Thu, 04 Oct 2012 09:55:25 -0400 Message-ID: <506D940D.7080600@redhat.com> Date: Thu, 04 Oct 2012 15:50:05 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1349270954-4657-1-git-send-email-ehabkost@redhat.com> <1349270954-4657-2-git-send-email-ehabkost@redhat.com> <877gr6jqnt.fsf@codemonkey.ws> In-Reply-To: <877gr6jqnt.fsf@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 01/18] pc: create "PC" device class List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Igor Mammedov , Gleb Natapov , Eduardo Habkost , =?ISO-8859-1?Q?Andreas_F=E4rber?= , qemu-devel@nongnu.org Il 04/10/2012 15:46, Anthony Liguori ha scritto: >> > +typedef struct PC { >> > + DeviceState parent_obj; >> > +} PC; > So the general problem with this approach is that it strays from > modeling hardware. It doesn't really; it's a motherboard object, there's no reason why /machine shouldn't be a Device itself, with a few objects (CPUs, the i440FX, the IOAPIC, and of course the peripherals) hanging off it. Paolo