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] problem with netfront.c

To: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] problem with netfront.c
From: "Ling, Xiaofeng" <xiaofeng.ling@xxxxxxxxx>
Date: Sun, 3 Apr 2005 23:00:32 +0800
Delivery-date: Sun, 03 Apr 2005 14:58:38 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcU39PebD2/thBv+Rdms3itvtFiuwQAPExGgAAL3ilAAA/XnwAADDtQw
Thread-topic: [Xen-devel] problem with netfront.c

Ian Pratt <mailto:m+Ian.Pratt@xxxxxxxxxxxx> wrote:
>> Yes, but does it still need hypervisor to modify the phys_to_machine
>> table? I just hope to save some page faults or tlb flush vmexit to
>> get high performance and also have less modification to the
>> original netfront.c. So still only one multicall needed each
>> time when gets a net event.
> 
> The netfront/backdriver driver needs to be switched over to using the
> grant tables interface.
> 
> Chris Clark has already checked in the grant tables implementation,
> but no-one has got around to updating netfront/back to use it. There
> are patches to switch blkfront/back over to use grant tables, which
> will be checked in soon, but since the blk driver use the foreign
> access rather than the page transfer mechanism its probably not too
> much help. 
> 
> Using grant tables, the front end doesn't need to know about machine
> addresses, and the whole thing ends up rather cleaner, particulary for
> domains running with virtualized VMs.
Yes, there do have security problem to use machine address in netfront.
I'm originally  thinking that we can pass virtual address to backend through 
the ring buffer and let the backend to set the mapping for the frontend. 
I've already done a blkfront module driver in unmodified linux with an event 
channel channel  and ctrlif module driver. I'll wait for the new blkfront with 
grant table. For netfront, if no one has worked on the grant table update,
I can do it together.


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