Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3551535ybt; Tue, 23 Jun 2020 05:16:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/rDTq5RD+d/zFlK4ALS5UU5D8Jj5jkzpQi+cjxWzaSqUMMSlXEHM6Wx4tjgeCdJ63tKRh X-Received: by 2002:a17:906:6686:: with SMTP id z6mr19336709ejo.258.1592914609056; Tue, 23 Jun 2020 05:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592914609; cv=none; d=google.com; s=arc-20160816; b=fORpzNrL7FXLVf4H5+UhG3UblzdENtoaf6P+GqEMPCzUYgGutWzPmm1tXt0I0AZmmw 88jJy39WlDZKGZ8ZqpiUJqwKtucApf3FY7E5INffdxXUTMkNR66vM9xFpswQBpe0N7xO 2k1C6n0lNAiJjKRM9/E7tNTHI2cF5lCeDaXw+M6Fhc5JjSh+N7vmcAMt6+tVPOGAJgYu 7CRS9LreB0M5QHgntaRwFvgGdABNPS8PjYsckCg/x7MogRs8cW7TJLj0j0lZ5S1Ft48K /8chT4PIEq3QtbkYS9wu6c8CPHRw2Y2uOYzM/+7+ohpjDNywC59dZwLLnfZwgGNbqX4a 0pfA== 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=O0haYbAn1R4/PcMZgtGytbB9XcEp151s2FU/04o24u0=; b=GGXe6VgEra//s6mNC/V1iPzhKx/WLHyopgpM1idouZZaOaWLskDuLYXQViM8hnKLu3 yoEx436sN0LsAB5OrgN2MmYlOlE8XxxjF/iFC/4qgaURrc5b+xpbb9qwGQ1/NKJIoqs+ 19kK5QDy4j3jj32aBj6pA6TThG9tIw8L/V7aaDWT1HuinbPv4CjlcYDqX+eUsoNXMN1E tDcu0JbK1beVie1DCPGP6K1bxIlE9vlt5AwPW8br1ANkqEJ7AKHqYiZJqYRxpzotxUln MUW/7jLV3khEUpemz6gQqIvs2Q0O22so6lftZ5Zw6mIdUOILOhn+YdahGN+Raa5M9Aa9 h+3Q== ARC-Authentication-Results: i=1; mx.google.com; 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 m21si11699280eds.234.2020.06.23.05.16.26; Tue, 23 Jun 2020 05:16:49 -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; 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 S1732569AbgFWMMm (ORCPT + 99 others); Tue, 23 Jun 2020 08:12:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:45112 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732396AbgFWMMl (ORCPT ); Tue, 23 Jun 2020 08:12:41 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 856F7AD5D; Tue, 23 Jun 2020 12:12:39 +0000 (UTC) Date: Tue, 23 Jun 2020 14:12:37 +0200 From: Joerg Roedel To: Peter Zijlstra Cc: Andy Lutomirski , Joerg Roedel , Dave Hansen , 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 , Andrew Cooper Subject: Re: Should SEV-ES #VC use IST? (Re: [PATCH] Allow RDTSC and RDTSCP from userspace) Message-ID: <20200623121237.GC14101@suse.de> References: <910AE5B4-4522-4133-99F7-64850181FBF9@amacapital.net> <20200425202316.GL21900@8bytes.org> <20200623094519.GF31822@suse.de> <20200623104559.GA4817@hirez.programming.kicks-ass.net> <20200623111107.GG31822@suse.de> <20200623111443.GC4817@hirez.programming.kicks-ass.net> <20200623114324.GA14101@suse.de> <20200623115014.GE4817@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200623115014.GE4817@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, Jun 23, 2020 at 01:50:14PM +0200, Peter Zijlstra wrote: > If SNP is the sole reason #VC needs to be IST, then I'd strongly urge > you to only make it IST if/when you try and make SNP happen, not before. It is not the only reason, when ES guests gain debug register support then #VC also needs to be IST, because #DB can be promoted into #VC then, and as #DB is IST for a reason, #VC needs to be too. Besides that, I am not a fan of delegating problems I already see coming to future-Joerg and future-Peter, but if at all possible deal with them now and be safe later. Regards, Joerg