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-ia64-devel

Re: [Xen-ia64-devel] RE: [Xen-ia64-full 68] Fwd: Topics to for Xen Summi

To: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Subject: Re: [Xen-ia64-devel] RE: [Xen-ia64-full 68] Fwd: Topics to for Xen Summit discussion
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Wed, 11 Jan 2006 17:45:28 +0900
Cc: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>, Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>, jean-paul.pigache@xxxxxxxx, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 11 Jan 2006 08:51:46 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <571ACEFD467F7749BC50E0A98C17CDD802C06C34@pdsmsx403>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <571ACEFD467F7749BC50E0A98C17CDD802C06C34@pdsmsx403>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Tue, Jan 10, 2006 at 03:52:36PM +0800, Tian, Kevin wrote:

> >* my implementation proposal
> >  - map xen's arch_domain::mm pte pages to dom0 virtual address space
> >    linearly with read-only protection.
> >    Since pte pages are managed by xen, I think it is reasonable for xen
> >    to handles tlb miss by dom0 on the phys2mach table area.
> >  - leave set_phys_to_machine() as nop.
> >
> >You seem to have different ideas.
> >Do you think that it is needed for dom0 to write phys2mach table directly?
> 
> No, I mostly agree with your approach on this issue with just one difference: 
> I would like to see phys2mach mapping ptes allocated within domain's 
> configured memory, instead of by Xen. Then you need to modify construct_dom0 
> and control panel to construct those ptes. Then Later Xen just constructs its 
> multi-level page tables with phys2mach table as L1 directly. By this way, 
> dom0 owns the memory and thus dom0 setups the mapping within its own range. I 
> always think dom0 has better knowledge about how allocated resource will be 
> final utilized and better to let dom0 to setup such stuff by its normal way 
> instead of Xen's supplement.
> 
> If we do this way, it's natural to let dom0 modify phys2mach table directly, 
> right?

By 'modify' do you mean that dom0 manages how to map 
phys2mach pages into the dom0 virtual address space, right?
If so, xen must verify tlb related operations by dom0 to inhibit
dom0 from writing to pte pages.

I think both proposals (yours and mine) may work well in functionality,
I'm not sure which performs better.

- Xen must verify dom0 tlb related operations to protect pte pages.
  i.e. some checks must be added to vcpu_itr_d(), ...
vs
- Xen tlb miss handler check whether fault address is in the phys2mach
  area and handles the fault specifically.
  i.e. The tlb miss handler of xen/ia64 must be modified to handle 
  tlb misses in the phys2mach area.

If I misunderstand, please correct.
-- 
yamahata

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