git: 4ab7aea8ec2f - main - bhyve: Move the gvt-d driver to amd64/

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Wed, 04 Oct 2023 16:54:05 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=4ab7aea8ec2f5fac0e6d140300c8f04db99d83df

commit 4ab7aea8ec2f5fac0e6d140300c8f04db99d83df
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-10-04 16:24:04 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-10-04 16:53:16 +0000

    bhyve: Move the gvt-d driver to amd64/
    
    It is amd64-only.  No functional change intended.
    
    Reviewed by:    corvink, jhb
    MFC after:      1 week
    Sponsored by:   Innovate UK
    Differential Revision:  https://reviews.freebsd.org/D40736
---
 usr.sbin/bhyve/Makefile                         | 1 -
 usr.sbin/bhyve/amd64/Makefile.inc               | 1 +
 usr.sbin/bhyve/{ => amd64}/pci_gvt-d-opregion.h | 0
 usr.sbin/bhyve/{ => amd64}/pci_gvt-d.c          | 0
 4 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/bhyve/Makefile b/usr.sbin/bhyve/Makefile
index 7c14dbc4a524..d510c32fccd0 100644
--- a/usr.sbin/bhyve/Makefile
+++ b/usr.sbin/bhyve/Makefile
@@ -41,7 +41,6 @@ SRCS=	\
 	pci_e82545.c		\
 	pci_emul.c		\
 	pci_fbuf.c		\
-	pci_gvt-d.c		\
 	pci_hda.c		\
 	pci_hostbridge.c	\
 	pci_irq.c		\
diff --git a/usr.sbin/bhyve/amd64/Makefile.inc b/usr.sbin/bhyve/amd64/Makefile.inc
index a176b0e5471f..5caecb35a620 100644
--- a/usr.sbin/bhyve/amd64/Makefile.inc
+++ b/usr.sbin/bhyve/amd64/Makefile.inc
@@ -4,6 +4,7 @@ SRCS+=	\
 	fwctl.c		\
 	kernemu_dev.c	\
 	mptbl.c		\
+	pci_gvt-d.c	\
 	pm.c		\
 	post.c		\
 	ps2kbd.c	\
diff --git a/usr.sbin/bhyve/pci_gvt-d-opregion.h b/usr.sbin/bhyve/amd64/pci_gvt-d-opregion.h
similarity index 100%
rename from usr.sbin/bhyve/pci_gvt-d-opregion.h
rename to usr.sbin/bhyve/amd64/pci_gvt-d-opregion.h
diff --git a/usr.sbin/bhyve/pci_gvt-d.c b/usr.sbin/bhyve/amd64/pci_gvt-d.c
similarity index 100%
rename from usr.sbin/bhyve/pci_gvt-d.c
rename to usr.sbin/bhyve/amd64/pci_gvt-d.c