|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [RFC PATCH V2 4/26] VIOMMU: Add get irq info callback to convert irq remapping request
On Thu, May 18, 2017 at 01:34:34AM -0400, Lan Tianyu wrote:
> This patch is to add get_irq_info callback for platform implementation
> to convert irq remapping request to irq info (E,G vector, dest, dest_mode
> and so on).
>
> Signed-off-by: Lan Tianyu <tianyu.lan@xxxxxxxxx>
> ---
> xen/common/viommu.c | 16 ++++++++++++++++
> xen/include/asm-x86/viommu.h | 8 ++++++++
> xen/include/xen/viommu.h | 9 +++++++++
> 3 files changed, 33 insertions(+)
>
> diff --git a/xen/common/viommu.c b/xen/common/viommu.c
> index 4e3ecd7..c6c9589 100644
> --- a/xen/common/viommu.c
> +++ b/xen/common/viommu.c
> @@ -209,6 +209,22 @@ int viommu_handle_irq_request(struct domain *d, u32
> viommu_id,
> return info->viommu[viommu_id]->ops->handle_irq_request(d, request);
> }
>
> +int viommu_get_irq_info(struct domain *d, u32 viommu_id,
> + struct irq_remapping_request *request,
> + struct irq_remapping_info *irq_info)
> +{
> + struct viommu_info *info = &d->viommu;
> +
> + if ( !info || viommu_id > info->nr_viommu
>= again?
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |