Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp819011lqo; Fri, 10 May 2024 16:53:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVTTTCijBfBg1tccuV3VqRJihEVrHB2dlg1ceEsWXE6ktueBLB+vZuRG/FRFtA/ZgzWG4bJRBaxWRUC62iAB4S2ofRSVQeb9g/McLd1zg== X-Google-Smtp-Source: AGHT+IEatRKkxfdv9vwFSsyseGsHVGd4xtTiP78G00i0GLQSnkYG7UsRodNaOMv9hfSwcW0G8C2j X-Received: by 2002:a05:6870:b14a:b0:23e:b430:3f74 with SMTP id 586e51a60fabf-24172a90533mr4428904fac.19.1715385186461; Fri, 10 May 2024 16:53:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715385186; cv=pass; d=google.com; s=arc-20160816; b=ZDsl+iWb4lCz02X4C5NAm6U5VymTGewoJjApsQ0ZFyCgmYQeH31S7pbV7WfmlUv1LI yoHx8lg1Zj37MU0Y12tmO/SSh15HHHNtiQpnaT7AwSKufHCO6DKcDP06IXXEFzFVl5e4 p6J5z5IQ08q6KYy5/x91KpR2G65KAf4dSY7UblH6fmjAE8UBeigGdv5mCcXpP1fc0Giz Kq//+frZcXEio93MhxDypE2gcbQsHsMz/0L25+2r6TPFyoTyx/qDAv0EkwtOpmk4AO+s gg9XdEB2/viHzvuULOSTA5+YTtBUjIInmO4Vb/MQa9jjo7ilCFruvZfTMRuDVYvIW/++ uAGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :reply-to:dkim-signature; bh=d+ECv8dHV8OhTCfj4K3yI3ukOFgKkrhitQiLiv2Tb+o=; fh=iczN16l91auRnuDWHwfTTk2fHga3uc0A+e+mOtYJBII=; b=M5dDp9b1nQ+jHliKHYkRyLEOToIxK3CNzrHAvicyIBSgcRnov61k02Mdj0K9fYiZ6q Y/5yJomDdMnIfiBaowebmXTrmGKuHG1ALRXpSiL7XSdPsVDUqRRDqTH848empkkGMqLK TdadANE6jMaroo4P3Kj6QV+e6XfqAglcv1P6lJ6b/Bs0AmlOggKyEx29kuRYdFVhGjkh gXHAIKFaHpYlLXyc077cMcwakQr1DoOkFysdlvBCu2otnQE9FqHUO4k5wPDtK6htk1dL VphwVdRbfY4pK1T8DMmd4xy4Pf3udKXQjOcb0p3TxwDGq6SAOlH1iJATCr75NIFCNK7R bIwQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=TE4sJ5nE; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-176311-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176311-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2a7236csi4769471b3a.73.2024.05.10.16.53.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 16:53:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176311-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=TE4sJ5nE; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-176311-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176311-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1B5E2282C58 for ; Fri, 10 May 2024 23:53:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1904D17EB84; Fri, 10 May 2024 23:51:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="TE4sJ5nE" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E805317BB15 for ; Fri, 10 May 2024 23:51:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715385072; cv=none; b=CY600d6YvhEl4IQgoVpVWy+Ur20qJB5VxgpLodO08ARYeeTV6SPJFm9OsBAU3RLgMfMiTHaZTC1JJ/4UdVxOZ/LA6whaiXXOCBR66+JugI2fHSm5jv11sBpmQSTRm/sdH8ZKun3ioxQeO1J7r3YbQFLi3KhIVFp6LRlX19Rj9I0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715385072; c=relaxed/simple; bh=T0wVo1wXvWe8ytX6MGdiHwIoOQJ74v8DOKvii+EjS9I=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=lOyrZN2KVsoxv+sr54q/FPiQLSYJ61Tbs8BuMRDtJYhGgTDnScQmSp1zf4WuTtTKt/cjwVMV8jcv3urjjuFCiScJnFygixQd9U+Fa1xNSJKtXJZo/ejyJFE3i3vZ8jlgHap6FSbJnH6wdM1NWX2jfnSeShi34eCcWjadTSHbQUk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=TE4sJ5nE; arc=none smtp.client-ip=209.85.219.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dc64f63d768so4346302276.2 for ; Fri, 10 May 2024 16:51:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715385070; x=1715989870; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=d+ECv8dHV8OhTCfj4K3yI3ukOFgKkrhitQiLiv2Tb+o=; b=TE4sJ5nEIFa5sB90jjhpyOmPBT/YLIrXY3oxh9OF2ut8aVafWpDG6XekDmS/K18O/R GbKSqn1D+U5SKWFpSI2aN5ACzw5xoC4X511vxImapm52zFyn+ZChFSVWXEwpEq2th73l HSkhwc0lQ53paDpdl4pEyV9ZRDHtsGUwsMeJePNwP09Pg5RWMyzWO/N0akByBv1FUe3V y7Ak7kqc9PxsVRy4RxdkleZkQ2foB+wYu+WsBXfJQ2EnwN4Re4eeUAaXxht6SBwQolWF 3niV4zjljP5BqOCOoy4NGf2WiFeV7aLGF9LlfzJrdOT7ULb/ah1A8ditC75ceXpV1VO1 XpxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715385070; x=1715989870; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=d+ECv8dHV8OhTCfj4K3yI3ukOFgKkrhitQiLiv2Tb+o=; b=Wtz80cbQVjGXA/L7WxQ2zxc+oSvNPsM9s7FRLpnp9pjD+Fpf/WJ4R8ZG6lg6Q84jDp mApZzw60Su7OXNNtE+ZgCG25bOm1XNWjZi9vInklrMlDEp7zJdeGkOcYZmTSP2krM6fw VYhE+kn3Wbxq7l8jM22IPsmjWkzkb/FlgjZ8lM9ahIfSgAay/nSs1O2qUFvUlgc5QX5L cRHsBtFVITuL8pg51xkOWsTduUEL9ThfBk6z7019/0Qte3TpnSKX8F45nPySm5HJYr+t A53ZdQI0x5H0vEtH2v/+M6Lfp6Jdv3khua0aEHo7bxcZMmF8JjhRvAN64B2pPuvMwkIc Z3TQ== X-Forwarded-Encrypted: i=1; AJvYcCU0ixyb+4y8kQ5ZeyMr/iY81xgfEVy4M5V+GpJh7prV5PGaSIFK1Q31kOUgNfXrLYXCCTh8g3dDA7E/Iknu6fGzvogxZEzRdddhyb/v X-Gm-Message-State: AOJu0YzgRJgdIR/6x5ie5QoBqJd+MzcpyaYMWtdtzowm7UxSnw9WsXVz NYmdtQqAIkV5lMOjGuzAFAvGcwgsuFjO1zUPJ9gexDCiL+Oa/mLdz2T1VXs6lg+urEa8KbFEjaO 8pg== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a25:d8d5:0:b0:dcc:50ca:e153 with SMTP id 3f1490d57ef6-dee4f304739mr990122276.7.1715385069943; Fri, 10 May 2024 16:51:09 -0700 (PDT) Reply-To: Sean Christopherson Date: Fri, 10 May 2024 16:50:51 -0700 In-Reply-To: <20240510235055.2811352-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240510235055.2811352-1-seanjc@google.com> X-Mailer: git-send-email 2.45.0.118.g7fe29c98d7-goog Message-ID: <20240510235055.2811352-7-seanjc@google.com> Subject: [GIT PULL] KVM: x86: VMX changes for 6.10 From: Sean Christopherson To: Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Sean Christopherson Content-Type: text/plain; charset="UTF-8" Minor fixes related to EXIT_QUALIFICATION and EPT Misconfigs. The following changes since commit fec50db7033ea478773b159e0e2efb135270e3b7: Linux 6.9-rc3 (2024-04-07 13:22:46 -0700) are available in the Git repository at: https://github.com/kvm-x86/linux.git tags/kvm-x86-vmx-6.10 for you to fetch changes up to 23ffe4bbf807c34cd5374f3e53196ccc459707f4: KVM: nVMX: Add a sanity check that nested PML Full stems from EPT Violations (2024-04-09 10:24:36 -0700) ---------------------------------------------------------------- KVM VMX changes for 6.10: - Clear vmcs.EXIT_QUALIFICATION when synthesizing an EPT Misconfig VM-Exit to L1, as per the SDM. - Move kvm_vcpu_arch's exit_qualification into x86_exception, as the field is used only when synthesizing nested EPT violation, i.e. it's not the vCPU's "real" exit_qualification, which is tracked elsewhere. - Add a sanity check to assert that EPT Violations are the only sources of nested PML Full VM-Exits. ---------------------------------------------------------------- Sean Christopherson (3): KVM: nVMX: Clear EXIT_QUALIFICATION when injecting an EPT Misconfig KVM: x86: Move nEPT exit_qualification field from kvm_vcpu_arch to x86_exception KVM: nVMX: Add a sanity check that nested PML Full stems from EPT Violations arch/x86/include/asm/kvm_host.h | 3 --- arch/x86/kvm/kvm_emulate.h | 1 + arch/x86/kvm/mmu/paging_tmpl.h | 14 +++++++------- arch/x86/kvm/vmx/nested.c | 30 ++++++++++++++++++++++++++---- arch/x86/kvm/vmx/vmx.c | 2 -- 5 files changed, 34 insertions(+), 16 deletions(-)