From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: A question about virtio and KVM Date: Wed, 07 Nov 2007 09:09:25 -0800 Message-ID: <4731F145.6010803@zytor.com> References: <200711051051.35742.borntraeger@de.ibm.com> <47309D5D.7070703@qumranet.com> <200711071036.29880.borntraeger@de.ibm.com> <47318D28.2050903@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Christian Borntraeger , Ian Brown To: carsteno-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org Return-path: In-Reply-To: <47318D28.2050903-tA70FqPdS9bQT0dZR+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 Carsten Otte wrote: > Christian Borntraeger wrote: >>> It is not yet updated to latest virtio & latest kvm. >>> This version uses a pci device for virtio. Since I'm think Rusty's >>> config space does not matches >>> pci config space I might consider changing it. (Preferably not, maybe >>> I'll start using it until we'll have the windows >>> implementation). >>> I'll start work on it on Sunday. >> >> I currently try to use Rusty's config space as we dont have a PCI bus. >> Carsten told me that HPA suggested to split CONFIG_PCI in a way to use >> the hardware independent data structures without providing the hardware. >> >> Carsten do you still remember the full details? > *Shrug*. I think Peter suggested that we'd use a PCI bus type, and PCI > IDs for device identification. We're not going to use PCI to do I/O, and > we're not going to use IRQ (HPA: irq == 0 is a valid value, which means > that the PCI device does not have an irq). He suggested to look at the > virtio bus that he contributed to Rusty's lguest code as an example. Yep, that's pretty much it. Config space above 0x3F is device-specific; we can add well-known structures for virtio there is appropriate, preferrably via a PCI "capability" structure. -hpa ------------------------------------------------------------------------- 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/