[libvirt] Interface driver and ESX support

Matthias Bolte matthias.bolte at googlemail.com
Wed Sep 9 10:11:47 UTC 2009


2009/9/9 Shahar Klein <shaharklein at yahoo.com>:
> I think I understand the mechanism of the VI API
> and the way esx_vi.c is using it
> the surounding is a bit more complex for me
> so
> can you provide the framework?
> I mean
> can you put in the esx_interface_driver.c and h
> and the registration etc...
> and also putting it all into the auto make mechanism(I should learn this
> sometime...)
> I will put in the content into the functions
> for the time being I am registering the esx_driver as the interface driver
> so I can get a fill of it

Well, if you want to give it a try, here you go.

I attached a patch that adds a basic interface driver with open and
close method. The interface driver doesn't need it's own private
driver struct, it just uses the same context already opened by the
main ESX driver.

Listing the available physical NICs should be easy. You'll need to
obtain the HostSystem object and query for its config.network.pnic
property. This is a list of PhysicalNic objects. You'll need to add a
mapping for the PhysicalNic type to the esx_vi_types.[ch]. There is
plenty of examples in the current ESX driver how to do all these
things.

Matthias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: esx_interface_driver_stub.diff
Type: text/x-diff
Size: 6589 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20090909/4793e738/attachment-0001.bin>


More information about the libvir-list mailing list