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][PATCH]Build new infrastructure for fast fault handl

To: "Isaku Yamahata" <yamahata@xxxxxxxxxxxxx>
Subject: RE: [Xen-ia64-devel][PATCH]Build new infrastructure for fast fault handling path.
From: "Xu, Anthony" <anthony.xu@xxxxxxxxx>
Date: Fri, 9 May 2008 11:23:25 +0800
Cc: Alex Williamson <alex.williamson@xxxxxx>, xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 08 May 2008 20:23:59 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080508120908.GH23162%yamahata@xxxxxxxxxxxxx>
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: <51CFAB8CB6883745AE7B93B3E084EBE201B733D4@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20080508120908.GH23162%yamahata@xxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcixBFmNsMOH3TxHRKqtV1ooXIzP7gAfo05Q
Thread-topic: [Xen-ia64-devel][PATCH]Build new infrastructure for fast fault handling path.
Hi Isaku,
Thanks for your comments
This is updated one according to your comments except for belows.

>> +GLOBAL_ENTRY(ia64_leave_hypervisor_virt)
>> +    PT_REGS_UNWIND_INFO(0)
> 
> Is this correct? I'm just asking just to make it sure.
> To be honest I have to dig into the related specifications.
> But the register save/restore convention of VMX_VIRT_SAVE() is
> different from the one of DO_SAVE_MIN(). So some twist to
> the stack unwinder is necessary, isn't it?

Good catch,  unwinder is not expected in fast path( show_register
doesn't work in thispath). So I simply remove it.




>> diff -r f2457c7aff8d xen/arch/ia64/vmx/vmx_phy_mode.c
>> --- a/xen/arch/ia64/vmx/vmx_phy_mode.c       Fri Apr 25 20:13:52 2008
+0900
>> +++ b/xen/arch/ia64/vmx/vmx_phy_mode.c       Thu May 08 16:23:42 2008
+0800
>> @@ -252,8 +252,8 @@ switch_mm_mode(VCPU *vcpu, IA64_PSR old_
>>          switch_to_virtual_rid(vcpu);
>>          break;
>>      case SW_SELF:
>> -        printk("Switch to self-0x%lx!!! MM mode doesn't
>> change...\n", 
>> -            old_psr.val);
>> +//        printk("Switch to self-0x%lx!!! MM mode doesn't
>>          change...\n", +//            old_psr.val); break;
>>      case SW_NOP:
>>  //        printk("No action required for mode transition: (0x%lx ->
>> 0x%lx)\n", 
> 
> What's the purpose here.
> Anyway if you want this part, please create another patch.
> 


Switch_mm_mode is called in fast path, since printk accesses PIO, it may
trigger TLB fault, which can't be handled in fast path, due to psr.ic=0.


Thanks,
Anthony

Attachment: 20080509.patch
Description: 20080509.patch

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