[libvirt] RFC: setting mac address on network devices being assigned to a guest via PCI passthrough (<hostdev>)

Paolo Bonzini pbonzini at redhat.com
Mon Jan 23 18:08:45 UTC 2012


Hit send too soon... a couple more observations.

On 01/23/2012 05:12 PM, Laine Stump wrote:
> (Note that even with *no new XML*, we already have a problem where just
> scanning all the <hostdev> entries won't tell us about all host devices
> that are currently assigned exclusively to guests - using a network
> device via macvtap in passthrough mode is effectively the same (although
> it's not directly exposed to the guest as the original PCI device, that
> device isn't available for use by any other guest, or by the host)).

FWIW, that's also true with <disk device="lun">.

>>> Step 2
>>> ------
>>>
>>> Once the basic functionality is in place, a further step would be one
>>> just to simplify the admins job - we could do this by replacing this
>>> config:
>>>
>>> | <source>
>>> | <address bus='x' slot='y' function='z'/>
>>> | </source>
>>>
>>> with:
>>>
>>> | <source>
>>> | <address netdev='eth22'/>
>>> | </source>
>>
>> <devices>
>> <interface type='hostdev'>
>> <source dev='eth22'/>
>> <address type='pci' .../>
>
> (NB: the <address type='pci'.../> you show here is used to configure the
> address on the guest, not on the host)

Yes, of course, as it's outside <source>.  That could have been made 
clearer. :)

Paolo




More information about the libvir-list mailing list