From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.202]) (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 A1F66450911 for ; Fri, 29 May 2026 22:23:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780093391; cv=none; b=s5zoYVwgpMl5gWLf/P+1HrHY1HENudHqDJYk8MG6bzC+OP0fiEZdlDBou+KPaNIv6yqlmjGuqx3YsbAyOb0iFP1cpLBe0ceIHAdNRUatHtpXyS/+khbmBoNTKCcPySPzFy/tw+tmjq4OkXxmtWUaybqj+1Z8BgrKD9T7CJgwND0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780093391; c=relaxed/simple; bh=2QUq4Zntx/cN1Mlgi5UbFZ2Zk6wGbdYV96fOq/ek52U=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Ip8JUDSdO6sRIsVrT/Q7z8PtPNd2DKQegCVQ2WM1awx2mYdwKXfz4fsux4xc2rPkHmD+pG/t3XjuG9If00FxIx7a0QTPTeVu779CZgJIlTJhYCXJYIuTmMJsZsOBaD4mqru1LMc5k7KMscvpc7MIPxGNNrLY0ZHlU+p4jkPke9s= 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=pLVI+PNc; arc=none smtp.client-ip=209.85.210.202 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="pLVI+PNc" Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-8422b544a4bso42714b3a.3 for ; Fri, 29 May 2026 15:23:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1780093389; x=1780698189; 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=cOprH2r2W4OfoUuNhxoH+2jlBeBKL8+G7nnMuVk5ujk=; b=pLVI+PNcj+/oJ1AC7B9DHSlHIxRdpuLve2yQoBHKCqB31uXrbJWek7nm0dvEplNdoF DuspBxB/ecUfmVPXAua1r8e20riG0ptA7upprXGzcrxrY2GGQx6BVCKcbYKRYWp8SZfl Z0M7RkzIzg9dEEhFUut1xEEOlGX5llOASJbBCcAMEIShdaiasURvPv/7MJ4IPLm8cnJc 2pvkUf7yVlhtWp0ZCANRwTfiCCjLGSjTfNWltB+AVKgWFIwoFl3LDvEvC80NS4OtJ1T2 dBkUeRPjdTXUMeuAO1kGjs8+NTeRCsRRFeuecGNqSApfUWI5kM4neZWiM6MTveLThiMM 8AqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780093389; x=1780698189; 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=cOprH2r2W4OfoUuNhxoH+2jlBeBKL8+G7nnMuVk5ujk=; b=Qj8ab6MsIRQmeMcThk0KWhdFibHXU9LAw7FbzlrF5twaYqS6qVhMNF30vRiIozsqXc 7rj/4iuI7OvW/xksXKszjQ6HUsi8kCOnDcztDbUNwogzMJ5X49zMveChangF4eqv97sK 6EQWU9nwImQT0k3MVJOK8/e1IsRvPY/bHxkWXZIrN5m1aVIeCXPRQs1giYIgn9FAuEtf 4DNNWnP0DYiwHcGty2ChV+CYe0ue9f45xnzNPIODe5SrStS7mHytXNwGwlqBrLVQDDpV lbmDmyD1kmrpsnMp2CoSGVmNALfdcrSqv39XT8wNRhHIbNbo9N5EDd6wbBLzzNsetaOg H4Ig== X-Forwarded-Encrypted: i=1; AFNElJ8wjR+iTk2hc0ZCbNv/7bigtV/AqiaEmWNJomB9vnIP6GeS4Y5+i/vPvYofr3T79gCTUyWzf61DBGi/R40=@vger.kernel.org X-Gm-Message-State: AOJu0YwAMCBCBfwRQ1lAQ7sj9L+ApW6OxCN3bCJ2VxnPPZ8xKIboikj5 gq43rF+COD+4+MMrg1N/FJllHwx5bN7DYmxaf9Db3fq0XmtbM4+eJcI4vZSSyZpNEQTTMAin7dU gg2IUow== X-Received: from pfbjs21.prod.google.com ([2002:a05:6a00:9195:b0:82f:96ee:b9ad]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:4291:b0:835:4291:6975 with SMTP id d2e1a72fcca58-842255c48camr1437165b3a.39.1780093388651; Fri, 29 May 2026 15:23:08 -0700 (PDT) Reply-To: Sean Christopherson Date: Fri, 29 May 2026 15:22:05 -0700 In-Reply-To: <20260529222223.870923-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: <20260529222223.870923-1-seanjc@google.com> X-Mailer: git-send-email 2.54.0.823.g6e5bcc1fc9-goog Message-ID: <20260529222223.870923-23-seanjc@google.com> Subject: [PATCH v3 22/40] KVM: x86/hyperv: Eliminate an unnecessary include of x86.h in hyperv.h From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini , Vitaly Kuznetsov , David Woodhouse , Paul Durrant Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Yosry Ahmed , Binbin Wu , David Woodhouse , 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. 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 fd3b02575cd0..db8be9173bd0 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.823.g6e5bcc1fc9-goog