From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) (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 4E1EC9475 for ; Sat, 13 Jun 2026 00:03:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781309030; cv=none; b=UzP/9i2l//4jdRqNcYV3OPT30qSiS7FmCKECTdFtDCGtpm0+lHmDtLSfz6CrOpjlbVDLafMbVPFoMEGmgqTTAe9TWOZXkM+2h6a+bXhXF2tko21QHK0t1vZw93vFaePBKOAxCHcMT55BULCatVAA46aaMs4RpIxbRXYmoXGvWnA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781309030; c=relaxed/simple; bh=spkvsYJxIJ/bt30ONrUQHX3Q8fh8GhoPa04C0mbnnDQ=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=RpyfWXVr7A+kuqhytJTu99mwHhp5lcpWvCDjPvJua0zBQ0V5g2SWc9neN0HD03xUbT4KoW2r0uEwUT6SABihjsqNGyzkxdltYl6cgqFFV/76HwiUqf4wNa4mcZ0LW+wfpLTOUJmB5gQN8CGY1xRyUnTdd8a1ZGBmVihOCAozMqw= 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=D36rl4fs; arc=none smtp.client-ip=209.85.210.201 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="D36rl4fs" Received: by mail-pf1-f201.google.com with SMTP id d2e1a72fcca58-8422ca754d8so1163767b3a.1 for ; Fri, 12 Jun 2026 17:03:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1781309028; x=1781913828; 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=XsqX8ul31omnahVYm0CzB5wNanpXhf4DkeREH1vPrD8=; b=D36rl4fsuOwoVExh/PE3RNnU72CpM+GwofYuualelClggr/wLTP8jbr+StR7vWyzOo 86qw8QbgSRUXLfwibGS8o521OXTkQcBYq4GuQhv4EPBGC1vhKXoJEhZjcIokOpE4gLlv C6HmURXlM0saoxQn3EXDhoUXEgrUgADWJhSokDvQTKsUp4TryDwVJJp/ITQ8iZ96GStp Awdv/CxLHSxChMF2g7rmjZ795tnyZLbInJdgx+Yln7lQjkhhR8dVn97DObysQkb8NgKj fp3m9hlFN/pSCTrnj4Xo/37zU5yXg/ZRc9D8vmHdvI4ferdk20cHVcGw5rU2dtKXynvv rIcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781309028; x=1781913828; 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=XsqX8ul31omnahVYm0CzB5wNanpXhf4DkeREH1vPrD8=; b=KeEX2sOOOs+74/sOTjPgdoFflZA5Vp+fYuMKReroilwi9K3LB7v5kLcqjBbTI3jZDe ZLsgKMz3+6rL56K+i/GF16KJhQbLsuB46yh29OH/h1/KvI0PBmN/pVWAsV2MBKZzrVb/ dcA/Pnxoltd9rYRO/S37y7L3aPGPwgOWYt7wo5NUBpg9nBOEE+E6l7INS+lGInR3/1ua dMQkRqXm8DHmBlz5sHRLOQi/XC+Wd6EeLi0VUQG1aBTq+lYIEZ7uL11BCBLdEwXYC8AP 1li8jPItkfBio/OKwXO4mQovMc1Lf0tsSI9n+rRgZKCLHekFjLd0iybLKFQJJF3qPwU+ w68A== X-Forwarded-Encrypted: i=1; AFNElJ/Zo9t8AlcXC6VMqriix+scrQhsGJVX/4X8uM3om7tyns9JDiiwXgAM0uPgquNwY5sx6Z958UqAiQcVED4=@vger.kernel.org X-Gm-Message-State: AOJu0Yy6tWWK7kuQKC8L3n/pCsduYJZAcvXQGaNlfxKUWJXzlxv4UB4Y NItv5RCelXn/bqNRDfHZ21Fg/5U7uqc87pBJvdSDItmBMF+nhamXZVFQkXj0edqJbWGwtsUc/QH 25s6Beg== X-Received: from pfbmt10.prod.google.com ([2002:a05:6a00:6e6a:b0:83c:61b2:176b]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:4f8e:b0:842:6a97:52f7 with SMTP id d2e1a72fcca58-8434ceddc63mr5238911b3a.19.1781309027449; Fri, 12 Jun 2026 17:03:47 -0700 (PDT) Reply-To: Sean Christopherson Date: Fri, 12 Jun 2026 17:03:09 -0700 In-Reply-To: <20260613000329.732085-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: <20260613000329.732085-1-seanjc@google.com> X-Mailer: git-send-email 2.54.0.1136.gdb2ca164c4-goog Message-ID: <20260613000329.732085-11-seanjc@google.com> Subject: [PATCH v4 10/30] KVM: x86/hyperv: Eliminate an unnecessary include of x86.h in hyperv.h From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini , Vitaly Kuznetsov Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Yosry Ahmed , Kai Huang Content-Type: text/plain; charset="UTF-8" Drop an mostly unused include of x86.h from hyperv.h, and instead pull in regs.h, which is need for at least is_guest_mode(). This eliminates the last include of x86.h from a common x86 header, i.e. solidifies that x86.h is the top of the pyramid. Add a missing x86.h include in cpuid.c to avoid build breakage. No functional change intended. Reviewed-by: Kai Huang Signed-off-by: Sean Christopherson --- arch/x86/kvm/cpuid.c | 1 + arch/x86/kvm/hyperv.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c index 591d2294acd7..2698fa42cd97 100644 --- a/arch/x86/kvm/cpuid.c +++ b/arch/x86/kvm/cpuid.c @@ -28,6 +28,7 @@ #include "trace.h" #include "pmu.h" #include "xen.h" +#include "x86.h" /* * Unlike "struct cpuinfo_x86.x86_capability", kvm_cpu_caps doesn't need to be diff --git a/arch/x86/kvm/hyperv.h b/arch/x86/kvm/hyperv.h index 65e89ed65349..1c8f7aaab063 100644 --- a/arch/x86/kvm/hyperv.h +++ b/arch/x86/kvm/hyperv.h @@ -22,7 +22,8 @@ #define __ARCH_X86_KVM_HYPERV_H__ #include -#include "x86.h" + +#include "regs.h" #ifdef CONFIG_KVM_HYPERV -- 2.54.0.1136.gdb2ca164c4-goog