Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6062649ybv; Wed, 12 Feb 2020 05:23:20 -0800 (PST) X-Google-Smtp-Source: APXvYqyiRqCN0S2Gomv0SGkkocqkTtTMY0o+FeK66oJeSbxd0zKpKjTZ0zozMYttN4gQQyZidSOd X-Received: by 2002:a9d:a68:: with SMTP id 95mr8887296otg.87.1581513800679; Wed, 12 Feb 2020 05:23:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581513800; cv=none; d=google.com; s=arc-20160816; b=wpPRocTVZ1fgrvZiYbaiIy+UCScG/TU+Q1BEd8pE2aR+fG9QLEtxlkP0rFYHg6ZsCR u5OiyfdNWTkJk7mWtdmK2uSIWOL+JMuuGGHooke3bth8hRcO700hjo6VuyHU5SHCjgA3 WIvVxs3040IIY+iXyX2rrc2FwCFq/mGT5L3s1RIylAnXUji7jnWSimVDN6wwY/13v8TE oOYiEv6rCMCxweopGF7EAtJ0fAq+NAPdo7HgUv2OjCJcjIozsfq3FA2lC43zsFbFVwvz B7TZiBytiVx6sLh8u1/8vyfB6srRvc42bSGVwMm5QeJ3rjfgvMEeHhH0z+ZlWOBHcgE3 Tnkw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=kh51+Z4idwzBjZo6pTb0UkwnG+sXutHRPuAGDjWWg4c=; b=DGbC3asKJE4dybgqjUUEVIQjl6uaINTOzTl98pOpz5WZSb1N8fMhsFgZiWLygx03DL vu3uc34kDze2JWqNZzUZpfJFWY4tZO9TIHHHcHrBlox6bpKqK7f4gdZDiCMlnt0kQ55y MPoJJAtPkaQEqUmKRxNzCqab/PC6uCjNKLjQVTe0Iv3lezRh/qvxwWdxSmqrlVZLA9/S 3bV624CXAVTDRN1uSdlDGO/g4pKzovjJeP/xZWCbcjFnEkcDxoYRthWkiPtRiByTtqfq K2lebJqc3RDgneuYWyUuCpgMmNxUpj/jvmPALepEcHoJi0a8eeEFTrtpQ8pYtE1Utvns wdxQ== 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 a17si204748otp.236.2020.02.12.05.23.09; Wed, 12 Feb 2020 05:23:20 -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 S1728141AbgBLNWc (ORCPT + 99 others); Wed, 12 Feb 2020 08:22:32 -0500 Received: from 8bytes.org ([81.169.241.247]:53860 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725887AbgBLNWb (ORCPT ); Wed, 12 Feb 2020 08:22:31 -0500 Received: by theia.8bytes.org (Postfix, from userid 1000) id B828620E; Wed, 12 Feb 2020 14:22:29 +0100 (CET) Date: Wed, 12 Feb 2020 14:22:20 +0100 From: Joerg Roedel To: Andy Lutomirski Cc: x86@kernel.org, hpa@zytor.com, Andy Lutomirski , Dave Hansen , Peter Zijlstra , 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: [PATCH 50/62] x86/sev-es: Handle VMMCALL Events Message-ID: <20200212132220.GI20066@8bytes.org> References: <20200211135256.24617-51-joro@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 04:14:53PM -0800, Andy Lutomirski wrote: > > How about we just don’t do VMMCALL if we’re a SEV-ES guest? Otherwise > we add thousands of cycles of extra latency for no good reason. True, but I left that as a future optimization for now, given the size the patch-set already has. The idea is to add an abstraction around VMMCALL for the support code of the various hypervisors and just do a VMGEXIT in that wrapper when in an SEV-ES guest. But again, that is a separate patch-set. Regards, Joerg