From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [PATCH] Use a table to dispatch IO requests in kvmctl Date: Wed, 10 Oct 2007 08:42:43 -0500 Message-ID: <470CD6D3.8080805@us.ibm.com> References: <11919660094186-git-send-email-aliguori@us.ibm.com> <470C7BDC.7020106@qumranet.com> <470CD298.8060704@us.ibm.com> <470CD2CD.5090903@qumranet.com> 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 , Hollis Blanchard To: Avi Kivity Return-path: In-Reply-To: <470CD2CD.5090903-atKUWr5tajBWk0Htik3J/w@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 Avi Kivity wrote: > Anthony Liguori wrote: >> Avi Kivity wrote: >>> 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. >>>> >>> >>> >>> Why not use a simple array? >>> >> >> For MMIO too? > > Yes. > >> >> QEMU uses an array for PIO but a table for MMIO. I figured it would >> be best to just use the same table. > > Or the same array? Indexed by the address or just sorted and searchable? MMIO addresses are rather sparse so the former seems like the only sane thing. It also has to support subpage granularity. Regards, Anthony Liguori ------------------------------------------------------------------------- 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/