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

xen-devel

[Top] [All Lists]

Re: [Xen-devel] [patch 5/5] xen: net features

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] [patch 5/5] xen: net features
From: Jody Belka <lists-xen@xxxxxxxx>
Date: Tue, 1 Feb 2005 00:48:27 +0100
Cc: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>
Delivery-date: 2005年1月31日 23:47:14 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <A95E2296287EAD4EB592B5DEEFCE0E9D123615@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <A95E2296287EAD4EB592B5DEEFCE0E9D123615@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.4i
On Mon, Jan 31, 2005 at 11:15:31PM -0000, Ian Pratt wrote:
> Please can you explain this patch and its motivation a bit more. 
>
> > Allow (1) the making of both frontend and backend vif MACs read-only
> > (independently), 
>
> I can't see why making the frontend MAC readonly can really be done
> securely within the domain.
Well, if you have module support enabled in the kernel, or some way
that lets root write to random (domain) memory, then it's not really
secure, although i think it's still a nice to have. Otherwise i would
think it should be reasonably secure?
> > (2) the addition of some xen-specific sysfs attributes
> > on front/back vifs, 
>
> What attributes?
Backend:
- xen/fe.domain: frontend domain name
- xen/fe.initial_address: initial frontend interface mac address
- xen/fe.mac_mode: mac mode of the frontend interface (r/w)
- xen/be.mac_mode: mac mode of the backend interface (r/w)
Frontend:
- xen/mac_mode: mac mode of the interface
> > (3) an option to set several vif defaults in a domain
> > config file, for ease of use when creating multiple vifs.
> Please give an example.
 vif_defaults = 'be_ext_sysfs=yes,ext_sysfs=yes,backend=eos'
 
 vif = [
 'mac=aa:00:00:01:00:00,backend=0',
 'mac=aa:00:00:01:01:00,be_mac=fe:ff:ff:01:01:ff',
 'mac=aa:00:00:01:02:00,be_mac=fe:ff:ff:01:02:ff'
 ]
which then evaluates through to this sxp
 (device
 (vif
 (mac aa:00:00:01:00:00)
 (ext_sysfs yes)
 (be_ext_sysfs yes)
 (backend 0)
 )
 )
 (device
 (vif
 (mac aa:00:00:01:01:00)
 (be_mac fe:ff:ff:01:01:ff)
 (ext_sysfs yes)
 (be_ext_sysfs yes)
 (backend eos)
 )
 )
 (device
 (vif
 (mac aa:00:00:01:02:00)
 (be_mac fe:ff:ff:01:02:ff)
 (ext_sysfs yes)
 (be_ext_sysfs yes)
 (backend eos)
 )
 )
> Thanks for all the patches!
No probs. This is the first time i've ever done any kernel-level programming.
Started out just intending to do something to allow setting the be mac address,
but then i started tracing flows through the system, and figuring out how the
code worked, and it all went from there. Been a great experience.
J
-- 
Jody Belka
knew (at) pimb (dot) org
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: RE: [Xen-devel] [patch 3/5] xen: xm/create mac selection , Ian Pratt
Next by Date: Re: [Xen-devel] [patch 3/5] xen: xm/create mac selection , Jody Belka
Previous by Thread: RE: [Xen-devel] [patch 5/5] xen: net features , Ian Pratt
Next by Thread: [Xen-devel] [patch 2/5] xen: xm/blkif ide dev-numbers , Jody Belka
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /