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 1497D26ED5C for ; Fri, 19 Dec 2025 14:57:51 +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=1766156273; cv=none; b=icoF7Xs0FfPn35tHRurCbUv8TFLe3jYlxIDUEEdr/o0WTkrvbkuilK5xjjEWsCDAdUWHWIBMce2/sgA4j/rMn5G08SHvEDUsO9j4QhFoGLnAeEfgO8tqHQn9J+sBTwlqWyK2wiS/UbxUq9UwDLkII+/7/sRLQO5U3sAKigrLtr4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766156273; c=relaxed/simple; bh=mkNqhV9WiF2+nf9rqKSXFDPOf031Yc4BX0YxsVb/OPs=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=szDU+P1XWxBlGsM1q2cp3IrgNro26VBYgiBcC8975Vxp0iwuAHUgSZH5Yb5na+4aFBEs1Vjq90Vp9oTc+BM/nBhBxt8YuhbLYzftzjGBA5vC4lYrGiD5oua62uT9ndSrR4p+/Flu/unQCMvaicc6P29SNGuSfvBlJPDgpybRQgU= 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=1PK6J7tb; 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="1PK6J7tb" Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-34c38781efcso3375940a91.2 for ; Fri, 19 Dec 2025 06:57:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1766156271; x=1766761071; 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=5MqWiCmNEH8alnJtLTveyyVgFFstQuw8nmjLVj/SWzc=; b=1PK6J7tbn/5Q8mxpbFh9UWGGwKtCPl/eQoZ2YZFZlhXSd4t89e/lOpQ/6wFBw0Dtt6 /9VHa0XfCkbI1xidEQgteqzj6W2Z0/Zb1R8kbl2lf8Ye64O1LIl9t/RZW5YkEBbwPw6K fSfhj6nJtRgesqbOq0Mgih16ljN9wVV0aO09kJEAMDB7sOgxyfEz35Xyprju++DfcwDC H9sINGojWDeoTDNwdyG51saV5DgQoJ2cQ3QVIWbpsc7b/ttJd/v7XCi1YHe+uEpLxd3S fOwXSE6n6k2OFhD+4hQ2BAqrHUrvxdb0lQPU0xmllPr2bFqxg8zilndxEskIw4qfR+UW LzMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766156271; x=1766761071; 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=5MqWiCmNEH8alnJtLTveyyVgFFstQuw8nmjLVj/SWzc=; b=L81E9+L6Kvrz76FzpZEkot+aa1ZgAUPD2h3RhgnaOuOjS+L6u6BB5OcFlqyhH1VcQR Z9bqrB52b1x+aRVQAwgXitGZ1BbEvfM+q8vvmbRQaQLhNtcsPaN1ddyVZnmSejyUZT/i +nCAbsHbYQ0VnoWcis1rX+Ua+CnN3F0xIt4KTnajwd5/uiocHP6Z4hqLOcR4Qy9lU7DC xLwFHQELluwn1by2nUfok55jjPI8caPDAJV9mKpSSRTEK+Xmn7xz8+Y9uRDDFH1Tphp+ ydkj6kh1d7PpFj2KLNmQ4v9IYxpOG5d5MBxfESP49BPD8gMe6LMScBrWLC0EWijc7m5X Si7A== X-Gm-Message-State: AOJu0Yy48FP1MatMjS+M+262NaJa7lecwHznsmwJ6jn2q9N5p/aQqZ01 YGX9XbqmBeE4kD0kaP58G37RUzzQAJBvau36bjX19MHac+/GaPusICotSrJ7LUHOH4CVOONKveh UOWeX0w== X-Google-Smtp-Source: AGHT+IFclvLPSA0J0AyfZYWwUmH36gc8jxESS4IFZSIxx6EqTt6mr/Mv/CYJlijNnMios0+N+Xc3g8I4Ank= X-Received: from pjbst3.prod.google.com ([2002:a17:90b:1fc3:b0:34c:d9a0:3bf6]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:53c7:b0:32c:2cd:4d67 with SMTP id 98e67ed59e1d1-34e92142bb2mr2492750a91.13.1766156271429; Fri, 19 Dec 2025 06:57:51 -0800 (PST) Date: Fri, 19 Dec 2025 06:57:50 -0800 In-Reply-To: <20251219075235.GV3911114@noisy.programming.kicks-ass.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251208115156.GE3707891@noisy.programming.kicks-ass.net> <176597507731.510.6380001909229389563.tip-bot2@tip-bot2> <20251218083109.GH3707891@noisy.programming.kicks-ass.net> <20251218083346.GG3708021@noisy.programming.kicks-ass.net> <20251219075235.GV3911114@noisy.programming.kicks-ass.net> Message-ID: Subject: Re: [tip: perf/core] perf: Use EXPORT_SYMBOL_FOR_KVM() for the mediated APIs From: Sean Christopherson To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, sfr@canb.auug.org.au, linux-tip-commits@vger.kernel.org, x86@kernel.org, pbonzini@redhat.com, kvm@vger.kernel.org Content-Type: text/plain; charset="us-ascii" On Fri, Dec 19, 2025, Peter Zijlstra wrote: > On Thu, Dec 18, 2025 at 10:40:51AM -0800, Sean Christopherson wrote: > > > > Include the arch-defined asm/kvm_types.h if and only if the kernel is > > being compiled for an architecture that supports KVM so that kvm_types.h > > can be included in generic code without having to guard _those_ includes, > > and without having to add "generic-y += kvm_types.h" for all architectures > > that don't support KVM. > > Something jogged my brain and the below seems to work for the few > architectures I've tried. Let me update the patch and see if the build > robot still finds fail. Nice! Works on my end as well. Just when I think I've learned most of the build system's tricks... > --- > diff --git a/include/asm-generic/Kbuild b/include/asm-generic/Kbuild > index 295c94a3ccc1..9aff61e7b8f2 100644 > --- a/include/asm-generic/Kbuild > +++ b/include/asm-generic/Kbuild > @@ -32,6 +32,7 @@ mandatory-y += irq_work.h > mandatory-y += kdebug.h > mandatory-y += kmap_size.h > mandatory-y += kprobes.h > +mandatory-y += kvm_types.h > mandatory-y += linkage.h > mandatory-y += local.h > mandatory-y += local64.h