From nobody Mon Feb 9 03:32:54 2026 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 7E94832C8B for ; Wed, 11 Jun 2025 00:10:52 +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=1749600654; cv=none; b=Kq23PyRh/9GaIOoumSrXK3Ex3UfvbQqSM98ew8VGGS+qK+NGue9DEEWPfXGmJo+lpWD0pH/jjH1Sj6CaoCJS5B6B2IYCpoiki+0CjCrSwsbOmZrbekeFe/xPh3MuHOHD8gzrmnLMxPzkNB3sNKyOXDLotoHosYdwdIjAskJYvR0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749600654; c=relaxed/simple; bh=DpElpv38Km3z88hWj7L7ltQkAiroQboKh3ua23RYJns=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=cd2+0gE/rXMvMP9aCKygLsejzNpAxaY8KbygHugbHP1gLMRnSEsTOLPH42ptsHxufWaEOlWDFlSe38aCniH3Sf7fo0nASpvWnQmfK09b+/v5T31AYG2xNDwC5mLC8TVoL8GdZan7FTkiG7nfmuNeZO0Gt/4o3logUPhm1DAuP24= 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=HRJNnWok; 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="HRJNnWok" Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-311ae2b6647so4603656a91.0 for ; Tue, 10 Jun 2025 17:10:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1749600652; x=1750205452; 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=2yZMyl9DsHgqKNlFS7xPspHEMiNKaL3c340/uFTvPNQ=; b=HRJNnWokiNxA+oSoz5xpwZFj6zjCZPCDx8INqKLIQsrmgQsl75pv61QUTtTw4LLeYl kDaEOmvE/Hxjhonx3OBmYfwdiXCQ1LTDPMis/4hoadTY/uw7w0h1E7vlCmljZrJ3XlMB yDo5Uo6p8V1/iFy+jojWmy5r9EJsOTCbv7EsifrHzhzPxrfDlGkXnnYL+DEZ96WveXyE XGiXT/iq3tjA/giN6LoBO0p0Fzfc/bpkDsLqqFiNhkxF2HyL602gvzuJL/aADSZGTko3 KMDn7FG0cPhvWi54kGcuuL7k7daGs5QoXI9ClpHa5Q/RlZ5RdV7uoBAXL0CgbWwP6uVu HeOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749600652; x=1750205452; 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=2yZMyl9DsHgqKNlFS7xPspHEMiNKaL3c340/uFTvPNQ=; b=ZXwvswUMg+zOu/hCkUPHXGIQ2TCeyaN8S4Gy0pd/MOl2I4lClrmUlZRRnNguBfHGZR b1lFlrgU3QEm9d1w2Ephlr5bDMt9MYsKkAOd4XBvEiJ2kTDiWkair3be95KcXuVC4UtF RGkltkuqso6Lkd3dAPAqywaP9OUCV80gfMRpLmxMaB+z6E24gE3wHz5ulXENCKe3yOj+ F633GGoHpLpuaVa12romTiBK4KSBcE70lGcilOnuQKfQcStSfX2nlNmYHqJR6m3RLDzO Tb/qU1gHu180wp/Ws4cYYBgEWWf6Rz04Z4nFdHh7QhDqs8c3+1l/5MhbuG3d5HTQbZiN W7Lg== X-Forwarded-Encrypted: i=1; AJvYcCWR1h8IuCppvn8jxtGx3Q959c2k3jQ8le9Q2TcFYYXIy0G5cj/5+0lUG8Esiq0isO8WxkJ0gKt4x/raw7M=@vger.kernel.org X-Gm-Message-State: AOJu0YxZnUTuGOUYpVRKDBILx0UnLAPD4Y1Ye18tPeiBiVrsCY84wISE iyFxujqMdXOWYhrUNrGpAXsEbvADqxS6QgLFusVhJM6MWlN3vh9X4MNpZNyUdbdnMA5P7IsdWsC DzjlHVw== X-Google-Smtp-Source: AGHT+IEQs2JsVTUXveb/V9I06jm4zaYAh3wZWMzb/QDiH8+SAZVfaf+ke/+9FbLvW15z7wPEbMAuKp579iM= X-Received: from pjboh5.prod.google.com ([2002:a17:90b:3a45:b0:2fb:fa85:1678]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:2dc1:b0:313:28e7:af14 with SMTP id 98e67ed59e1d1-313b1fdabadmr842732a91.19.1749600651929; Tue, 10 Jun 2025 17:10:51 -0700 (PDT) Reply-To: Sean Christopherson Date: Tue, 10 Jun 2025 17:10:38 -0700 In-Reply-To: <20250611001042.170501-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: <20250611001042.170501-1-seanjc@google.com> X-Mailer: git-send-email 2.50.0.rc0.642.g800a2b2222-goog Message-ID: <20250611001042.170501-5-seanjc@google.com> Subject: [PATCH 4/8] KVM: Move include/kvm/iodev.h to include/linux as kvm_iodev.h From: Sean Christopherson To: Marc Zyngier , Oliver Upton , Tianrui Zhao , Bibo Mao , Huacai Chen , Madhavan Srinivasan , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , Sean Christopherson , Paolo Bonzini Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Anish Ghulati , Colton Lewis , Thomas Huth Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Move iodev.h, the last remaining holdout in include/kvm, to the standard include/linux directory as kvm_iodev.h and delete include/kvm. Acked-by: Anup Patel Signed-off-by: Sean Christopherson Reviewed-by: Bibo Mao --- MAINTAINERS | 1 - arch/arm64/include/asm/kvm_vgic.h | 2 +- arch/arm64/kvm/vgic/vgic-mmio-v2.c | 2 +- arch/arm64/kvm/vgic/vgic-mmio-v3.c | 2 +- arch/arm64/kvm/vgic/vgic-mmio.c | 2 +- arch/loongarch/include/asm/kvm_eiointc.h | 2 +- arch/loongarch/include/asm/kvm_ipi.h | 2 +- arch/loongarch/include/asm/kvm_pch_pic.h | 2 +- arch/mips/include/asm/kvm_host.h | 3 +-- arch/powerpc/kvm/mpic.c | 2 +- arch/riscv/kvm/aia_aplic.c | 2 +- arch/riscv/kvm/aia_imsic.c | 2 +- arch/x86/kvm/i8254.h | 2 +- arch/x86/kvm/ioapic.h | 2 +- arch/x86/kvm/irq.h | 2 +- arch/x86/kvm/lapic.h | 2 +- include/{kvm/iodev.h =3D> linux/kvm_iodev.h} | 0 virt/kvm/coalesced_mmio.c | 3 +-- virt/kvm/eventfd.c | 2 +- virt/kvm/kvm_main.c | 3 +-- 20 files changed, 18 insertions(+), 22 deletions(-) rename include/{kvm/iodev.h =3D> linux/kvm_iodev.h} (100%) diff --git a/MAINTAINERS b/MAINTAINERS index 10cf54c8f727..a2cd432273e5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13011,7 +13011,6 @@ W: http://www.linux-kvm.org T: git git://git.kernel.org/pub/scm/virt/kvm/kvm.git F: Documentation/virt/kvm/ F: include/asm-generic/kvm* -F: include/kvm/iodev.h F: include/linux/kvm* F: include/trace/events/kvm.h F: include/uapi/asm-generic/kvm* diff --git a/arch/arm64/include/asm/kvm_vgic.h b/arch/arm64/include/asm/kvm= _vgic.h index 4a34f7f0a864..09d7f628fa3b 100644 --- a/arch/arm64/include/asm/kvm_vgic.h +++ b/arch/arm64/include/asm/kvm_vgic.h @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include #include =20 diff --git a/arch/arm64/kvm/vgic/vgic-mmio-v2.c b/arch/arm64/kvm/vgic/vgic-= mmio-v2.c index d00c8a74fad6..889440a8b129 100644 --- a/arch/arm64/kvm/vgic/vgic-mmio-v2.c +++ b/arch/arm64/kvm/vgic/vgic-mmio-v2.c @@ -6,9 +6,9 @@ #include #include #include +#include #include =20 -#include #include =20 #include "vgic.h" diff --git a/arch/arm64/kvm/vgic/vgic-mmio-v3.c b/arch/arm64/kvm/vgic/vgic-= mmio-v3.c index 505d4e389885..db95d3ccbd14 100644 --- a/arch/arm64/kvm/vgic/vgic-mmio-v3.c +++ b/arch/arm64/kvm/vgic/vgic-mmio-v3.c @@ -7,8 +7,8 @@ #include #include #include +#include #include -#include =20 #include #include diff --git a/arch/arm64/kvm/vgic/vgic-mmio.c b/arch/arm64/kvm/vgic/vgic-mmi= o.c index ec1b13abc728..de689e0e881f 100644 --- a/arch/arm64/kvm/vgic/vgic-mmio.c +++ b/arch/arm64/kvm/vgic/vgic-mmio.c @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include =20 diff --git a/arch/loongarch/include/asm/kvm_eiointc.h b/arch/loongarch/incl= ude/asm/kvm_eiointc.h index a3a40aba8acf..0049b0b79477 100644 --- a/arch/loongarch/include/asm/kvm_eiointc.h +++ b/arch/loongarch/include/asm/kvm_eiointc.h @@ -6,7 +6,7 @@ #ifndef __ASM_KVM_EIOINTC_H #define __ASM_KVM_EIOINTC_H =20 -#include +#include =20 #define EIOINTC_IRQS 256 #define EIOINTC_ROUTE_MAX_VCPUS 256 diff --git a/arch/loongarch/include/asm/kvm_ipi.h b/arch/loongarch/include/= asm/kvm_ipi.h index 060163dfb4a3..3956b230f087 100644 --- a/arch/loongarch/include/asm/kvm_ipi.h +++ b/arch/loongarch/include/asm/kvm_ipi.h @@ -6,7 +6,7 @@ #ifndef __ASM_KVM_IPI_H #define __ASM_KVM_IPI_H =20 -#include +#include =20 #define LARCH_INT_IPI 12 =20 diff --git a/arch/loongarch/include/asm/kvm_pch_pic.h b/arch/loongarch/incl= ude/asm/kvm_pch_pic.h index e6df6a4c1c70..4b37e3134e52 100644 --- a/arch/loongarch/include/asm/kvm_pch_pic.h +++ b/arch/loongarch/include/asm/kvm_pch_pic.h @@ -6,7 +6,7 @@ #ifndef __ASM_KVM_PCH_PIC_H #define __ASM_KVM_PCH_PIC_H =20 -#include +#include =20 #define PCH_PIC_SIZE 0x3e8 =20 diff --git a/arch/mips/include/asm/kvm_host.h b/arch/mips/include/asm/kvm_h= ost.h index c14b10821817..0d7dd89ca5bf 100644 --- a/arch/mips/include/asm/kvm_host.h +++ b/arch/mips/include/asm/kvm_host.h @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -24,8 +25,6 @@ #include #include =20 -#include - /* MIPS KVM register ids */ #define MIPS_CP0_32(_R, _S) \ (KVM_REG_MIPS_CP0 | KVM_REG_SIZE_U32 | (8 * (_R) + (_S))) diff --git a/arch/powerpc/kvm/mpic.c b/arch/powerpc/kvm/mpic.c index 23e9c2bd9f27..b25a03251544 100644 --- a/arch/powerpc/kvm/mpic.c +++ b/arch/powerpc/kvm/mpic.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -33,7 +34,6 @@ #include #include #include -#include =20 #define MAX_CPU 32 #define MAX_SRC 256 diff --git a/arch/riscv/kvm/aia_aplic.c b/arch/riscv/kvm/aia_aplic.c index f59d1c0c8c43..bf163724aec5 100644 --- a/arch/riscv/kvm/aia_aplic.c +++ b/arch/riscv/kvm/aia_aplic.c @@ -9,10 +9,10 @@ =20 #include #include +#include #include #include #include -#include =20 struct aplic_irq { raw_spinlock_t lock; diff --git a/arch/riscv/kvm/aia_imsic.c b/arch/riscv/kvm/aia_imsic.c index 29ef9c2133a9..ae3c0807baa9 100644 --- a/arch/riscv/kvm/aia_imsic.c +++ b/arch/riscv/kvm/aia_imsic.c @@ -11,10 +11,10 @@ #include #include #include +#include #include #include #include -#include #include =20 #define IMSIC_MAX_EIX (IMSIC_MAX_ID / BITS_PER_TYPE(u64)) diff --git a/arch/x86/kvm/i8254.h b/arch/x86/kvm/i8254.h index a768212ba821..4de7a0b88e4f 100644 --- a/arch/x86/kvm/i8254.h +++ b/arch/x86/kvm/i8254.h @@ -4,7 +4,7 @@ =20 #include =20 -#include +#include =20 struct kvm_kpit_channel_state { u32 count; /* can be 65536 */ diff --git a/arch/x86/kvm/ioapic.h b/arch/x86/kvm/ioapic.h index aa8cb4ac0479..cb36c36affd3 100644 --- a/arch/x86/kvm/ioapic.h +++ b/arch/x86/kvm/ioapic.h @@ -3,7 +3,7 @@ #define __KVM_IO_APIC_H =20 #include -#include +#include #include "irq.h" =20 struct kvm; diff --git a/arch/x86/kvm/irq.h b/arch/x86/kvm/irq.h index 76d46b2f41dd..b21b03aa2ee7 100644 --- a/arch/x86/kvm/irq.h +++ b/arch/x86/kvm/irq.h @@ -13,9 +13,9 @@ #include #include #include +#include #include =20 -#include #include "lapic.h" =20 #define PIC_NUM_PINS 16 diff --git a/arch/x86/kvm/lapic.h b/arch/x86/kvm/lapic.h index 4ce30db65828..43ffbded5f72 100644 --- a/arch/x86/kvm/lapic.h +++ b/arch/x86/kvm/lapic.h @@ -2,7 +2,7 @@ #ifndef __KVM_X86_LAPIC_H #define __KVM_X86_LAPIC_H =20 -#include +#include =20 #include =20 diff --git a/include/kvm/iodev.h b/include/linux/kvm_iodev.h similarity index 100% rename from include/kvm/iodev.h rename to include/linux/kvm_iodev.h diff --git a/virt/kvm/coalesced_mmio.c b/virt/kvm/coalesced_mmio.c index 375d6285475e..d0f84e3611da 100644 --- a/virt/kvm/coalesced_mmio.c +++ b/virt/kvm/coalesced_mmio.c @@ -9,8 +9,7 @@ * */ =20 -#include - +#include #include #include #include diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c index 11e5d1e3f12e..35786d59b233 100644 --- a/virt/kvm/eventfd.c +++ b/virt/kvm/eventfd.c @@ -26,7 +26,7 @@ #include #include =20 -#include +#include =20 #ifdef CONFIG_HAVE_KVM_IRQCHIP =20 diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index eec82775c5bf..a401ba32ecaa 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -10,9 +10,8 @@ * Yaniv Kamay */ =20 -#include - #include +#include #include #include #include --=20 2.50.0.rc0.642.g800a2b2222-goog