Hi Daniel -
I have an implementation underway right now, with both HAL- and
Devkit-based "drivers". We have some folks who need this *next week*,
so I'm trying to get the most functionality finished up today and this
weekend.
The generic (HAL/Devkit-agnostic) framework is essentially done and
tested (except for a few odds and ends like some missing virsh fns).
The HAL-based driver is ~80% done. The Devkit-based driver isn't very
capable yet, mostly because of the limited Devkit functionality
available (also, there are some serious naming issues to discuss).
I haven't yet implemented virNodeDevice{Create,Destroy}, nor am I
registering for HAL/Devkit events. We don't need this functionality
right away, so I may wait 'til next week to implement them. The
underlying virNodeDevice infrastructure is ref-counted and accessed via
a conn->lock-protected virHashTable (like connections, domains, etc.),
so concurrent access shouldn't be a problem.
I'll post a patch (with some TODOs ...) on Sunday or Monday morning.
Dave
On Fri, 2008-09-26 at 14:15 +0100, Daniel P. Berrange wrote:
On Thu, Aug 21, 2008 at 03:18:57PM -0400, David Lively wrote:
> Hi -
>
> I'm about to start working on host device enumeration, along the
> (HAL-ish) lines of what was discussed back in April:
>
https://www.redhat.com/archives/libvir-list/2008-April/msg00005.html
>
> I know the xml details haven't been fully fleshed out, but there seems
> to be agreement that it will be a fairly direct mapping from (a subset
> of the) HAL info to the details that we need in the xml. Doubtless it
> will take a while to figure out exactly what subset suffices (and, for
> that matter, if everything needed is available via HAL ...), but I think
> the work is well-defined for some of the obvious details (discussed in
> the above thread) on which there's broad agreement.
>
> Is anyone working on such an implementation?
Did you ever start any work on this project ? The oVirt guys really want
this done asap, so if you've not started on it, or have a partial start
to work from, I plan to make time to look at it next week
Regards,
Daniel