git: 5e2183dab871 - main - xen/intr: move sys/x86/xen/xen_intr.c to sys/dev/xen/bus/

From: Roger Pau Monné <royger_at_FreeBSD.org>
Date: Fri, 14 Apr 2023 14:01:06 UTC
The branch main has been updated by royger:

URL: https://cgit.FreeBSD.org/src/commit/?id=5e2183dab87140a0107f0d8c761d6c01ba9e25cd

commit 5e2183dab87140a0107f0d8c761d6c01ba9e25cd
Author:     Julien Grall <julien@xen.org>
AuthorDate: 2014-01-14 01:41:04 +0000
Commit:     Roger Pau Monné <royger@FreeBSD.org>
CommitDate: 2023-04-14 13:58:57 +0000

    xen/intr: move sys/x86/xen/xen_intr.c to sys/dev/xen/bus/
    
    The event channel source code or equivalent is needed on all
    architectures.  Since much of this is viable to share, get this moved out
    of x86-land.  Each interrupt interface then needs a distinct back-end
    implementation.
    
    Reviewed by: royger
    Submitted by: Elliott Mitchell <ehem+freebsd@m5p.com>
    Original implementation: Julien Grall <julien@xen.org>, 2014-01-13 17:41:04
    Differential Revision: https://reviews.freebsd.org/D30236
---
 sys/conf/files                          | 1 +
 sys/conf/files.x86                      | 1 -
 sys/{x86/xen => dev/xen/bus}/xen_intr.c | 0
 3 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/conf/files b/sys/conf/files
index 9800c016532c..6c7c6520d72a 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -3482,6 +3482,7 @@ dev/xdma/xdma_sglist.c		optional xdma
 dev/xen/balloon/balloon.c	optional xenhvm
 dev/xen/blkfront/blkfront.c	optional xenhvm
 dev/xen/blkback/blkback.c	optional xenhvm
+dev/xen/bus/xen_intr.c		optional xenhvm
 dev/xen/bus/xenpv.c		optional xenhvm
 dev/xen/console/xen_console.c	optional xenhvm
 dev/xen/control/control.c	optional xenhvm
diff --git a/sys/conf/files.x86 b/sys/conf/files.x86
index 54f6e8c8260a..2e7ce6c00b3b 100644
--- a/sys/conf/files.x86
+++ b/sys/conf/files.x86
@@ -345,6 +345,5 @@ x86/x86/tsc.c			standard
 x86/x86/ucode.c			standard
 x86/x86/delay.c			standard
 x86/xen/hvm.c			optional	xenhvm
-x86/xen/xen_intr.c		optional	xenhvm
 x86/xen/xen_apic.c		optional	xenhvm smp
 x86/xen/xen_arch_intr.c		optional	xenhvm
diff --git a/sys/x86/xen/xen_intr.c b/sys/dev/xen/bus/xen_intr.c
similarity index 100%
rename from sys/x86/xen/xen_intr.c
rename to sys/dev/xen/bus/xen_intr.c