Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp376958ybh; Wed, 15 Jul 2020 04:30:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqXjxdU00Yd9fb5iNrc80bCd+nHU7JuBHnJRqGn2GlJdus7blJOgAO8Fh6Iv8lxsXuNmd8 X-Received: by 2002:aa7:d4d2:: with SMTP id t18mr8920620edr.166.1594812618534; Wed, 15 Jul 2020 04:30:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594812618; cv=none; d=google.com; s=arc-20160816; b=Q24bIyPwaz6fxAQo4CPI94MJxd16s5bZdltJeinSoDhAPcpBnHuG7CD6TeEH3b9zc5 SBjmKkZM/bQcIfBtgMpmb4nFCThDjWxOQJD12BA2WjV881FUljwxKNuiz3XruTr+1aYu rVB+5TBQuRC/YP1/N46uVd8lWBTCwNt9E17M4h+PSnIpk3PC4C/KUbUICnYzogVBieGB 8xIPIHll2ci3SHhrURuYd1Zv3fKP0OrR/8XevMaW3ZtH+O957VqQiZvrC7x8ich0EpSU QkPFuWYf0PLdxgYche2w+iXHyrw2siWfx78tHa+yveovPV+QuqXXb3Vm7qqewGu9w0r7 UyDA== 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=K8h4KI86Mzb6BYGGyc/D5d7vo4fVAFqxYqHc3CALsmU=; b=socI+6iem3mIpAls+IwLdBNjLZJ4oIjmaEnuaxEUn50EwEdkvZEHFQeUGx7kXpZYry 08IwWSf6MmhHewFEtreqS9AZW6a3BhgPH11xJQhEx7J7ag6FTvXMuCrlp0iV7Fy9F5gj ItlqOpZJ+kGkeqDmMF9XbP2uua00FKwUlyC6m49/PterN7par0xQPezyPE3Dy5ua0Bwa eCITTsEbWibfOmL6NEka6RWgcbpHN34N8FN+2L7K3ol9DxS/48nZ68C8iXTHZn7vbqfg KZMJq4AErqqrkLgrxk3jxjEpN0uX75feVBu9ZI+rIMw++W2tTz+TtBJVPjZvAQIAHpm8 Pg/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=BGOcXPSi; 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 w19si1019582eju.41.2020.07.15.04.29.54; Wed, 15 Jul 2020 04:30:18 -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=casper.20170209 header.b=BGOcXPSi; 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 S1731237AbgGOK5K (ORCPT + 99 others); Wed, 15 Jul 2020 06:57:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726201AbgGOK5K (ORCPT ); Wed, 15 Jul 2020 06:57:10 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6200C061755; Wed, 15 Jul 2020 03:57:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=K8h4KI86Mzb6BYGGyc/D5d7vo4fVAFqxYqHc3CALsmU=; b=BGOcXPSin+HC2fF1VqIS2IqzXw YGPNLIs6u0i4juJ6jLImClXgjkl/hxvLhGvj1eiIwTuEcj2kgDhn5u6DM88nmQDKbFGgiCcgyySpw gParcOSrVYvhyiZNKOn+DfeACZ9Ocs9TrRzsRLcdRCSbsWrIdTBx760Ir3sQ8gWmYlxLt0/+sxfVx xxVGGbbbEmmWZBphVSBO7n8aI+TQanyTc0mG+sXVGwxO2ubsUUdrGKoi+fVxeddBO1jINLWyEN1oh TbLk/A4GJCz6hdj/J7aX87Yc7dq8bkDqmHIJpZx96V571lVNVCldLVdBsHS0jFDf2l7fkWXQZ7K9g XGLSiGaw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvf5V-0006Ya-Er; Wed, 15 Jul 2020 10:56:37 +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 B5DEA300446; Wed, 15 Jul 2020 12:56:29 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A5F9C203A6143; Wed, 15 Jul 2020 12:56:29 +0200 (CEST) Date: Wed, 15 Jul 2020 12:56:29 +0200 From: Peter Zijlstra To: Joerg Roedel Cc: Joerg Roedel , x86@kernel.org, hpa@zytor.com, Andy Lutomirski , Dave Hansen , Jiri Slaby , Dan Williams , Tom Lendacky , Juergen Gross , Kees Cook , David Rientjes , Cfir Cohen , Erdem Aktas , Masami Hiramatsu , Mike Stunes , Sean Christopherson , Martin Radev , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH v4 45/75] x86/sev-es: Adjust #VC IST Stack on entering NMI handler Message-ID: <20200715105629.GK10769@hirez.programming.kicks-ass.net> References: <20200714120917.11253-1-joro@8bytes.org> <20200714120917.11253-46-joro@8bytes.org> <20200715094702.GF10769@hirez.programming.kicks-ass.net> <20200715102653.GN16200@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200715102653.GN16200@suse.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 15, 2020 at 12:26:53PM +0200, Joerg Roedel wrote: > On Wed, Jul 15, 2020 at 11:47:02AM +0200, Peter Zijlstra wrote: > > That's pretty disguisting :-( > > Yeah, but its needed because ... IST :( > I am open for suggestions on how to make it less disgusting. Or maybe > you like it more if you think of it as a software implementation of what > hardware should actually do to make IST less painful. No bright ideas, sadly..