
Issue 11
© Solarflare Communications 2014
317
Solarflare Server Adapter
User Guide
a. Once the VM has started, examine lspci to verify that a VF is present.
# lspci
00:08.0 Ethernet controller: Solarflare Communications Device 1803
00:09.0 Ethernet controller: Solarflare Communications Device 1803
b. The interface is only accelerated once it's brought up, after the interface is bought up use dmesg
to verify that a VF is accelerating a virtio adapter:
# dmesg | grep -i xnap
xnap 0000:00:0a.0: accelerated eth2
7.5 Configuration Red Hat 6.2
Host Network Configuration
As previously described, Solarflare SR-IOV support uses a plugin model, whereby virtual functions
accelerate virtio network adapters. These virtio network adapters are attached to the physical
network device via a macvtap interface.
XML Format for SR-IOV
A virtio interface onto a macvtap interface could be implemented using the following XML fragment:
Network XML:
<network>
<name>sfc-network</name>
<uuid> 81ff0d90-c91e-6742-64da-4a736edb9a8f</uuid>
<forward mode=
'
vepa
'
>
<interface dev=
'
eth2
'
/>
</forward>
</network>
Domain XML:
<interface type='network'>
<source network='sfc-network'/>
<mac address='00:50:56:3e:86:29'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x0a'
function='0x0'/>
</interface>
To accelerate this virtio adapter by using VFs provided by “eth2”, modify the fragment as shown using
the pci-passthrough-hybrid mode.
Network XML:
<network>