Skip to contentSkip to conversation

what's the relationship between vif*.*

help ¤終於aware 2 participants 2 messages Dec 27, 2011

lore
Share & tools
lore
#0 lore raw

thanks, you mean that only the tap device is enough for HVM domainU and the vif is specially for paravirtulization.

Quoted 8 lines · ???aware
Quoted 7 lines

Hi everyone,
A pair of network interface, vif and tap, will connect the bridge
when a vm starts. What's their relationship?
thanks for reply~

cheers
bruce

Quoted 9 lines

If I understand correctly, the vif is a virtual interface that works with pv drivers in domU. The tap is a Qemu interface that is used with HVMs that don't have pv drivers. So, if you start a HVM domU, you'll have the vif that Xen creates and the tap that Qemu creates, if pv drivers are available, then once they are loaded Domu uses them and the tap goes away, but if not then both remain, but only the tap interface is being used. Obviously, if you need more detailed explaination, then I'm of no further use.:)
Mike

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

2011/12/27 ¤終於aware <[email protected]>:

Quoted 1 line

thanks, you mean that only the tap device  is enough for HVM domainU and the

Yes, sort of.

Quoted 1 line

vif is specially for paravirtulization.

Yes, as in PV drivers, not in PV vs HVM domU.

As Mike said, HVM domU can also use PV drivers. Example: newer linux distros (which uses xen-netfront module), or windows with PV drivers (e.g. with GPLPV). In this case HVM domU also uses vif, and the tap device will be unused (and in some cases, removed).

Signature · 6 lines
Fajar

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel