Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5092079ybv; Tue, 11 Feb 2020 09:02:37 -0800 (PST) X-Google-Smtp-Source: APXvYqxEZv9LkpIjg2TsQD9fHrrC7jGwNN8YYg3nvlYTW8Rk8cegI2jBpAytCdxJRp1atP5OqV+K X-Received: by 2002:aca:7244:: with SMTP id p65mr3368121oic.50.1581440556917; Tue, 11 Feb 2020 09:02:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581440556; cv=none; d=google.com; s=arc-20160816; b=W/WnT+HMzxtoJqEbYQypXMREttunG43IioXWsSO+NQzNL7dUiaybzfyg7JPeQFvoyJ 3yF4jtQ0NVnWiks/+6P7mGR8XxFeTva8smQM5WtDz+RU0UoR9vdVYUJAZdl51GBWbp71 wYyTG1r3Y5u/q0rgHSoym9CHDa9VxM3cZUtegm0bG5U/dPtOPxFIFTAxV7i56F7KVpSp L48TILxHlikTk2LO3oUrP1FSZdC/+XQKroatFjTsjfVW17M63BMcRvFVKNYu0qj0H0Bx uaVc8OfVn+Lie6YlhW9xYGFmbKB0v6wV1kJK+4n/L6GFKjBn7ZLtI8osugyvhPCekfP/ oY6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=30Kio0wtBoUoINZKmZ69l/ykR1Jwj9P1PEs5wP9zWLY=; b=knP20DTscFJK+KUB52pqIQmfBJ9ResFVVpTZasLQbkHE89ee+PQU+6oqNAinrlCYLq +5Wv5AcwlCkdEJRS/1AJg2L8FtDXeOzBBIDsCHm2FqJscsQsZlx6k5HSaoS7exb2Uydq 973oe/+to5x9VB5B8mxyZKnB003fTIQwU2603+IKqlUCMNhUC3F8adkPo1ft3FzVW70Q TYGL73IxDvTvBEanmRw6KQ154/rR2G/lzHkwCMToCcSIaUl4tLhTmD/coL7rtt/1qAy6 lPprU6Tqo8zNg4AmybrFciuTEbtRs2CoO5fsjLsSETZKoeY9EhgV+ItXeg1hZwfoO/XZ kVqQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2si2916537ots.284.2020.02.11.09.02.18; Tue, 11 Feb 2020 09:02:36 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729644AbgBKPnZ (ORCPT + 99 others); Tue, 11 Feb 2020 10:43:25 -0500 Received: from 8bytes.org ([81.169.241.247]:53508 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727962AbgBKPnZ (ORCPT ); Tue, 11 Feb 2020 10:43:25 -0500 Received: by theia.8bytes.org (Postfix, from userid 1000) id 520782FB; Tue, 11 Feb 2020 16:43:23 +0100 (CET) Date: Tue, 11 Feb 2020 16:43:21 +0100 From: Joerg Roedel To: Peter Zijlstra Cc: x86@kernel.org, hpa@zytor.com, Andy Lutomirski , Dave Hansen , Thomas Hellstrom , Jiri Slaby , Dan Williams , Tom Lendacky , Juergen Gross , Kees Cook , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, Joerg Roedel Subject: Re: [RFC PATCH 00/62] Linux as SEV-ES Guest Support Message-ID: <20200211154321.GB22063@8bytes.org> References: <20200211135256.24617-1-joro@8bytes.org> <20200211145008.GT14914@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200211145008.GT14914@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 11, 2020 at 03:50:08PM +0100, Peter Zijlstra wrote: > Oh gawd; so instead of improving the whole NMI situation, AMD went and > made it worse still ?!? Well, depends on how you want to see it. Under SEV-ES an IRET will not re-open the NMI window, but the guest has to tell the hypervisor explicitly when it is ready to receive new NMIs via the NMI_COMPLETE message. NMIs stay blocked even when an exception happens in the handler, so this could also be seen as a (slight) improvement. Regards, Joerg