[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] x86: optimize this_cpu()



>>> On 13.07.10 at 17:03, Keir Fraser <keir.fraser@xxxxxxxxxxxxx> wrote:
> On 13/07/2010 15:57, "Jan Beulich" <JBeulich@xxxxxxxxxx> wrote:
> 
>>> Where does that come from?
>> 
>> From various assembly files, defining GET_CURRENT() or alike
>> on their own. grep-ing for STACK_SIZE had helped me noticing
>> the issue. Likewise GET_GUEST_REGS() implies that
>> "guest_cpu_user_regs" is the first field of struct cpu_info (but
>> this I would consider expected).
> 
> Hmm, I think I will do a cleanup patch, thanks!
> 
> On this theme, just look at how the code in arch/x86/acpi/wakeup_prot.S
> (lines 162--167) does multiple hardcoded indirections to get at the current
> domain_id. That is absolutely shocking!

We can call ourselves really lucky that this never caused any
problems. I'll be glad seeing you clean this up.

Jan


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.