[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v5 06/15] public / x86: introduce __HYPERCALL_iommu_op



> From: Paul Durrant
> Sent: Saturday, August 4, 2018 1:22 AM
> 
> This patch introduces the boilerplate for a new hypercall to allow a
> domain to control IOMMU mappings for its own pages.
> Whilst there is duplication of code between the native and compat entry
> points which appears ripe for some form of combination, I think it is
> better to maintain the separation as-is because the compat entry point
> will necessarily gain complexity in subsequent patches.
> 
> NOTE: This hypercall is only implemented for x86 and is currently
>       restricted by XSM to dom0. Its scope can be expanded in future
>       if need be.
> 
> Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
[...]

> diff --git a/xen/arch/x86/iommu_op.c b/xen/arch/x86/iommu_op.c
> new file mode 100644
> index 0000000000..744c0fce27
> --- /dev/null
> +++ b/xen/arch/x86/iommu_op.c
> @@ -0,0 +1,184 @@
> +/************************************************************
> ******************
> + * x86/iommu_op.c
> + *
> + * Paravirtualised IOMMU functionality

although only x86 is supported, logic in this file is vendor agnostic. Better
move to a common place now...

Thanks
Kevin
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.