[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <47314FBD.1070505@qumranet.com>
Date: Wed, 07 Nov 2007 07:40:13 +0200
From: Avi Kivity <avi@...ranet.com>
To: Gregory Haskins <gregory.haskins.ml@...il.com>
CC: Anthony Liguori <aliguori@...ibm.com>,
Rusty Russell <rusty@...tcorp.com.au>,
Dor Laor <dor.laor@...ranet.com>,
virtualization@...ts.linux-foundation.org,
linux-kernel@...r.kernel.org
Subject: Re: Use of virtio device IDs
Gregory Haskins wrote:
> Anthony Liguori wrote:
>
>
>> Right now, we would have to have every PCI vendor/device ID pair in the
>> virtio PCI driver ID table for every virtio device.
>>
>
> I realize you guys are probably far down this road in the design
> process,
That doesn't mean we can't change it if it's wrong.
> but FWIW: This is a major motivation for the reason that the
> IOQ stuff I posted a while back used strings for device identification
> instead of a fixed length, centrally managed namespace like PCI
> vendor/dev-id. Then you can just name your device something reasonably
> unique (e.g. "qumranet::veth", or "ibm-pvirt-clock").
>
I dislike strings. They make it look as if you have a nice extensible
interface, where in reality you have a poorly documented interface which
leads to poor interoperability.
I prefer nice structure where you can see all the limitations immediately.
> (I realize that if you are going to do PCI, you need to make it
> PCI-like. But I think using PCI in the first place is probably the
> wrong direction. IMHO, there's really not a lot of reason to be
> constrained by a hardware specification once you decide to go PV. This
> is even more true if you want to support as many platforms as possible
> (i.e. platforms that don't have PCI natively).
>
>
PCI means that you can reuse all of the platform's infrastructure for
irq allocation, discovery, device hotplug, and management. You can
write it for new guests but backporting it to older guests will be a
huge task.
We will support non-pci for s390, but in order to support Windows and
older Linux PCI is necessary.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists