From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=52891 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OnQ72-0003yt-1u for qemu-devel@nongnu.org; Mon, 23 Aug 2010 02:03:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OnPtY-0002PE-8T for qemu-devel@nongnu.org; Mon, 23 Aug 2010 01:48:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23781) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnPtX-0002P8-VX for qemu-devel@nongnu.org; Mon, 23 Aug 2010 01:48:32 -0400 Message-ID: <4C720BA2.9000906@redhat.com> Date: Mon, 23 Aug 2010 08:48:18 +0300 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH v2 0/7] APIC/IOAPIC cleanup References: <4C6D86F9.3010602@codemonkey.ws> <4C6D98E7.9020109@codemonkey.ws> <4C70EFC9.2050404@redhat.com> <4C7171EB.7090301@codemonkey.ws> <4C717E05.50609@redhat.com> <4C7191A7.8030700@codemonkey.ws> In-Reply-To: <4C7191A7.8030700@codemonkey.ws> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Blue Swirl , "Liu >> \"Liu, Jinsong\"" , qemu-devel , Paul Brook On 08/23/2010 12:07 AM, Anthony Liguori wrote: > On 08/22/2010 02:44 PM, Avi Kivity wrote: >>> No more MI diamond and all devices have DeviceStates. >>> Coincidentally, it matches more closely how hardware works.. >>> >> >> >> Well, I agree, but I honestly lost the context. How does this relate >> to the APIC and cpu hotplug? >> >> I'll take the opportunity to say that we should be using a language >> that has first-class (...) support for these concepts instead of >> having to divine them from the code. > > At the risk of sounding uncool, I think what we really need is a UML > diagram describing the device tree. It's really not that much more > difficult to create a similar mess in C++. > That's fine near a whiteboard with some airspace for handwaving. Doesn't work well through patches and email. The advantage of better language support is that it's easier to resurrect the model from the code; it doesn't give you a better or worse model by itself. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.