Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752733AbcKIE05 (ORCPT ); Tue, 8 Nov 2016 23:26:57 -0500 Received: from mga07.intel.com ([134.134.136.100]:17875 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752227AbcKIE0z (ORCPT ); Tue, 8 Nov 2016 23:26:55 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,612,1473145200"; d="scan'208";a="1065950795" Message-ID: <1478665614.2533.4.camel@ranerica-desktop> Subject: Re: [PATCH 2/4] x86: Prepare vm86 tasks to handle User-Mode Instruction Prevention From: Ricardo Neri To: Peter Zijlstra Cc: Andy Lutomirski , Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , "linux-kernel@vger.kernel.org" , X86 ML , "linux-doc@vger.kernel.org" , Andy Lutomirski , Andrew Morton , Borislav Petkov , Brian Gerst , Chen Yucong , Chris Metcalf , Dave Hansen , Fenghua Yu , Huang Rui , Jiri Slaby , Jonathan Corbet , "Michael S . Tsirkin" , Paul Gortmaker , "Ravi V . Shankar" , Shuah Khan , Vlastimil Babka Date: Tue, 08 Nov 2016 20:26:54 -0800 In-Reply-To: <20161108170034.GK3117@twins.programming.kicks-ass.net> References: <1478585533-19406-1-git-send-email-ricardo.neri-calderon@linux.intel.com> <1478585533-19406-3-git-send-email-ricardo.neri-calderon@linux.intel.com> <20161108170034.GK3117@twins.programming.kicks-ass.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 535 Lines: 20 On Tue, 2016-11-08 at 18:00 +0100, Peter Zijlstra wrote: > > > + } > > > +#endif > > > + > > > > NAK. If this code is going to exist, it needs to be deeply buried > in > > some unlikely if statement that already exists. There's no good > > reason to penalize all context switches to support some nonsensical > > vm86 use case. > > Agreed, now if instead vm86 get to emulate these instructions, this > all > magically goes away.. Yes. I agree. I will rework the series and this should not be needed. Thanks and BR, Ricardo