From: Oliver Upton <oliver.upton@linux.dev>
To: kvmarm@lists.linux.dev
Cc: kvm@vger.kernel.org, Will Deacon <will@kernel.org>,
Julien Thierry <julien.thierry.kdev@gmail.com>,
Marc Zyngier <maz@kernel.org>,
Alexandru Elisei <alexandru.elisei@arm.com>,
Andre Przywara <andre.przywara@arm.com>,
Oliver Upton <oliver.upton@linux.dev>
Subject: [PATCH kvmtool v2 9/9] arm64: Get rid of the 'arm-common' include directory
Date: Fri, 4 Apr 2025 09:52:32 -0700 [thread overview]
Message-ID: <20250404165233.3205127-10-oliver.upton@linux.dev> (raw)
In-Reply-To: <20250404165233.3205127-1-oliver.upton@linux.dev>
Acked-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
---
arm64/arm-cpu.c | 5 ++---
arm64/fdt.c | 5 ++---
arm64/gic.c | 3 +--
arm64/gicv2m.c | 3 +--
arm64/include/{arm-common => kvm}/gic.h | 0
arm64/include/kvm/kvm-arch.h | 2 +-
arm64/include/{arm-common/pci.h => kvm/pci-arch.h} | 0
arm64/include/{arm-common => kvm}/timer.h | 0
arm64/kvm.c | 3 +--
arm64/pci.c | 5 ++---
arm64/pmu.c | 3 +--
arm64/timer.c | 5 ++---
12 files changed, 13 insertions(+), 21 deletions(-)
rename arm64/include/{arm-common => kvm}/gic.h (100%)
rename arm64/include/{arm-common/pci.h => kvm/pci-arch.h} (100%)
rename arm64/include/{arm-common => kvm}/timer.h (100%)
diff --git a/arm64/arm-cpu.c b/arm64/arm-cpu.c
index f5c8e1e..69bb2cb 100644
--- a/arm64/arm-cpu.c
+++ b/arm64/arm-cpu.c
@@ -1,11 +1,10 @@
#include "kvm/fdt.h"
+#include "kvm/gic.h"
#include "kvm/kvm.h"
#include "kvm/kvm-cpu.h"
+#include "kvm/timer.h"
#include "kvm/util.h"
-#include "arm-common/gic.h"
-#include "arm-common/timer.h"
-
#include "asm/pmu.h"
#include <linux/byteorder.h>
diff --git a/arm64/fdt.c b/arm64/fdt.c
index 286ccad..df77758 100644
--- a/arm64/fdt.c
+++ b/arm64/fdt.c
@@ -1,12 +1,11 @@
#include "kvm/devices.h"
#include "kvm/fdt.h"
+#include "kvm/gic.h"
#include "kvm/kvm.h"
#include "kvm/kvm-cpu.h"
+#include "kvm/pci-arch.h"
#include "kvm/virtio-mmio.h"
-#include "arm-common/gic.h"
-#include "arm-common/pci.h"
-
#include <stdbool.h>
#include <linux/byteorder.h>
diff --git a/arm64/gic.c b/arm64/gic.c
index 0795e95..b0d3a1a 100644
--- a/arm64/gic.c
+++ b/arm64/gic.c
@@ -1,10 +1,9 @@
#include "kvm/fdt.h"
+#include "kvm/gic.h"
#include "kvm/irq.h"
#include "kvm/kvm.h"
#include "kvm/virtio.h"
-#include "arm-common/gic.h"
-
#include <linux/byteorder.h>
#include <linux/kernel.h>
#include <linux/kvm.h>
diff --git a/arm64/gicv2m.c b/arm64/gicv2m.c
index b47ada8..b3c542a 100644
--- a/arm64/gicv2m.c
+++ b/arm64/gicv2m.c
@@ -2,11 +2,10 @@
#include <stdlib.h>
#include "kvm/irq.h"
+#include "kvm/gic.h"
#include "kvm/kvm.h"
#include "kvm/util.h"
-#include "arm-common/gic.h"
-
#define GICV2M_MSI_TYPER 0x008
#define GICV2M_MSI_SETSPI 0x040
#define GICV2M_MSI_IIDR 0xfcc
diff --git a/arm64/include/arm-common/gic.h b/arm64/include/kvm/gic.h
similarity index 100%
rename from arm64/include/arm-common/gic.h
rename to arm64/include/kvm/gic.h
diff --git a/arm64/include/kvm/kvm-arch.h b/arm64/include/kvm/kvm-arch.h
index b097186..8f508ef 100644
--- a/arm64/include/kvm/kvm-arch.h
+++ b/arm64/include/kvm/kvm-arch.h
@@ -10,7 +10,7 @@
#include <linux/const.h>
#include <linux/types.h>
-#include "arm-common/gic.h"
+#include "kvm/gic.h"
/*
* The memory map used for ARM guests (not to scale):
diff --git a/arm64/include/arm-common/pci.h b/arm64/include/kvm/pci-arch.h
similarity index 100%
rename from arm64/include/arm-common/pci.h
rename to arm64/include/kvm/pci-arch.h
diff --git a/arm64/include/arm-common/timer.h b/arm64/include/kvm/timer.h
similarity index 100%
rename from arm64/include/arm-common/timer.h
rename to arm64/include/kvm/timer.h
diff --git a/arm64/kvm.c b/arm64/kvm.c
index 11c7a16..23b4dab 100644
--- a/arm64/kvm.c
+++ b/arm64/kvm.c
@@ -4,8 +4,7 @@
#include "kvm/8250-serial.h"
#include "kvm/virtio-console.h"
#include "kvm/fdt.h"
-
-#include "arm-common/gic.h"
+#include "kvm/gic.h"
#include <linux/byteorder.h>
#include <linux/cpumask.h>
diff --git a/arm64/pci.c b/arm64/pci.c
index 5bd82d4..0366783 100644
--- a/arm64/pci.c
+++ b/arm64/pci.c
@@ -1,13 +1,12 @@
#include "kvm/devices.h"
#include "kvm/fdt.h"
+#include "kvm/gic.h"
#include "kvm/kvm.h"
#include "kvm/of_pci.h"
#include "kvm/pci.h"
+#include "kvm/pci-arch.h"
#include "kvm/util.h"
-#include "arm-common/pci.h"
-#include "arm-common/gic.h"
-
/*
* An entry in the interrupt-map table looks like:
* <pci unit address> <pci interrupt pin> <gic phandle> <gic interrupt>
diff --git a/arm64/pmu.c b/arm64/pmu.c
index 5ed4979..5f31d6b 100644
--- a/arm64/pmu.c
+++ b/arm64/pmu.c
@@ -5,12 +5,11 @@
#include "linux/err.h"
#include "kvm/fdt.h"
+#include "kvm/gic.h"
#include "kvm/kvm.h"
#include "kvm/kvm-cpu.h"
#include "kvm/util.h"
-#include "arm-common/gic.h"
-
#include "asm/pmu.h"
static bool pmu_has_attr(struct kvm_cpu *vcpu, u64 attr)
diff --git a/arm64/timer.c b/arm64/timer.c
index 6acc50e..861f2d9 100644
--- a/arm64/timer.c
+++ b/arm64/timer.c
@@ -1,11 +1,10 @@
#include "kvm/fdt.h"
+#include "kvm/gic.h"
#include "kvm/kvm.h"
#include "kvm/kvm-cpu.h"
+#include "kvm/timer.h"
#include "kvm/util.h"
-#include "arm-common/gic.h"
-#include "arm-common/timer.h"
-
void timer__generate_fdt_nodes(void *fdt, struct kvm *kvm, int *irqs)
{
const char compatible[] = "arm,armv8-timer\0arm,armv7-timer";
--
2.39.5
next prev parent reply other threads:[~2025-04-04 16:53 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-04 16:52 [PATCH kvmtool v2 0/9] arm: Drop support for 32-bit kvmtool Oliver Upton
2025-04-04 16:52 ` [PATCH kvmtool v2 1/9] Drop support for 32-bit arm Oliver Upton
2025-04-04 16:52 ` [PATCH kvmtool v2 2/9] arm64: Move arm64-only features into main directory Oliver Upton
2025-04-04 16:52 ` [PATCH kvmtool v2 3/9] arm64: Combine kvm.c Oliver Upton
2025-04-04 16:52 ` [PATCH kvmtool v2 4/9] arm64: Merge kvm-cpu.c Oliver Upton
2025-04-04 16:52 ` [PATCH kvmtool v2 5/9] arm64: Combine kvm-config-arch.h Oliver Upton
2025-04-04 16:52 ` [PATCH kvmtool v2 6/9] arm64: Move remaining kvm/* headers Oliver Upton
2025-04-04 16:52 ` [PATCH kvmtool v2 7/9] arm64: Move asm headers Oliver Upton
2025-04-04 16:52 ` [PATCH kvmtool v2 8/9] arm64: Rename top-level directory Oliver Upton
2025-04-04 16:52 ` Oliver Upton [this message]
2025-04-04 16:52 ` [PATCH v4 00/19] KVM: arm64: Debug cleanups Oliver Upton
2025-04-04 16:55 ` Oliver Upton
2025-04-17 14:27 ` [PATCH kvmtool v2 0/9] arm: Drop support for 32-bit kvmtool Will Deacon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250404165233.3205127-10-oliver.upton@linux.dev \
--to=oliver.upton@linux.dev \
--cc=alexandru.elisei@arm.com \
--cc=andre.przywara@arm.com \
--cc=julien.thierry.kdev@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.linux.dev \
--cc=maz@kernel.org \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox