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

Re: [Xen-devel] [PATCH, RFC] x86/HVM: batch vCPU wakeups

>>> On 10.09.14 at 12:37, <andrew.cooper3@xxxxxxxxxx> wrote:
> I am beginning to wonder whether the use of __attribute__((const)) might
> help with get_cpu_info().  Despite the explicit stack pointer reference
> which is undoubtedly the source of optimisation confusion for the
> compiler, inside a function, the result of get_cpu_info() is genuinely
> never going to change, even though the compiler can't necessarily prove
> the fact.

The const and pure attributes, at least when I last checked, get
dropped on the floor by gcc (or at least its code generator /
optimizer) for inline functions.


Xen-devel mailing list



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