[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-ia64-devel] [PATCH] tlb miss handler


  • To: "Isaku Yamahata" <yamahata@xxxxxxxxxxxxx>
  • From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
  • Date: Tue, 21 Feb 2006 10:51:06 +0800
  • Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 21 Feb 2006 03:04:08 +0000
  • List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
  • Thread-index: AcY2iW5xpwPMjZn3QVa1i5IyWfb54AABvN8A
  • Thread-topic: [Xen-ia64-devel] [PATCH] tlb miss handler

>From: Isaku Yamahata [mailto:yamahata@xxxxxxxxxxxxx]
>Sent: 2006年2月21日 9:48
>
>
>On Mon, Feb 20, 2006 at 11:35:02PM +0800, Tian, Kevin wrote:
>> - "alt itlb miss by a guest must be handled"
>>      Dom0 runs from the very start with vhpt enabled in all regions. There 
>> should be
>no alt itlb miss raised from dom0.
>
>I thought that dom0 alt itlb miss was intentional because of
>the explicit region register initial values.
>It is inconsistent that only dom0 boot time is special.
>I agree that it is reasonable to modify dom0 start up environment.

Yes current initial rr7 is set with vhpt disabled when dom0 starts to run, 
however this region 7 won't be touched since dom0 is still in metaphysical mode 
and then only region 0/4 is the case there. When dom0 wants to switch to 
virtual mode, move_to_rr will finally falls into set_one_rr and then all 
regions will have vhpt enabled. So even under this case, alt_itlb_miss won't 
happen from dom0.

I think we should modify the initial setting to have all regions vhpt enabled, 
though nothing affected compared to current behavior.

>
>
>>      * Why did you only handle cacheable (meant 0xf000....) area by identity 
>> mapping,
>whole leaving uncacheable (meant 0xe8000...) area to page_fault? That would low
>down the performance a lot.
>
>Misses on the uncacheable area is handled.
>page_fault() and ia64_do_page_fault() doesn't handle misses on the area.
>If it wasn't handled by dltb miss handler, misses on the area would result
>in dtlb miss/rfi infinite loop.
>

Yes, you're right. This patch is definitely necessary for correctness, and need 
consideration for incorporation after some render.

Thanks,
Kevin

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.