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-ppc-devel

Re: [XenPPC] [xenppc-unstable] [ppc] implement new upstream local_event_

To: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Subject: Re: [XenPPC] [xenppc-unstable] [ppc] implement new upstream local_event_delivery_* interface
From: Hollis Blanchard <hollisb@xxxxxxxxxx>
Date: Tue, 13 Jun 2006 10:33:02 -0500
Cc: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 13 Jun 2006 08:32:35 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <BC4C771A-153C-4CBD-AD5B-BAB46ECD2F86@xxxxxxxxxxxxxx>
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: IBM Linux Technology Center
References: <E1FprzX-0000Hw-Ll@xxxxxxxxxxxxxxxxxxxxx> <BC4C771A-153C-4CBD-AD5B-BAB46ECD2F86@xxxxxxxxxxxxxx>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, 2006-06-13 at 10:58 -0400, Jimi Xenidis wrote:
> On Jun 12, 2006, at 3:22 PM, Xen patchbot-xenppc-unstable wrote:
> > +static inline int local_event_delivery_is_enabled(void)
> > +{
> > +    return vcpu_regs(current)->msr & MSR_EE;
> > +}
> 
> NIT: if would be safer if this returned 0 or 1 rather than 0 or MSR_EE

I had decided against it, since I figured the places doing the binary
(rather than logical) operations could be responsible for that.

However, x86 local_event_delivery_is_enabled() only returns 0 or 1, so
to avoid subtle problems in the future I'll change ours to match. We're
only talking about a couple instructions anyways...

-- 
Hollis Blanchard
IBM Linux Technology Center


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

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