Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2135920ima; Thu, 25 Oct 2018 10:04:35 -0700 (PDT) X-Google-Smtp-Source: AJdET5dVlfYtBF6yxZs64lu4rk9BOMWPz7bizF+89XC3dbhaXWI8XPgGvZqq1KjB0y4i+S03Paog X-Received: by 2002:a62:2f44:: with SMTP id v65-v6mr16889pfv.235.1540487075414; Thu, 25 Oct 2018 10:04:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540487075; cv=none; d=google.com; s=arc-20160816; b=Eya7jmF4auS4p4znkyV52cr21x1MjlNZSDKEdBZV/Vvwu9rYqftBvAtwEXBzTUsEo0 UQxAIp4riCRytVqtbY8vaJReSxR3EZRsk2X95Drmxyo6TuoiVC2OKWshFK5fjvok5lmC MhBdonLsMESNxlK4LsC9ow9Qv44fj+l4NFQsF4V1lIzbm0wd6KBrZVD8+swIK9ODeTrp 4z5XSNADt819OnpjwccpGeFTnWlbWPVLl2VJq2kNMkzGUQxr8ow4vrPIle11swEKOH/b /eR5DyDKQEaZMzi3NWk9fPiDTXFGAgh+yxnaZ4P8WSypLqXKd9BfY7nevNy880oxHNjH cXXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature; bh=SaZWBXqG3Ybod0NnyCDjuz9mi3nAcf18DKNoWpTncsI=; b=ZIvjNOiumcMjtgfCewkzqEhIjLC5h4CO0S2Dxjibg73LpVhJHBw1MH1iVoAWhcP9A8 TIziYjBGDQPhgRhBI4JsqLj4oK6XpFPKpzl3z8DsUW2PSiTxJ6lfbuh+S+zIPdKwnqzo r7hW5dlMlhPKeptAXZmx32HFerk/blCE/1qCSUNKZjXUly+02BpzAUTzdvFQQfRwNXlO J9zlWS2zfgqemIuMhcNDLhbRbt2tgAPY8vtN/MnZ+Oa/lyD69qOEOVxZ/AsN9nEhelbo NgW+CT1OK/BhMjArS092qFpO8m4IOVTsiV0V9/4UhfakVv7E+8gGPl0SYuNDnFCvL5lx 4oPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pBE36YUO; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s16-v6si8115084plp.336.2018.10.25.10.04.19; Thu, 25 Oct 2018 10:04:35 -0700 (PDT) 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=@google.com header.s=20161025 header.b=pBE36YUO; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727829AbeJZBfs (ORCPT + 99 others); Thu, 25 Oct 2018 21:35:48 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:38591 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727574AbeJZBfr (ORCPT ); Thu, 25 Oct 2018 21:35:47 -0400 Received: by mail-ot1-f66.google.com with SMTP id l1so9828866otj.5 for ; Thu, 25 Oct 2018 10:02:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=SaZWBXqG3Ybod0NnyCDjuz9mi3nAcf18DKNoWpTncsI=; b=pBE36YUOr/rl87zEzfWbp92eV2xn872JX1UG+ckMC5mglA+3w4frcTgxBOCRiFAYjA J08PNvG4pliKwmzSA26POJ5JpSEy9rf3pIIdUDpq+lYVXQq2pPSdQs3VME/eJasUyRZV jOVlsAzrdz1H7AWU9XLmVZdVbfptP75HCua+3zQxjsXwhPDIZ6n4uqJow/RWWWOzrQYV CFbowLyspV6ionyKW59Vbb9o/UDjlej1ZeIj8SVoKYbqJBu/fR4tmNCTXyoUqITVnnFU p0vwzM8qAQDZbCx+xBuaaeMLdSBsLDSv/uC+RPguk0yre/2gD2/oDX6/nObbBXjJ5yx3 I+Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=SaZWBXqG3Ybod0NnyCDjuz9mi3nAcf18DKNoWpTncsI=; b=Up7NXeLvi6pD8ME1xrWA1V6Zz48DOcPUHB2SY3mxowhm4Hx3i/011O+w1EmfHCmARs MEozzMuNPUc93WpD1bqeWWWn4xRgJQJG7WoX1kBZuPANCr3FiUTN13oYyHLziDS3O5Wl u0sSHzr342FIcBKRZZqW7tm3gJZ7N9eYh634gtoSbL3afCCuZtgVVERTYo/sL/kMhIn/ EwPz0w2Nl8UJk1rTx8Io9ja96AgZTwgdj8mGdKI7CvI4nV7WMcZ0S/I36TH6JYCbLX2t YP8Bd9Eb7+ynCwlFfAsRgNwXZy59vZfJem+7mWmtFm99/u2Rt58I5Lqdy3HeDYR+7XWg kGQw== X-Gm-Message-State: AGRZ1gK1Qx+L5XzOsyDRFnzAFNCulPieb1OzQrUAjM+xjWy6FfgMZ56Z lYXUrX1vTWZMw8/tNutom7xaU1BZ6NjkrCryfemABg== X-Received: by 2002:a9d:bb8:: with SMTP id 53mr45027oth.120.1540486929487; Thu, 25 Oct 2018 10:02:09 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac9:2ac9:0:0:0:0:0 with HTTP; Thu, 25 Oct 2018 10:02:08 -0700 (PDT) In-Reply-To: <09986c98c9655f1542768ecfda644ac821e67a57.1540369608.git.jsteckli@amazon.de> References: <09986c98c9655f1542768ecfda644ac821e67a57.1540369608.git.jsteckli@amazon.de> From: Jim Mattson Date: Thu, 25 Oct 2018 10:02:08 -0700 Message-ID: Subject: Re: [PATCH 1/4] kvm, vmx: move CR2 context switch out of assembly path To: Julian Stecklina Cc: kvm list , Paolo Bonzini , js@alien8.de, LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 24, 2018 at 1:28 AM, Julian Stecklina wrot= e: > The VM entry/exit path is a giant inline assembly statement. Simplify it > by doing CR2 context switching in plain C. Move CR2 restore behind IBRS > clearing, so we reduce the amount of code we execute with IBRS on. > > Signed-off-by: Julian Stecklina > Reviewed-by: Jan H. Sch=C3=B6nherr > Reviewed-by: Konrad Jan Miller Reviewed-by: Jim Mattson