From: Daniel Stodden Subject: Re: Does XEN use TUN/TAP interface? Date: Sun, 16 Mar 2008 18:21:51 +0100 Message-ID: <1205688111.17474.24.camel@thinkpad.localdomain> References: <73804daf0803160752h3d798739oa8ccffcbb1aa9cc2@mail.gmail.com> <1205686219.17474.7.camel@thinkpad.localdomain> <20080316171210.GA6678@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20080316171210.GA6678@redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Daniel P. Berrange" Cc: xen-devel@lists.xensource.com, Pavel Muller List-Id: xen-devel@lists.xenproject.org On Sun, 2008-03-16 at 17:12 +0000, Daniel P. Berrange wrote: > On Sun, Mar 16, 2008 at 05:50:19PM +0100, Daniel Stodden wrote: > > On Sun, 2008-03-16 at 15:52 +0100, Pavel Muller wrote: > > > Hello, > > > I want to ask if XEN use TUP/TAP interfaces or use other interface? > >=20 > > No. TUN/TAP is typically used for hosted VMs. Broadly speaking, it's > > only useful if a significant part of the VMM is running in user mode = on > > top of a native Linux, as is the case with VMware Workstation, > > VirtualBox, UserModeLinux etc. > >=20 > > Xen is a hypervisor, running below all OSes on bare hardware. The > > network virtualization is based on a Linux OS (dom0), but the guests > > aren't running on top of that, but rather as siblings on a common > > virtualization layer. >=20 > Whether it is a separate hypervisor / Dom0, or a combined HV+Dom0 is no= t > really relevant to this question. In both cases the driver backends are= =20 > in the Linux host OS and not the hypervisor itself. Using TUN/TAP is absolutely pointless if the peer is not running in userland. Because connecting userspace to a network interface is the whole point there.=20 And this is why the VMM type matters to answer the question. > > There's a dedicated interface class (vifN.M) in dom0. The purpose is > > similar, but the interplay with guests is quite a different one. >=20 > This is correct for paravirt guest or PV drivers, but is wrong for full= virt.=20 > The QEMU device model used for fullvirt guests *does* use TUN/TAP devic= es=20 > as the backend for its emulated ne2k/rtl8139 NICs. Oh, I did not think about HVM, you're right. But that is a special case which is different from most other solutions out there. regards, daniel --=20 Daniel Stodden LRR - Lehrstuhl f=C3=BCr Rechnertechnik und Rechnerorganisation Institut f=C3=BCr Informatik der TU M=C3=BCnchen D-85748 Garc= hing http://www.lrr.in.tum.de/~stodden mailto:stodden@cs.tum.edu PGP Fingerprint: F5A4 1575 4C56 E26A 0B33 3D80 457E 82AE B0D8 735B