From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.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 A0EB3315765 for ; Tue, 19 Aug 2025 09:08:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755594540; cv=none; b=peEEjf686rPAmBr+2skO2X5lLPpDJMpiZn/0Id9ixflCQDtA1C6H0tW0AjvlJTUQKmJ2hLdI0kvktgPmeCpExEU/7N6tT1Tne+DnHXs2hyjLgIBljdcNmhvEmQzN6ZPcgDkgq14PxQjcJJ+l4k/ocEy1/gGrxPcNBoLGuJuddIk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755594540; c=relaxed/simple; bh=32eSy7Z4IW+gyNmSJKf1tVe8I50lsi+IT5eOuyiXjTA=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=OwtwucziB8KolUVwBXrzRF4NN9426hj4f6koOPcGT/YxwjX7kSBNuzJhfmbrPuwDpHuNuAJQYcFRASV2j0uhZZfihEoXfQVeQqafnQLM2OYi29brTfdViSDh8JnDPoVfRdUCsXOrHNwyx6tj8P42R6R4qLRIqNdAdFNByFhKrOU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--keirf.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=vCDwbNif; arc=none smtp.client-ip=209.85.128.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--keirf.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="vCDwbNif" Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-45a1b05d251so28769965e9.1 for ; Tue, 19 Aug 2025 02:08:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1755594537; x=1756199337; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=xSaurBdtkeatTy6B+DotbAZ9znHLVwGVjALlNHAHq3k=; b=vCDwbNifQjDaBLXADsOljIrfDaEyhJorqc26Hpxb1QJnDYSRwN7zskRMEA3j4XKqXV sCk2/YKCCM5wyegGBhqZI564HKx+Xff1uuGDa0qN7wxduo53QJtkdOcEiazlwe5YcFPD kqQKO5tf+G4HxbGze1ZUeJFW8jgbyZfBAPnWx3Jt5KhTNTCAH8NjC51hY1qBp9RESq4q vWeDCYcjfTw/qP8NnRtZ4u4Zmq7pDYjDpMXJrbry77URalvDe0za2o77RU9nCn8l1rEM 630+w0nAVLhPt6uUtpTY3LHRDy6/wE4Pwgvxq5DteU1f7BwmeFbwmhrl3bHTMycsygH2 d3aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755594537; x=1756199337; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=xSaurBdtkeatTy6B+DotbAZ9znHLVwGVjALlNHAHq3k=; b=dmrnJkf2JiFWuVXyn4vPQl0FMZBIeIgcbQdKFWHOmR3lqodzCFQ4rSeO5Z52QZWrNj H+KRIClrUM5Hm1k4o+4AEIvF/ANHktkZAVbvjmBI/IvpGXY3kgHtMotJeGSRcRgTVesI iigeDt3HzPcsu0M3Ug9OrGjBLp64tD16et+TMJXSGkB3qDubG/2kobn5+V7ejq2MXXMO 7Dq1DlvP+0TWZWJvUWVAa20bxfv0sN/dxHH1JpSGndhB/eB3Vznc00/r6wdbPzo2tAje Ii0jJgiZrBJZNfYnsH021CmImxbA8PlN9WvpxYTVM3wJd1WbTgTW5S4zBb3Cxq01wJNp vucw== X-Forwarded-Encrypted: i=1; AJvYcCWT2pV85PlTQgUvnyrbbvh8jJxlqVHyk3oAswBf2l2rYCm/7lCo44N04Xd4yVn4CXwxQlq93Tftr/R92ZA=@vger.kernel.org X-Gm-Message-State: AOJu0YxpFcuQFeyC/HoUGMv1OtvTxCZBveuP+/+JLeRLaUo2BHzHKJ6R 4eapCDz8NYnbJYBWr+M6+aIpxcgeMISpAkqy0/mUAmL9Lq0URQ3C7L+mnhNu0H19vmlDeH9N3BI 9kA== X-Google-Smtp-Source: AGHT+IHFzh5SplXqAOBrKAfeyO99AyDuMMskBj43Avq17S+aAskX3w24CpOWJaJWAvu7y8AaSea+fSpu8Q== X-Received: from wmqa2.prod.google.com ([2002:a05:600c:3482:b0:458:bdde:5c9b]) (user=keirf job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:4ecd:b0:459:e35e:a90d with SMTP id 5b1f17b1804b1-45b43e0bf28mr11429015e9.27.1755594537022; Tue, 19 Aug 2025 02:08:57 -0700 (PDT) Date: Tue, 19 Aug 2025 09:08:49 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.51.0.rc1.193.gad69d77794-goog Message-ID: <20250819090853.3988626-1-keirf@google.com> Subject: [PATCH v3 0/4] KVM: Speed up MMIO registrations From: Keir Fraser To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: Sean Christopherson , Eric Auger , Oliver Upton , Marc Zyngier , Will Deacon , Paolo Bonzini , Keir Fraser Content-Type: text/plain; charset="UTF-8" This is version 3 of the patches I previously posted here: https://lore.kernel.org/all/20250716110737.2513665-1-keirf@google.com/ Changes since v2: * Rebased to v6.17-rc2 Keir Fraser (4): KVM: arm64: vgic-init: Remove vgic_ready() macro KVM: arm64: vgic: Explicitly implement vgic_dist::ready ordering KVM: Implement barriers before accessing kvm->buses[] on SRCU read paths KVM: Avoid synchronize_srcu() in kvm_io_bus_register_dev() arch/arm64/kvm/vgic/vgic-init.c | 14 +++-------- arch/x86/kvm/vmx/vmx.c | 7 ++++++ include/kvm/arm_vgic.h | 1 - include/linux/kvm_host.h | 11 ++++++--- virt/kvm/kvm_main.c | 43 +++++++++++++++++++++++++++------ 5 files changed, 53 insertions(+), 23 deletions(-) -- 2.51.0.rc1.193.gad69d77794-goog