From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755317AbdKAUmw (ORCPT ); Wed, 1 Nov 2017 16:42:52 -0400 Received: from mail.skyhub.de ([5.9.137.197]:56658 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755223AbdKAUmt (ORCPT ); Wed, 1 Nov 2017 16:42:49 -0400 Date: Wed, 1 Nov 2017 21:42:42 +0100 From: Borislav Petkov To: Dave Hansen Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, moritz.lipp@iaik.tugraz.at, daniel.gruss@iaik.tugraz.at, michael.schwarz@iaik.tugraz.at, luto@kernel.org, torvalds@linux-foundation.org, keescook@google.com, hughd@google.com, x86@kernel.org Subject: Re: [PATCH 01/23] x86, kaiser: prepare assembly for entry/exit CR3 switching Message-ID: <20171101204242.whvunv2yvgj2uw22@pd.tnic> References: <20171031223146.6B47C861@viggo.jf.intel.com> <20171031223148.5334003A@viggo.jf.intel.com> <20171101181805.3jjzfe6vhmgorjtp@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 01, 2017 at 11:27:48AM -0700, Dave Hansen wrote: > This allows for a tiny optimization of Andy's that I realize I must have > blown away at some point. It lets us do a 32-bit-register instruction > (and using %eXX) when checking KAISER_SWITCH_MASK instead of a 64-bit > register via %rXX. > > I don't feel strongly about maintaining that optimization it looks weird > and surely doesn't actually do much. Yeah, and consistent syntax would probably bring more. > Thanks for catching that. We can kill one of these. I'm inclined to > kill the first one. Looking at the second one since we've just saved > off ptregs, that should make %rdi safe to clobber without the push/pop > at all. > > Does that seem like it would work? Yap, sounds about right. Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.