Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3728347ybt; Tue, 23 Jun 2020 09:17:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVFIwYlEp8TNIrLW+tjOtC8IbAnf4HJLt093p5wo3BQ5W7RwBGLuskDTTOWnkxMuJKjRXe X-Received: by 2002:a17:907:1110:: with SMTP id qu16mr21560684ejb.539.1592929019963; Tue, 23 Jun 2020 09:16:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592929019; cv=none; d=google.com; s=arc-20160816; b=p1FJLEDDgWlhL9Cv9ucgV0+XIjoCw/Fh0nsp06kFid7wVt4a4qRpuvtkxbTwlvHEGW VqPN2saWAwRnPl7YNs56xRX2iX9QpcDf3VaLm0zHjGosqxpgYHH0is3F8QtehUVUIprl t+s31M0j4nvoTLnwwRoxdxxOk9dakq3ZyhD1NRYZ/lKtwSGZYLCLXKbX7FzKnvPugtrq YwcZwLHKoVtU5rQtuX3Jh9eLmNctelizGkHFvLbLk22o9pwRtVDyFoIklzKezH3/aTsk lVuEEGZUkk4SYOh/ViOoZb/BhrQBNc1gpHueSmaYxyD+379GHlTDmsT3YRnEVV1nLFx0 XtCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=2ZeuviZXPtyZ/aF+IWZIvBCFWEao8ngk72TsRFpdUlQ=; b=SUR0Kso1j9eiLUc1dfOjqYtmIs/6zyta3AVIrKwmK+afD8NKMyFl5tKNvj/izNXaYB igPtuKXkzcQyw8onquKY3eipUi29wNI+iyUHYf2oppUF5LMuTDuTgKHSyXyZT7CKzJJG vZIdB7YfTpdF3uMSCCJWyKRx5jnb3+OyJIBf6FE8joK3zXZZRwwFq0zVft/5lrQjwgSm ux+w2eZOhjsCsjbfJFyJkym3OjoImU/1b6Us72DrMBr4hUS4CWUYRLto3n9Cp8T2WaVc XP16C1mTSEkFYHHcyWkxynMKrCsNxOwM6C+Na1gZH5mL3WM6W+ADB+10k/zh9gI3vkcj kdxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=ATjsWIR5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b5si15502384edz.386.2020.06.23.09.16.37; Tue, 23 Jun 2020 09:16:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=ATjsWIR5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732640AbgFWQOM (ORCPT + 99 others); Tue, 23 Jun 2020 12:14:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732253AbgFWQOM (ORCPT ); Tue, 23 Jun 2020 12:14:12 -0400 Received: from merlin.infradead.org (unknown [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B63FC061573; Tue, 23 Jun 2020 09:14:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=2ZeuviZXPtyZ/aF+IWZIvBCFWEao8ngk72TsRFpdUlQ=; b=ATjsWIR5mScsdXgmjIWTkFg1Wk j3PvAh/3jFwmTPn+cKufy4YfwEAVTB5Q+YDKJxIFA/YBf8QnuKGZB6iBvijGNLqsyu010C+STY8WW LAB3d9puouEtlsYWgQtJ+x3DVKMIoh/RG/cNY63fcTwbR+z6FfaHoyxaXbpm9V+Gsr6kNlqXZaL0H Ea0iQWyFLSV4klNOb2ksXlD1PlNyImPPRPhFq5Tv2I6Q3BeNur0uGK7mHwgDTiWh9oUuj3yijj6Sy VY7TJOMc0JboU8lVaX9JX8xVVicMeVSgx92/mx8HMv+xWWnNs0kZMIoGwIGEnFy0KFzU+Hif8FPzi gviDAAUA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnlYR-0006db-JS; Tue, 23 Jun 2020 16:13:47 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id D6622306E5C; Tue, 23 Jun 2020 18:13:45 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id C4847234EBA51; Tue, 23 Jun 2020 18:13:45 +0200 (CEST) Date: Tue, 23 Jun 2020 18:13:45 +0200 From: Peter Zijlstra To: Dave Hansen Cc: Andrew Cooper , Joerg Roedel , Andy Lutomirski , Joerg Roedel , Tom Lendacky , Mike Stunes , Dan Williams , Dave Hansen , "H. Peter Anvin" , Juergen Gross , Jiri Slaby , Kees Cook , kvm list , LKML , Thomas Hellstrom , Linux Virtualization , X86 ML , Sean Christopherson Subject: Re: Should SEV-ES #VC use IST? (Re: [PATCH] Allow RDTSC and RDTSCP from userspace) Message-ID: <20200623161345.GQ4817@hirez.programming.kicks-ass.net> References: <20200623120433.GB14101@suse.de> <20200623125201.GG4817@hirez.programming.kicks-ass.net> <20200623134003.GD14101@suse.de> <20200623135916.GI4817@hirez.programming.kicks-ass.net> <20200623145344.GA117543@hirez.programming.kicks-ass.net> <20200623145914.GF14101@suse.de> <20200623152326.GL4817@hirez.programming.kicks-ass.net> <56af2f70-a1c6-aa64-006e-23f2f3880887@citrix.com> <20200623155204.GO4817@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 23, 2020 at 09:03:56AM -0700, Dave Hansen wrote: > On 6/23/20 8:52 AM, Peter Zijlstra wrote: > > Isn't current #MC unconditionally fatal from kernel? But yes, I was > > sorta aware people want that changed. > > Not unconditionally. copy_to_iter_mcsafe() is a good example of one > thing we _can_ handle. Urgh, I thought that stuff was still pending. Anyway, the important thing is that it is fatal if we hit early NMI. Which I think still holds.