Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5453600ybv; Tue, 11 Feb 2020 16:16:34 -0800 (PST) X-Google-Smtp-Source: APXvYqyfAZXRjsXh6EIliqnu0AvIGLVffbKJc4YLcBOc5C7m69Xfj8JJRiTLUNxOWhXmbZtiUaX9 X-Received: by 2002:a05:6830:158:: with SMTP id j24mr7490513otp.316.1581466594652; Tue, 11 Feb 2020 16:16:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581466594; cv=none; d=google.com; s=arc-20160816; b=sHjSeVE3gxylc5iqEUcq2/3Ki8RHs5X7eKlGwVQnFNk+PlGbwZJSL+c6JS1djPvk0V nyxHkKv1hx28Edy5f60nSD6JokvcAKUKI7oJamrF4ECY66/kdKWP1SDPBmBYcyG+6iVf ymc19AtNQBiIjRo4QbrFKyGwMmOy7Glu6e6x6MymZgziEL62tgi0UoMGZtWRHgy4mgLB iqLRBWvpXwk+BNtls4ttsK/ApxD3BWlZBnzJmFOeRtVrsCLCpiQr++iary1xjj/Nsw+4 BZ2vM2cqUxgRjSc2haeW92+37kiER/LiXX78QTAHvt4Iig32DQ1Cvr5a2HtnYOh9PegJ Ul5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=5W5I2/tliGJReRotTu8QzhtFOiqoykAjsJm5H9qMpkY=; b=OBZoajWbzdlgCxZCeEsVJOwLRcqe3EIAYz1I3fWBJUVMq98jawRSfoNjcQjSvA8YpW BvSW2ayd1VTtgJuo3XUGuUUKCG4M5TmlfUMU5Eli3A98I74BvIphgM81OYhMB0n5AZpy Hf4WePOeNadPqG9FLTPl0SmO0smoL602ffrTO9+Mh8FVHyBLScouD/fRu+aDBFgOs5V7 1FGmpsqOkAa1JkG5sHLSRcuQnyHHnYA/l20w/3wm6VwzkwQnL3DeR5EEgWTyRqJCU0fl fuYSedHSp8gGG+4nnV1TL5CP/HcPPfbn1OxTRWTt5C0bgNnWtN6eyz3nEG3nF3enCBlO Wo/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=aLqA2Qf2; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g10si2683180otn.12.2020.02.11.16.16.22; Tue, 11 Feb 2020 16:16:34 -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; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=aLqA2Qf2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728094AbgBLAPL (ORCPT + 99 others); Tue, 11 Feb 2020 19:15:11 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:41454 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728022AbgBLAPK (ORCPT ); Tue, 11 Feb 2020 19:15:10 -0500 Received: by mail-pf1-f194.google.com with SMTP id j9so272309pfa.8 for ; Tue, 11 Feb 2020 16:15:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=5W5I2/tliGJReRotTu8QzhtFOiqoykAjsJm5H9qMpkY=; b=aLqA2Qf2b5R0VeGpxHSJiz0ggv1GoXh8FkTKNgcixlXD0g0v+K4kZAA5jZFyv0sCI/ k0dJCcEfwvaKmSPcMS6sYRNmiJipBsJiNcMrzUp11mrEiAinkTJ+ko4yfFP9yXEn4y3s dyA96FXoI6LjOw0qu4i2uDrCTfErIfqttgHTCx6WrFtH//2lrSt6dZyYWS4U6K1kX9BV xuRArF8oKa7WeB6uDD1J0XE+ev7h8H/ZUv5ik+syqG8rdvvCV3KqoPQegqqiprtWD2kf PStGiVD5hcbq6hw+dhNe5Y4uO5at0WVISTk9JNb50USIQWVd+3kKZo+3vyNgEyTZ1xHc bl5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=5W5I2/tliGJReRotTu8QzhtFOiqoykAjsJm5H9qMpkY=; b=lAihnGL8ndc7u83/kTeRmqXa6VkTqVztapLlE861MnuU1tN/oM7aLekiuF7ol98Y5x p4WLe9Q+EWO1WLzdHjwQdbXGby76OUA1CzWXGomceJNRmjn80mauQ4QktAs5WJlX9fTU KN7Qqn4mBt3YSyqJgWbyVHYR5C/yV+WZR6JS97ZAsjTmxyNyTixrN8ist391ENvAjesG Dyeomi0kXiNW42jKC7kMcmsLT3gCMKiSdFi4dzGY9X3gZ+SH8m9miRgwOVZ4q2qtFCR6 IPTcDOsa7NhN9lVWVZa5s4HGfWYb+EAEaDlgRXKbOua39hLcDBUrIKvnoLjgH33090vS 4YHQ== X-Gm-Message-State: APjAAAVYwmdQ2+30wLhQ1aebnRywDyNP1GpvXgGbwrJsstI+g+tlZZhF jMWIiFp0udGFRV4vMJtU428NBDB8J8g= X-Received: by 2002:a63:480f:: with SMTP id v15mr9328311pga.201.1581466509526; Tue, 11 Feb 2020 16:15:09 -0800 (PST) Received: from ?IPv6:2600:1010:b06b:b0e7:939:1384:befb:d8c9? ([2600:1010:b06b:b0e7:939:1384:befb:d8c9]) by smtp.gmail.com with ESMTPSA id s6sm5044170pgq.29.2020.02.11.16.15.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Feb 2020 16:15:08 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Andy Lutomirski Mime-Version: 1.0 (1.0) Subject: Re: [PATCH 50/62] x86/sev-es: Handle VMMCALL Events Date: Tue, 11 Feb 2020 16:14:53 -0800 Message-Id: References: <20200211135256.24617-51-joro@8bytes.org> 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 In-Reply-To: <20200211135256.24617-51-joro@8bytes.org> To: Joerg Roedel X-Mailer: iPhone Mail (17D50) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Feb 11, 2020, at 5:53 AM, Joerg Roedel wrote: >=20 > =EF=BB=BFFrom: Tom Lendacky >=20 > Implement a handler for #VC exceptions caused by VMMCALL instructions. > This patch is only a starting point, VMMCALL emulation under SEV-ES > needs further hypervisor-specific changes to provide additional state. >=20 How about we just don=E2=80=99t do VMMCALL if we=E2=80=99re a SEV-ES guest? = Otherwise we add thousands of cycles of extra latency for no good reason.=