From: Olivier Galibert Subject: Re: [ANNOUNCE] Native Linux KVM tool Date: Sat, 9 Apr 2011 20:23:47 +0200 Message-ID: <20110409182347.GB27431@dspnet.fr> References: <1301592656.586.15.camel@jaguar> <4D982E89.8070502@redhat.com> <4D9847BC.9060906@redhat.com> <4D98716D.9040307@codemonkey.ws> <4D9873CD.3080207@redhat.com> <20110406093333.GB6465@elte.hu> <4D9E6F6E.9050709@codemonkey.ws> <4D9F150B.1030809@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Pekka Enberg , Ingo Molnar , Avi Kivity , linux-kernel@vger.kernel.org, aarcange@redhat.com, mtosatti@redhat.com, kvm@vger.kernel.org, joro@8bytes.org, penberg@cs.helsinki.fi, asias.hejun@gmail.com, gorcunov@gmail.com To: Anthony Liguori Return-path: Received: from dspnet.fr ([188.165.44.67]:39986 "EHLO dspnet.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750936Ab1DISXw (ORCPT ); Sat, 9 Apr 2011 14:23:52 -0400 Content-Disposition: inline In-Reply-To: <4D9F150B.1030809@codemonkey.ws> Sender: kvm-owner@vger.kernel.org List-ID: On Fri, Apr 08, 2011 at 09:00:43AM -0500, Anthony Liguori wrote: > Really, having a flat table doesn't make sense. You should just send > everything to an i440fx directly. Then the i440fx should decode what it > can, and send it to the next level, and so forth. No you shouldn't. The i440fx should merge and arbitrate the mappings and then push *direct* links to the handling functions at the top level. Mapping changes don't happen often on modern hardware, and decoding is expensive. Incidentally, you can have special handling functions which are in reality references to kernel handlers, shortcutting userspace entirely for critical ports/mmio ranges. OG.