On 08/06/2012 03:18 PM, Ata Bohra wrote:
After reading Matthias' explanation, I was left wondering exactly what is the purpose of a hostVirtualNic. Is it used to give the hypervisor a connection to the hostVirtualSwitch? If so, that's something that's implied in libvirt's networks when they have an IP address defined - the presence of an IP address for the network is really indicating that there's a connection up to the host's (aka hypervisor) IP stack. (this is a legacy of the design of Linux host bridges - I think of there being an "implied port" on the bridge that is connected to the host kernel if the bridge has an IP address.)
Not to mention that your patches were the catalyst that started the discussion and investigation by Matthias. So likely without your initiative, it would have been quite some time longer before these features were supported for ESX in libvirt.
(Also, you now know a bit about the internals of libvirt, so maybe we can expect more patches in the future :-)