From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hollis Blanchard Subject: Re: [PATCH] Use a table to dispatch IO requests in kvmctl Date: Tue, 09 Oct 2007 23:46:15 -0700 Message-ID: <1191998775.16235.44.camel@basalt> References: <11919660094186-git-send-email-aliguori@us.ibm.com> Reply-To: Hollis Blanchard Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Jerone Young , Avi Kivity To: Anthony Liguori Return-path: In-Reply-To: <11919660094186-git-send-email-aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org On Tue, 2007-10-09 at 16:40 -0500, Anthony Liguori wrote: > This patch attempts to clean up kvmctl so that it can be more easily made to > work for multiple architectures and to support more emulation. > > It introduces a io dispatch mechanism. This mechanism supports subpage > granularity but is optimized to efficiently cover regions of pages too. It's > a 64-bit address space that's structured as a 5-level table. > For x86, we'll have two tables, a pio_table and an mmio_table. For PPC we can > just have a single table. The IO functions can support accesses of up to 8 > bytes and can handle input/output in the same function. > > I tried to keep this nice and simple so as to not add too much complexity to > kvmctl. I'm having a hard time seeing how this range stuff is useful. Other than that, a 5-level table sounds like overcomplicating something where a plain old hash table would do just fine, but it's only one function so I guess I can't complain much. -- Hollis Blanchard IBM Linux Technology Center ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/