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]Guarantee VTi guest can get correct frequenc

To: "Zhang, Xiantao" <xiantao.zhang@xxxxxxxxx>
Subject: Re: [Xen-ia64-devel] [PATCH]Guarantee VTi guest can get correct frequency base
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Mon, 06 Mar 2006 08:26:26 -0700
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 06 Mar 2006 15:26:58 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <9FBCE015AF479F46B3B410499F3AE05B169FB2@pdsmsx405>
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>
Organization: LOSL
References: <9FBCE015AF479F46B3B410499F3AE05B169FB2@pdsmsx405>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Mon, 2006-03-06 at 16:19 +0800, Zhang, Xiantao wrote:

>      PAL_CALL(result,PAL_FREQ_BASE, 0, 0, 0);
> +    if(result.v0 == 0){
> //PAL_FREQ_BASE may not be implemented in some platforms, call SAL
> instead.

   Should this be checking result.status == -1 (unimplemented)?

> +        SAL_CALL(isrv, SAL_FREQ_BASE, 
> +                SAL_FREQ_BASE_PLATFORM, 0, 0, 0, 0, 0, 0);

   I'm not sure I understand why pal_freq_base() must return something.
Shouldn't any VMs trying to call PAL_FREQ_BASE be prepared for an
unimplemented return and then try SAL_FREQ_BASE instead?  Thanks,

        Alex

-- 
Alex Williamson                             HP Linux & Open Source Lab


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

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