WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] HVM guest sees two NICs even though just one vif configu

To: "Fischer, Anna" <anna.fischer@xxxxxx>
Subject: RE: [Xen-devel] HVM guest sees two NICs even though just one vif configured
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Mon, 10 Aug 2009 16:02:45 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Keir Fraser <Keir.Fraser@xxxxxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Delivery-date: Mon, 10 Aug 2009 08:03:16 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <0199E0D51A61344794750DC57738F58E6D6A5011FF@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Newsgroups: chiark.mail.xen.devel
References: <0199E0D51A61344794750DC57738F58E6D6A5011FF@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C6A07C29.117D8%keir.fraser@xxxxxxxxxxxxx> <0199E0D51A61344794750DC57738F58E6D6A50123A@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <0199E0D51A61344794750DC57738F58E6D6A501125@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C6A06C22.1173D%keir.fraser@xxxxxxxxxxxxx> <0199E0D51A61344794750DC57738F58E6D6A5011AE@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <alpine.DEB.2.00.0908061202310.7746@kaball-desktop>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Fischer, Anna writes ("RE: [Xen-devel] HVM guest sees two NICs even though just 
one vif configured"):
> I am not too confident with having to rely on the guest to make such
> a disconnect happen. Is there no way to do this in Xen/Dom0?

>From a security point of view, you should tread both virtual
interfaces the same way - as controlled by the (untrusted) guest.  If
you do that it won't matter which interface the guest uses or even if
it is confused and uses both.

Fischer, Anna writes ("RE: [Xen-devel] HVM guest sees two NICs even though just 
one vif configured"):
> Yes, I understand that. But at least on the backend side, shouldn't
> there only be a single device associated with the guest if I
> configured a single NIC for my guest?

No, because that's not the way it's implemented.  Because of the
possibility of both HVM emulation, and PV drivers, it is necessary to
do some multiplexing.  Rather than write our own custom multiplexer
(which would, ultimately, be a kind of braindead ethernet switch) we
chose to use the dom0's kernel which already has all the necessary
functionality.  I think this is a sensible design decision.

>  Because otherwise, how do I know which one is active if the guest
> can switch back and forth between them?

You need to treat both as potentially active.

> I don't think that having the two devices in Dom0 is
> an ideal solution for other management components on the system.

>From the point of view of management tools, this situation is little
different to the guest having two network interfaces for redundancy,
with automatic failover.

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel