From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752647AbbC0Leh (ORCPT ); Fri, 27 Mar 2015 07:34:37 -0400 Received: from mail-wg0-f52.google.com ([74.125.82.52]:34767 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752468AbbC0Lef (ORCPT ); Fri, 27 Mar 2015 07:34:35 -0400 Date: Fri, 27 Mar 2015 12:34:30 +0100 From: Ingo Molnar To: Brian Gerst Cc: Denys Vlasenko , Andy Lutomirski , Borislav Petkov , the arch/x86 maintainers , Linux Kernel Mailing List Subject: Re: [PATCH] x86/asm/entry/64: better check for canonical address Message-ID: <20150327113430.GC14778@gmail.com> References: <1427373731-13056-1-git-send-email-dvlasenk@redhat.com> <20150327081141.GA9526@gmail.com> <551534B1.6090908@redhat.com> <20150327111738.GA8749@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Brian Gerst 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