Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp875360lqc; Fri, 8 Mar 2024 14:38:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVT0SBi95HE0y1sPTM7kWTTpS7ETTdhU3XxHQkfkMt4PvK2EBvz74MGr6O7MhwyHariahC97qifghxMTbP8/E/3GadJifDLGCQRt5syqg== X-Google-Smtp-Source: AGHT+IGLtOspyQC8t8yp3ciYViWBWIUHC/aWlKs1wjELZcDQQ2ikdUJff002eX5/qJXdCMnxFFYA X-Received: by 2002:a17:907:c706:b0:a45:6cc0:8f19 with SMTP id ty6-20020a170907c70600b00a456cc08f19mr33474ejc.38.1709937487959; Fri, 08 Mar 2024 14:38:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709937487; cv=pass; d=google.com; s=arc-20160816; b=xBw4E0BDaphxl1/i6e0JkIUXUOS6/rpsveBTW7hUHI4hR1CcmaFwXiB85KJZ9e072b n0TBNhoEhAfmdaLrlZM1qbWfRu3WK434wIDBhgYCcfgB+9B9yqHagUtp2j9aG1A11SVu 87/1lBLlKc3hEiOARnndAVycNkoqAMn8EZkF06fBrOUMQhISHOsrq485dEtyoJw8wLaw yJjSt1RVwwhVWFNsHXLB7f/hrU38q9om5lMLcG76piQuXSIq/b/SUd9Aq3NK0iyYVGXw U125sSIhKzzV6I/LYbzukCmd6IgbcglX3CbpL2yg4WkTmUdMRB9YZ8t8DWW5TOvRcDtR wY6Q== 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=vPbWGBEv8YflAA5jQeJzy8PnVvXeLnvTmYa/ZZ4fLow=; fh=+2HtXLLf5sncYS3lnFO0MEYKs/ILp+FW2ipcsTJjlQE=; b=U9r/Qml0dgIVL5YllYRhUcPPswVwkFHYFIu9JZzR/t7V4ppjBc9PVX82woOJU81c/z 4T+R4iCnOoND2oVWkSkwHdwVIqTGxxVlmsXg3Ry6ohQJaDiMDp3BQpMb/tJ5lTgNHF7o ZZSPv782GIPNLURVk1HDCzb9UTmSM8vZKsmWRqsMQaPtyvICpbKfiwDaMm1t5ISIRWNS dVsbbjj2TvBn/nDPVMYOK3dWDq68r288yCicY9nIlBeBHtzaw2z4uEh+yKQzDmYp3V9e XXwvh2LHkJ93kXQ2P3+Xf6nK8pnR2m+4V/FMrcjNU6Wt55ThyDE4v1ya+G9FC25VMUtt EZDA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="L/+BhC5p"; 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-97659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97659-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f12-20020a170906048c00b00a45ead7b3e2si196230eja.647.2024.03.08.14.38.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 14:38:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="L/+BhC5p"; 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-97659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97659-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 am.mirrors.kernel.org (Postfix) with ESMTPS id AB32D1F21F10 for ; Fri, 8 Mar 2024 22:38:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2822A481DD; Fri, 8 Mar 2024 22:37:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="L/+BhC5p" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) (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 CA64A405FC for ; Fri, 8 Mar 2024 22:37:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709937433; cv=none; b=hlz7AiJfxkpORn9cChCNYLJBmYzfuK4R18JQH+Yu7SqL583J2zrfCw9jFgO32PU+kWfjt38IcDSAa4ZAal5btw3jahh0B4BCZAmr9vU6DR+2w8FgMXpL/gzKldVJy5DNqTpXe4nG1qYU/hZmhjg+abn081/D7tNScP8uohBUYWs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709937433; c=relaxed/simple; bh=uXQXgnPJrZOKe4RbgiP6EoFj6TNvC6MdhGnUCOQc76Y=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Wfv6QLUXw1QWVLGQ3s8YGfME7vo6BbSRJtx8zIVRpEhLx4GIjOOUmBMg6+F52+py4STiopKXiTn6RBoRHqd9+bIntKbxh1plWbUPuNmi6gcWQjKf1MAo851948J2iexKXT60JEtAf1SiCrKcVpIPZ43JGPIOB/ZwxUg+fZG/M7o= 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=L/+BhC5p; arc=none smtp.client-ip=209.85.219.202 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-f202.google.com with SMTP id 3f1490d57ef6-dcc0bcf9256so2143612276.3 for ; Fri, 08 Mar 2024 14:37:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709937431; x=1710542231; 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=vPbWGBEv8YflAA5jQeJzy8PnVvXeLnvTmYa/ZZ4fLow=; b=L/+BhC5pCC2kPV06vo0Omz8nRSwI6LeEvH4hAEizjqGX6PG6MUUAyhA4phWhAUnEhu UN1/h9XT9EUZ7rmFtvh+ZYlzfb5/gqHPlH1+KPTGK2OQNNbiJbIKN5L9YAjtqrwQNYMN GOIXtJhxcmfQ0BZyQ3R5e14n7ta7opWv7q+BEuXWhVFtccHpsk+qi3QrZC2BStVY9vSX sOocFCMMoL1qL2bBcuUOYu5j7V24kL3kc+qtq1N0ZYTcVeRgJLMbwUW4hiu718mZrfAh 8R4zw7p+hy/FZOuy6hs6ruyLDx0YS8zWI7znJxvfLzPaMYp+F6pckidH+oF9RhuSejqd 6MpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709937431; x=1710542231; 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=vPbWGBEv8YflAA5jQeJzy8PnVvXeLnvTmYa/ZZ4fLow=; b=UCjYihR6Gjn1dP/r7SE3DYf6GcbjIo5H30Oq9pGrPa1+41F/pzF4coRkBPK8W+/cQ2 rx5AYqdzuZgXRCTsRx/rn2XthWeV7GEGs9f6T5cI/b+fo1oxKHIRRFOup8kOzRXpseSa LncyvEq6E/ndKKIMzNez54xfj2si+lxWmhEaBMc8tYo6LO4UIl9C/UsiaXd0mGQlyoI2 x4OX4D8bv3etN7f6Djb2EXz1oN4s3bBDqNLZho9489wKM66eweJfB3eTmnJToy+8lxgz rVFOYZH9rohe46S0bYQtyz2IpUfYkyFm7ssT4aG+p2BCx9JaJcLGKNVjepQVw1PmX4TZ 2sag== X-Forwarded-Encrypted: i=1; AJvYcCVjVfATZ9kN0cJ9NCnmNCRSuJGyIZrGiPF3Ik8IAXnpDvAIqa0OSwFr+vm1Kwhg2vwntPCeT6KvzQkCUjgUhNWgELcC0EH+ukjwouOH X-Gm-Message-State: AOJu0YzTcEQDzDrZWKLP6u6Jm3e3+bHqZJNeMiSfudJeSNS+hulxXlaY 9eVH963gqY7kgmntCBjx1veA04YF/rDyY7OXoj8p5hz5DaMjMd1jWcciy1mt/rtIw7iYf7+VsM2 Lyg== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6902:102b:b0:dc7:3189:4e75 with SMTP id x11-20020a056902102b00b00dc731894e75mr29989ybt.3.1709937431047; Fri, 08 Mar 2024 14:37:11 -0800 (PST) Reply-To: Sean Christopherson Date: Fri, 8 Mar 2024 14:36:55 -0800 In-Reply-To: <20240308223702.1350851-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: <20240308223702.1350851-1-seanjc@google.com> X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Message-ID: <20240308223702.1350851-3-seanjc@google.com> Subject: [GIT PULL] KVM: Common MMU changes for 6.9 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" Two small cleanups in what is effectively common MMU code. The following changes since commit 41bccc98fb7931d63d03f326a746ac4d429c1dd3: Linux 6.8-rc2 (2024-01-28 17:01:12 -0800) are available in the Git repository at: https://github.com/kvm-x86/linux.git tags/kvm-x86-generic-6.9 for you to fetch changes up to ea3689d9df50c283cb5d647a74aa45e2cc3f8064: KVM: fix kvm_mmu_memory_cache allocation warning (2024-02-22 17:02:26 -0800) ---------------------------------------------------------------- KVM common MMU changes for 6.9: - Harden KVM against underflowing the active mmu_notifier invalidation count, so that "bad" invalidations (usually due to bugs elsehwere in the kernel) are detected earlier and are less likely to hang the kernel. - Fix a benign bug in __kvm_mmu_topup_memory_cache() where the object size and number of objects parameters to kvmalloc_array() were swapped. ---------------------------------------------------------------- Arnd Bergmann (1): KVM: fix kvm_mmu_memory_cache allocation warning Sean Christopherson (1): KVM: Harden against unpaired kvm_mmu_notifier_invalidate_range_end() calls virt/kvm/kvm_main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)