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: cache flush

To: "Tian, Kevin" <kevin.tian@xxxxxxxxx>, <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>, "Magenheimer, Dan \(HP Labs Fort Collins\)" <dan.magenheimer@xxxxxx>, "Alex Williamson" <alex.williamson@xxxxxx>
Subject: Re: [Xen-ia64-devel] PATCH: cache flush
From: Tristan Gingold <Tristan.Gingold@xxxxxxxx>
Date: Tue, 4 Apr 2006 08:46:31 +0100
Delivery-date: Tue, 04 Apr 2006 00:42:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <571ACEFD467F7749BC50E0A98C17CDD8094E7A6F@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: <571ACEFD467F7749BC50E0A98C17CDD8094E7A6F@pdsmsx403>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.5
Le Mardi 04 Avril 2006 09:13, Tian, Kevin a écrit :
> From: Tristan Gingold
>
> >Sent: 2006年3月31日 23:28
> >To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx; Magenheimer, Dan (HP Labs
> >Fort Collins); Alex Williamson
> >Subject: [Xen-ia64-devel] PATCH: cache flush
> >
> >Hi,
> >
> >this implements sal_cache_flush using fc/fc.i
> >
> >Tested by compilation + boot+halt of dom0+domU with SMP-g.
> >
> >Tristan.
>
> One small question. Why do you check upon '4' in sal emulation?
>
> +             /*  The best we can do is to flush with fc all the domain.  */
> +             domain_cache_flush (current->domain, in1 == 4 ? 1 : 0);
> +             status = 0;
>
> Is it the parameter pass convention? From the SAL spec, 1 for instruction
> cache, 2 for data cache and 3 for both. Seems I missed something here.
According to my spec, 4 is for synchronizing I and D cache.
Therefore I use fc for 1,2,3 and fc.i for 4.

> You may also want to add similar emulation for PAL_CACHE_FLUSH,
> though it won't be hit especially after applying Alex's patch. But it never
> hurts to add for safety. :-)
I will add this to my todo list.

BTW, my current implementation makes CACHE_FLUSH uninterruptible.  Should we 
improve that ?

Tristan.



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

<Prev in Thread] Current Thread [Next in Thread>