From mboxrd@z Thu Jan 1 00:00:00 1970 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 C8CE32D3EDE for ; Mon, 8 Sep 2025 19:52:24 +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=1757361146; cv=none; b=kmrHIcqTqtaOjgzXvu77/fGYFN2sfxBjCnpWMZejJ2mj+dQEUsS+1wRWIAJUjLmcyhaiVwYE+VJnbGG13Gyx2x5Q6wuRDBHClKrKBeeMBMHjKOVdxgGJLoCMfyTZ0qMEcxA5T/62QZ7OhX+ITK6VofKIFmbL7fyzm5KJUAR9Zyk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757361146; c=relaxed/simple; bh=ni41cp1kJj0k2/vDWCHyxCjBN8Adfrh4nUQNG0JAfr0=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=ghYy8AgXmDzlhJAMJ4GUSjOS0zQW8F15B1IMcCajxZUYEvy5FG8gJ4dponfY+UuUlpzsEQ+nmp3EvsKXaI3fqFC03M5h/KwkU3PXpRmj0GTx+I0ymbMwNBA6H6lL/tly3R3miO6xKymku7ZjA6YONI2xcKg5gqCQsp9K/t1MLYo= 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=z2YH7Uvw; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="z2YH7Uvw" Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-329ee88fb47so9074052a91.2 for ; Mon, 08 Sep 2025 12:52:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1757361144; x=1757965944; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=5WmHxV7Lreaj5eVFu8hF6qzhJomNY/sSV63hQxdrkJQ=; b=z2YH7UvwPHG7hOnsoUEJAbW5/zfEZUnPeGWx1nBphACZjKch98yX1KPeI9m/K6QCEa YQuox+R4y1dSujCmUX3Z+Lf+7PgiI30juQCWKwUxHQnrB0/YN8c3v5i7iwj7iTcQsfs0 wzZ4fDMnYo36fsgEPhAZN7O/mkHLgN0d8f8J5harw8RbG78HCXvuAsvte2vQk9vmLcA3 Cbd16EISVJwjqUjXVKan6fUJdN+Y2WQpzUEx63Jx59EP7vC5KzUaZQ4GMo+FL/MxMplA 8yIYDMh9cZrpwtzzdwXobLE3atlkqgSFn0al5IAo03NyZukluiWjCxGDt5riekzMnaU7 vYYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757361144; x=1757965944; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5WmHxV7Lreaj5eVFu8hF6qzhJomNY/sSV63hQxdrkJQ=; b=vpObDi9MyddFCSi3KKtfwUispLsUkDP4CDAPfLchfki8lCKXXZs64sodg8R+X5S95Z XKRz8/J9jX9MY8mNrvT0z354EOC9zcCtpVcttrqw0Ix56AfOPalwH5E1brRl5gq+hQp5 cby/wKdxrbGBXz08Mn2nOuvWC4eqi1VWrzJ6eWjxqcJMKHglLeqhxJW42fPTLyct5Tzy Yd524Dg8s6go2dQjqk8/jKtkimHgNHrRJrx/VRPENTvLts3Km3MRuj8onn2wJwbeZiOf tIeq9hF1ypbmQYZk5N364VKHtZ6U3UAE6l57circNp6DpYIgLb6Au5/grnlDNucsUouK Of4w== X-Forwarded-Encrypted: i=1; AJvYcCXsZ0KXHhbuhd4JA0/vVWQesCdBvIvnNUzOpVxAxASS1AuwBcpFQQZ6WruCR2gnBv31nMJK11Jh8Szl9Wc=@vger.kernel.org X-Gm-Message-State: AOJu0Yzc4/Qt9OSw1vmxI9+xAN0j+fBvl5wYDnpZZ8S/EILVT7DGxbFt sGifL940EmicRHnyXqpiiGTJOoSc+uE9XAn1kYySYerI0EAELdWlCpB4ALxdAoU3xfU18VPzNlU 0JIxUCg== X-Google-Smtp-Source: AGHT+IExCPRBqVtXN8qVa8YjvqbzwvBpn9IxtzEsHXQ/2kgRMpC8TgSSgM/sP14o8i1EVRy2DO9MXQPJ5wU= X-Received: from pjbsj13.prod.google.com ([2002:a17:90b:2d8d:b0:328:116e:273]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:5185:b0:32b:d851:be44 with SMTP id 98e67ed59e1d1-32d43f0b8e9mr11203024a91.11.1757361144105; Mon, 08 Sep 2025 12:52:24 -0700 (PDT) Date: Mon, 8 Sep 2025 12:52:22 -0700 In-Reply-To: <20250819090853.3988626-1-keirf@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250819090853.3988626-1-keirf@google.com> Message-ID: Subject: Re: [PATCH v3 0/4] KVM: Speed up MMIO registrations From: Sean Christopherson To: Keir Fraser Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Eric Auger , Oliver Upton , Marc Zyngier , Will Deacon , Paolo Bonzini Content-Type: text/plain; charset="us-ascii" On Tue, Aug 19, 2025, Keir Fraser wrote: > 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 Note, looks like you missed a tested tag from Li on patch 4: https://lkml.kernel.org/r/b778c98abb4b425186bfeb1f9bed0c7a%40baidu.com Nits aside, this looks good to my eyes (though I haven't tested yet). Marc/Oliver, Can you weigh in on the vgic changes when you get a chance? And a more expert set of eyeballs on the memory ordering side of things would be nice to have, too :-) As for landing this, I'd be happy to take this through a dedicated kvm-x86 topic branch, or I can provide an ack on patches 3 and 4 (there's basically zero chance of this causing a conflict in x86). > 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 >