Message ID | e61c9a1190018d8de434d71049b4a97980f22be0.1617702520.git.rahul.singh@arm.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | xen/pci: Make PCI passthrough code non-x86 specific | expand |
On 06.04.2021 13:39, Rahul Singh wrote: > PCI ATS code is common for all architecture, move code to common > directory to be usable for other architectures. > > No functional change intended. > > Signed-off-by: Rahul Singh <rahul.singh@arm.com> Acked-by: Jan Beulich <jbeulich@suse.com>
diff --git a/xen/drivers/passthrough/Makefile b/xen/drivers/passthrough/Makefile index cc646612c7..445690e3e5 100644 --- a/xen/drivers/passthrough/Makefile +++ b/xen/drivers/passthrough/Makefile @@ -6,3 +6,4 @@ obj-$(CONFIG_ARM) += arm/ obj-y += iommu.o obj-$(CONFIG_HAS_PCI) += pci.o obj-$(CONFIG_HAS_DEVICE_TREE) += device_tree.o +obj-$(CONFIG_HAS_PCI) += ats.o diff --git a/xen/drivers/passthrough/x86/ats.c b/xen/drivers/passthrough/ats.c similarity index 99% rename from xen/drivers/passthrough/x86/ats.c rename to xen/drivers/passthrough/ats.c index 4628ffde45..7f7b16dc49 100644 --- a/xen/drivers/passthrough/x86/ats.c +++ b/xen/drivers/passthrough/ats.c @@ -16,7 +16,7 @@ #include <xen/sched.h> #include <xen/pci.h> #include <xen/pci_regs.h> -#include "../ats.h" +#include "ats.h" bool_t __read_mostly ats_enabled = 0; boolean_param("ats", ats_enabled); diff --git a/xen/drivers/passthrough/x86/Makefile b/xen/drivers/passthrough/x86/Makefile index 69284a5d19..75b2885336 100644 --- a/xen/drivers/passthrough/x86/Makefile +++ b/xen/drivers/passthrough/x86/Makefile @@ -1,3 +1,2 @@ -obj-y += ats.o obj-y += iommu.o obj-$(CONFIG_HVM) += hvm.o
PCI ATS code is common for all architecture, move code to common directory to be usable for other architectures. No functional change intended. Signed-off-by: Rahul Singh <rahul.singh@arm.com> --- xen/drivers/passthrough/Makefile | 1 + xen/drivers/passthrough/{x86 => }/ats.c | 2 +- xen/drivers/passthrough/x86/Makefile | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) rename xen/drivers/passthrough/{x86 => }/ats.c (99%)