Re: [PATCH] x86/asm/entry/64: better check for canonical address

From: Ingo Molnar
Date: Fri Mar 27 2015 - 07:34:41 EST



* Brian Gerst <brgerst@xxxxxxxxx> wrote:

> > Btw., there's a neat trick we could do: in the HLT, MWAIT and
> > ACPI-idle code we could attempt to set up RCX to match RIP, to
> > trigger this optimization in the common 'irq interrupted the idle
> > task' case?
>
> sysret only returns to CPL3.

Indeed, an IRET ought to be pretty cheap for same-ring interrupt
returns in any case.

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/