Received: by 10.223.164.202 with SMTP id h10csp1742333wrb; Wed, 8 Nov 2017 08:58:44 -0800 (PST) X-Google-Smtp-Source: ABhQp+Sqlob9N6/o5pMpfUuwgUXZwnr+UnGNY6NpP83cmel3J1KdVIecyPlu1XOXZH0M4dXOSXuh X-Received: by 10.98.24.20 with SMTP id 20mr1127046pfy.71.1510160324524; Wed, 08 Nov 2017 08:58:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510160324; cv=none; d=google.com; s=arc-20160816; b=pEn7PavdCgdNs9J8X3SD3osi5GNeZCgv7hXqAkImvj4L2yImbLjAj/iEh7e/Eyfzjj Shh9FA1dGalJpdyPebQTApGQbs3uOKjnuYyRzTxPs2It1rePfnFUlUnXq6jgRNQGdLBJ jMaWBNTUkwyfZNYPmVggG+GWVaQ5wSjVRHWP7Es+ufMp0GzBNrfJEZ/5nQvLfb2XlXEl Oryh6h/wxqjIFhGSvEeSwsfGGRkHwSc1kSd0WkdXhZKvICFFAO2kdlnW2qiSrT9t8fOr V777CU2U9zIS8fycigbONz/Z3WbNsW12mMHAMbN5R0w/3+yyjr6yRBTLIGQVNJoJrZXs QoZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:content-transfer-encoding :mime-version:references:in-reply-to:user-agent:date:message-id:from :arc-authentication-results; bh=AqWb9tj3GK4MBQtOP4hHKdNg0NqeSxCpOSwVtZ+UeDs=; b=RRqwrcEaWVPvPg3CH4pZ7tRb4dXS4GeZm8Ofw76Jipzvqq85pORN9niZmJpQsyqqvd +9CcGpOBpH2amIpUb1iIHghC4igzAj9RW051Jhf8lePAzFGLP9krJywRmc7WENanJfzS vdVo61GoN+dn7iI8bB/I6v4kDmZO0i5sToG8TNNjxNcweM7RD86lHXML9v/u0dSC7+Rs zbRX9vZdij5GpXFTx7C+7Fmpcml9J/18iS291FyMkN3IL9axSIWcAVQFVG6d8d74e+8R EduAPALNIN9rsZTCe+4cjUfGFyd50WJu8YyIUxhwq9PwgR+BobJ+/MphqtnErQZp9z7P Zs2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n7si4233741pgp.732.2017.11.08.08.58.32; Wed, 08 Nov 2017 08:58:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752771AbdKHQ5h convert rfc822-to-8bit (ORCPT + 84 others); Wed, 8 Nov 2017 11:57:37 -0500 Received: from terminus.zytor.com ([65.50.211.136]:44877 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752732AbdKHQ5g (ORCPT ); Wed, 8 Nov 2017 11:57:36 -0500 Received: from [IPv6:2607:fb90:a646:a527:e2fe:e7c:9fa7:3d2b] ([172.58.35.149]) (authenticated bits=0) by mail.zytor.com (8.15.2/8.15.2) with ESMTPSA id vA8GcSMV026939 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 8 Nov 2017 08:38:29 -0800 From: "H. Peter Anvin" Message-Id: <201711081638.vA8GcSMV026939@mail.zytor.com> Date: Wed, 08 Nov 2017 08:38:18 -0800 User-Agent: K-9 Mail for Android In-Reply-To: References: <1509935277-22138-8-git-send-email-ricardo.neri-calderon@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Subject: Re: [tip:x86/asm] x86/umip: Add emulation code for UMIP instructions To: Linus Torvalds , Denys Vlasenko CC: Paolo Bonzini , Borislav Petkov , Vlastimil Babka , Tony Luck , Fenghua Yu , Josh Poimboeuf , Borislav Petkov , Brian Gerst , Jonathan Corbet , "Ravi V. Shankar" , ricardo.neri-calderon@linux.intel.com, Chris Metcalf , Andrew Morton , Paul Gortmaker , Masami Hiramatsu , Andrew Lutomirski , Dave Hansen , ray.huang@amd.com, "Michael S. Tsirkin" , Linux Kernel Mailing List , Peter Zijlstra , Chen Yucong , Ingo Molnar , Jiri Slaby , Shuah Khan , Thomas Gleixner , "linux-tip-commits@vger.kernel.org"@zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: hpa@zytor.com Message-ID: <67A3DB9F-E58D-42B3-BF16-AC59D2FCECC2@zytor.com> On November 8, 2017 8:34:45 AM PST, Linus Torvalds wrote: >On Wed, Nov 8, 2017 at 8:14 AM, Denys Vlasenko >wrote: >> >> Can we avoid maintain emulation of these isns, by asking Wine to >remove >> their use instead? > >If we ask the Wine people to remove the instruction use, that may mean >that we can avoid the emulation in four or five _years_ once everybody >has updated. > >But it wouldn't mean that we could avoid it today. > >We *do* probably want to print a warning about these instructions, >whether emulated or not. If emulated, we want to print a warning about >the emulation being expensive (as a nudge to the Wine people to not do >that), and if _not_ emulated, we'd want to print a warning about why >people suddenly got a SIGSEGV in case there are programs that use >those instructions that people didn't even think of. > >But make it ratelimit the warning (perhaps at most once every few >minutes or whatever), so that people won't flood message logs just >because they have old stupid programs that use those things. > > Linus The real problem is that 16-bit software uses the instructions mostly for stupid reasons, but smsw in particular is used exactly because it is a virtualization hole. -- Sent from my Android device with K-9 Mail. Please excuse my brevity. From 1583517624123594572@xxx Wed Nov 08 16:54:47 +0000 2017 X-GM-THRID: 1583495974916316527 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread