From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=40915 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OODpi-0002aT-Fk for qemu-devel@nongnu.org; Mon, 14 Jun 2010 13:52:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OODph-0000Fi-GR for qemu-devel@nongnu.org; Mon, 14 Jun 2010 13:52:26 -0400 Received: from mail-pv0-f173.google.com ([74.125.83.173]:57388) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OODph-0000Fd-C9 for qemu-devel@nongnu.org; Mon, 14 Jun 2010 13:52:25 -0400 Received: by pvg11 with SMTP id 11so1383865pvg.4 for ; Mon, 14 Jun 2010 10:52:24 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Blue Swirl Date: Mon, 14 Jun 2010 17:52:04 +0000 Message-ID: Subject: Re: [Qemu-devel] [PATCH v2 7/7] apic: qdev conversion cleanup Content-Type: text/plain; charset=UTF-8 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-devel On Mon, Jun 14, 2010 at 9:36 AM, Markus Armbruster wrote: > Blue Swirl writes: > >> Make APICState completely private to apic.c by using DeviceState >> in external APIs. > > Could you explain why this is an improvement? Outside of apic.c, there is no need to access APICState fields so we can remove that privilege. We can move the device instantiation to the board level where it belongs.