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 06/12] ia64: kexec: Repining for EFI RID

To: Simon Horman <horms@xxxxxxxxxxxx>
Subject: Re: [Xen-ia64-devel] [patch 06/12] ia64: kexec: Repining for EFI RID
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Mon, 14 Jul 2008 12:07:19 +0900
Cc: Aron Griffis <aron@xxxxxx>, Alex Williamson <alex.williamson@xxxxxx>, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 13 Jul 2008 20:07:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20080423012931.573593356@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20080423012200.632155842@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20080423012931.573593356@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
On Thu, Mar 20, 2008 at 05:52:54PM +1100, Simon Horman wrote:

> Index: xen-unstable.hg/xen/arch/ia64/xen/xenasm.S
> ===================================================================
> --- xen-unstable.hg.orig/xen/arch/ia64/xen/xenasm.S   2008-04-22 
> 11:24:46.000000000 +1000
> +++ xen-unstable.hg/xen/arch/ia64/xen/xenasm.S        2008-04-22 
> 16:56:00.000000000 +1000
> @@ -195,6 +195,193 @@ GLOBAL_ENTRY(ia64_new_rr7)
...
> +GLOBAL_ENTRY(ia64_new_rr7_efi)
...
> +     //  privregs / mapped_regs
> +     cmp.eq p7,p0=r0,in2
> +(p7) br.cond.sptk ia64_new_rr7_efi_privregs_not_mapped
> +     or loc7 = r26,loc7              // construct PA | page properties
> +     mov r22=IA64_TR_VPD
> +     mov r24=IA64_TR_MAPPED_REGS
> +     mov r23=IA64_GRANULE_SHIFT<<2
> +     ;;
> +     ptr.i   in2,r23
> +     ;;
> +     srlz.i
> +     ;;
> +     mov cr.itir=r23
> +     mov cr.ifa=in2
> +     ;;
> +     itr.i itr[r22]=loc7
> +     ;;
> +     srlz.i
> +ia64_new_rr7_efi_privregs_not_mapped:

VPD must be pinned not only by itr[], but also dtr[] too.

SDM 2.2 vol2 says that VPD must be pinned down by
both ITR and DTR.
See the pal call section, PAL_VP_REGISTER, PAL_VP_RESTORE,
PAL_VP_SAVE, PAL_VPS_RESTORE, PAL_VPS_SAVE.
It's very unintuitive to pin down by ITR.

And I think ia64_do_tlb_purge() have to purge not only dtr[],
but also itr[IA64_TR_VPD].

-- 
yamahata

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

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-ia64-devel] [patch 06/12] ia64: kexec: Repining for EFI RID, Isaku Yamahata <=