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 6E2A119C560 for ; Sat, 27 Sep 2025 06:02:50 +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=1758952971; cv=none; b=uIU4Vfiux4t1xEf+pwQZI22cR3oB+SA01GWqwQ8L7jewaEC4+wGJChOzg9hkJ0s2hCYulC/Pif2532Nl2TkkOjMacVmy1Dvjw3oCZvZP2YtKZQdoEbbqvZZf2xuzBW5EEamGzNKNenmdAOxvVm3dbQD4vVBs7p4mFXrdIgRXIk4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758952971; c=relaxed/simple; bh=zCVl73JMB1ILRN0jM2f4aqDdL5c6hRSipsaHR6tah9I=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=tDNi/cmF0/Tcc4Rk0i8fBRYqSKG5x+cKRn5OrbB54fAAkKQ4hpHjP9KaJXnfCIE3N/8yre1W3Dg1XHtp3UvyxBAg/fYiAZwGorxgbIbaU6QXRZ+7+DUOEVd7ZLISb0FXVq7qAnvMqLAcyCXAKCrNl9sFRYEyVKZc7RClqjCXP9Q= 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=Kjzr4HOB; 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="Kjzr4HOB" Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-33428befc49so2970966a91.0 for ; Fri, 26 Sep 2025 23:02:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1758952970; x=1759557770; 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=EZz9pdPxtkQCQg0LwPC7a9M9+XqgI2y1Onp5LAdJY54=; b=Kjzr4HOBQCl4MwfaqGIScTaKZ3yQv7ScjD/ZZlFTf2JjhmakiM6jgI9WJNKTi3tEtP wPKhAiOmL/ueKi3lH/cu1MUwdHbIIBRSoEfPZ5AcwFoLY+vMBCXhKptTEMpV0Y/CsBYK +mu6lmQQIoRj0RC7ElPvdG+5ssuuPMAYzWfD1Xrr5q3Fw1ETlvCWMlzkeLCzDD9YD9ZA A5gZtKuLdLILk2n4iMM31UBid52xYr6DSgKcP2BYFcyigiyoqKgBgb9GSJVR3kq/8gms X+n+S1QEuhLC39XHAE/bTgKYwAwGZNthKgbuz6zVyJ4Otu/Ii1GxDllbk4cmJTlj9J4O uu1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758952970; x=1759557770; 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=EZz9pdPxtkQCQg0LwPC7a9M9+XqgI2y1Onp5LAdJY54=; b=qmpSA7jFKblXe86FdzqFGmh6jXcCNChYtUvDX4AyiM1Fn9tCBEmGQmgdzFi7oH7wTG fLDVTEwRp0iigvv3qIyuXS6E1UUxdd0OjcuUxbHUa7KyjcjhZS3WgvjcOCfq1fqMKu1O WnmSVhjBD8Ek1+q/RTlu8qfmbVlopHNlYZjLRLtNpkXioAylslveEVMeHT7Z0iLnBo2E kD3ifb+YLogOFqzDLOBWAzs+bPao6bI8JejVhhuKVJ8L7ZH2LFylpsnPE2CXFW9KS6GQ 59fJCd2Y4co5YOjm/j5RQ1cEnMhl8T+fEfMNYyal8kkKtRo0DV25JHfW7A337t7aeSp/ N85A== X-Forwarded-Encrypted: i=1; AJvYcCXMtxgv/0hUn/VG3moSnL9AW1kjBEdjeak67gvujarSwaDx+ajLivzpGN1IBBkTqp+RmRN34ae7m1p1V9s=@vger.kernel.org X-Gm-Message-State: AOJu0Ywag/InSAdynh6iNhWGgiCHZi19z9htmQVkEa4a5lqdAfhOEY7J pFgdYjAzyQ6gNgc9c0u5EbL5f4tPGXAfv7SZYKoZatEzLtsRzdC9HmcX4vSwaIj8Nz6liAJ1FKV c4CMzEg== X-Google-Smtp-Source: AGHT+IG+O2/UkKI29OQKSSuWam69+x9DRDtxFfKKLWwebRfAoiKlUD2jq0l73MqVAHzrMbEcLiUIcTj1iZg= X-Received: from pjst22.prod.google.com ([2002:a17:90b:196:b0:330:7be2:9bdc]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:4b43:b0:32e:72bd:6d5a with SMTP id 98e67ed59e1d1-33454f56a18mr9327831a91.1.1758952969598; Fri, 26 Sep 2025 23:02:49 -0700 (PDT) Date: Fri, 26 Sep 2025 23:02:32 -0700 In-Reply-To: <20250919003303.1355064-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: <20250919003303.1355064-1-seanjc@google.com> X-Mailer: git-send-email 2.51.0.536.g15c5d4f767-goog Message-ID: <175895291958.2931667.5042104101547847294.b4-ty@google.com> Subject: Re: [PATCH v2 0/5] KVM: Export KVM-internal symbols for sub-modules only From: Sean Christopherson To: Sean Christopherson , Madhavan Srinivasan , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , Paolo Bonzini , Vitaly Kuznetsov , Tony Krowiak , Halil Pasic , Jason Herne , Harald Freudenberger , Holger Dengler Cc: linuxppc-dev@lists.ozlabs.org, kvm@vger.kernel.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" On Thu, 18 Sep 2025 17:32:58 -0700, Sean Christopherson wrote: > Use the newfangled EXPORT_SYMBOL_FOR_MODULES() along with some macro > shenanigans to export KVM-internal symbols if and only if KVM has one or > more sub-modules, and only for those sub-modules, e.g. x86's kvm-amd.ko > and/or kvm-intel.ko. > > Patch 5 gives KVM x86 the full treatment. If anyone wants to tackle PPC, > it should be doable to restrict KVM PPC's exports as well. > > [...] Quite belatedly (forgot to send the "thanks"), applied to kvm-x86 exports. [1/5] KVM: s390/vfio-ap: Use kvm_is_gpa_in_memslot() instead of open coded equivalent https://github.com/kvm-x86/linux/commit/66d1a7ac946c [2/5] KVM: Export KVM-internal symbols for sub-modules only https://github.com/kvm-x86/linux/commit/d66078b8c990 [3/5] KVM: x86: Move kvm_intr_is_single_vcpu() to lapic.c https://github.com/kvm-x86/linux/commit/16e53ef18450 [4/5] KVM: x86: Drop pointless exports of kvm_arch_xxx() hooks https://github.com/kvm-x86/linux/commit/26caf4d04e01 [5/5] KVM: x86: Export KVM-internal symbols for sub-modules only https://github.com/kvm-x86/linux/commit/aca2a0fa7796 -- https://github.com/kvm-x86/linux/tree/next