Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp818928lqo; Fri, 10 May 2024 16:52:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXO+8GkUPZcJGRIRKKMuFmhgq4ZXJxkMcTqwqpDufefQYcAApla7njERJj549088S4Zeyo2SCyKC9/LMxZFshUcCSc2GMrRuosfaX0Ntg== X-Google-Smtp-Source: AGHT+IGdWcJSWI10AxUl8EtYpi0xtFmbAzM09l0dySqqGqVt7QCyYZ8fCq7GFiW3KRFZ6v/t1kpM X-Received: by 2002:a05:622a:14cc:b0:43d:f870:a400 with SMTP id d75a77b69052e-43dfdb468bcmr41699611cf.42.1715385170949; Fri, 10 May 2024 16:52:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715385170; cv=pass; d=google.com; s=arc-20160816; b=YmM1nkOM1/ZNspDqEhx6A1Opwd6oPXmOQw3EDz0HoIOUAlVSkRkznP07fcwknjaS1k z88f3t3r0T1d87IvJISes9inOKrpChwq9EgN7y2FhXEU+VVwYsLdj6/9g3yrp6r+eNkj YeQsFev9ik6/N4G0iKsDGku3l6FjjRVfvy3+IGiKl5gkH15RXXgRdM+1ltLm/y0EUl7w fSW3rTHc+CwHXS8K57XauehAt3h/WeciHE97n9/OgTPsYuTuqAWv0arscCoqhak3A2Ol cFLFN7SuLJHguxNlmOBcQh+uKKNGMz1NB5aXClQCAaVmO/L7D12LdLhmLxugn4tsP3dJ RfRQ== 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=+oxS+OE/YCIQOoW32vIVdH9ODHELlY8/x8l7G2xYxLk=; fh=U6glnm5HL2pmCiAFSw8PuKU9UviFF/hjkfKvdjypDDY=; b=u/9QGMuahIk3byOvWkn+wSNqb9bX4gkzIf+wZrry1Gu+IAbSLu+LjxQme6RmSxFnvd PD++6/d2gHlO3HeALvSyq2+BAq8pGCSYVoNTRZEgFs2h3r+6b7NiX6z7XzM5kHJTxse7 Xe8Dh+O2GrMUnQpvB6aNcXEiZZfjfvpPtTZsEOeEZj6AERUl9HYPYfYZ2wJAyMOnmJIY LQqMa1K/cZwZA2HH44D9JAwYC7XbXkc0xBPe8kofQqvZMCzCOCMsd+V0yK3ajQ5cXhJT ulsnWSu565D24Ls6Q1bCuYeUz8rx/VQShJno+eRJbbgw+pw7UdoCGLUkhueMgTKxD1uP kQww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Bkce7VLF; 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-176308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176308-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43df566f355si48086181cf.255.2024.05.10.16.52.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 16:52:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Bkce7VLF; 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-176308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176308-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D09BA1C2188A for ; Fri, 10 May 2024 23:52:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD40B17995B; Fri, 10 May 2024 23:51:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Bkce7VLF" Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) (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 B8FFE179206 for ; Fri, 10 May 2024 23:51:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715385066; cv=none; b=haIeUlx+TNI+67FZXLxaNxy9uPMWVZDQd5M8Gh/kwDtt7Dg/B69NNgRDjJ3mobacKkm/XwbRu/kOIe5K2cfjkiMR/scGcze1TL4TQZINn75wZ4E0J1GJsMIwZCw47zQMssKDydNz2dwVCpapTHBtKbRdeEaUFFWxl+p+6/bh2j8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715385066; c=relaxed/simple; bh=ZlffHLYLW2tKey64BAi+uDrFxzH6O45Ynpm+ndlWyW4=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=c2X7ab7YYuAO1ZnWy9lZVEQLo/ItoahWTuU+zSVYHvt5ZBkhWF9UELsVRcYvHQu+G1AaD6WvaVEez8/TOSSEJDdCsj294ZVFhCx3tPzWBv42ouoaxYj2xjPEv316g3vqF2lhAnAEwrIe/B3VBw34m79o/vYpowMg3FpjiEZyjHs= 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=Bkce7VLF; arc=none smtp.client-ip=209.85.216.73 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-pj1-f73.google.com with SMTP id 98e67ed59e1d1-2a473ba0632so2357007a91.0 for ; Fri, 10 May 2024 16:51:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715385064; x=1715989864; 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=+oxS+OE/YCIQOoW32vIVdH9ODHELlY8/x8l7G2xYxLk=; b=Bkce7VLFptAAjRDgl6JGndcB8omALDmqk212F+Mg1jtz9S5VdxcGdxKajZ3B31yMB5 k0Zz/zbAlZBWD5BSQ/zfcZoS659Nx0ByCRjJIukHOx34YRLs2ouo9ZKVsONgEMutvwiX KW6omvvUabEnfyOJeE38jqK7zbarm4+u2qyP61GrW/CdvGkRJXYg3QX26ZzQ5j1kAtnv LhAXGCPmppz/nqtzky23ESEm30XFEYb1Pyyeb1NzauN+14av7tIOWQa2r/1MsEujJew1 UjJgtuVvaDC0haGJiOn8uFSeXaGB5MKlN9gKoTQHF3Qzx1e9RhaeIsJVV8YjPwu556QO f35g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715385064; x=1715989864; 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=+oxS+OE/YCIQOoW32vIVdH9ODHELlY8/x8l7G2xYxLk=; b=VIq1sIjWA5nvqjs5wQ10kzq/Mqwj37Hhav+42A22xLYmE9IJPamz5PxR0bKvW34VXY pQOlgSpS0YAz6hVpuDTCWzwGAJHlklqMNAGHAiVgmTJ/qBiGej+Xt+wxHcdgN87LQiMo UEdJopgYroaZSbgRlWoN6P3Cphnqg27wKroZq1sFEzUHMY3n295W/ylCaNCSHmy6AC2s wuhLyPCEiBgKW+uHd9WVXkFkjkmXiGOY0GNiH/172XJGW5mEyI8k03hzj/+LZou1ZVJ4 /R7tHpxbYCCgFHlMYJnymBHChNA8CI4J0LGO9kIen302s0QcRx3qI7DHfxDaXALA6sPe tOdQ== X-Forwarded-Encrypted: i=1; AJvYcCVv/8ZCaaHHlNs4+uHTi4H0C29eWqkFd7Q9pDjX7o0hpVnZ0JGTiO7M68Ni0Tw5JSIZcCh9YImWeD2wlCpb1i4V4rYIxSlepllKLVgz X-Gm-Message-State: AOJu0YxoOKPugsgngqab2wpXrgrAFLaVwv9UCR8LOG4lRwYirbwd2hJE ojs96WpujMbKWGsgS39lw/0Cr3XqRvWrAaWIXKa0YWo52gnYsu1P4bbr9esqJDYlP2L8ErVNLl5 ryA== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:902:fb4c:b0:1eb:7b9:4f7d with SMTP id d9443c01a7336-1ef44049833mr757285ad.11.1715385064140; Fri, 10 May 2024 16:51:04 -0700 (PDT) Reply-To: Sean Christopherson Date: Fri, 10 May 2024 16:50:48 -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-4-seanjc@google.com> Subject: [GIT PULL] KVM: x86: MMU 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" Tag says it all, though I feel the urge to have _something_ here. 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-mmu-6.10 for you to fetch changes up to 226d9b8f16883ca412ef8efbad6f3594587a8dab: KVM: x86/mmu: Fix a largely theoretical race in kvm_mmu_track_write() (2024-05-02 07:49:06 -0700) ---------------------------------------------------------------- KVM x86 MMU changes for 6.10: - Process TDP MMU SPTEs that are are zapped while holding mmu_lock for read after replacing REMOVED_SPTE with '0' and flushing remote TLBs, which allows vCPU tasks to repopulate the zapped region while the zapper finishes tearing down the old, defunct page tables. - Fix a longstanding, likely benign-in-practice race where KVM could fail to detect a write from kvm_mmu_track_write() to a shadowed GPTE if the GPTE is first page table being shadowed. ---------------------------------------------------------------- David Matlack (1): KVM: x86/mmu: Process atomically-zapped SPTEs after TLB flush Sean Christopherson (1): KVM: x86/mmu: Fix a largely theoretical race in kvm_mmu_track_write() arch/x86/kvm/mmu/mmu.c | 20 +++++++++++-- arch/x86/kvm/mmu/tdp_mmu.c | 75 ++++++++++++++++++++++++++++++---------------- 2 files changed, 66 insertions(+), 29 deletions(-)