OSDN Git Service

iommu, x86: Provide irq_remapping_cap() interface
authorFeng Wu <feng.wu@intel.com>
Tue, 9 Jun 2015 05:20:36 +0000 (13:20 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 12 Jun 2015 09:33:52 +0000 (11:33 +0200)
commit959c870f7305be019d9316bc4e038dc6119d51ad
treeb20a409d969a0757a987da7c0e8630b0f882e6bd
parent3d9b98f4ec17ba8d555f1972a3870035a87574a0
iommu, x86: Provide irq_remapping_cap() interface

Add a new interface irq_remapping_cap() to detect whether irq
remapping supports new features, such as VT-d Posted-Interrupts.

Export the function, so that KVM code can check this and use this
mechanism properly.

Signed-off-by: Feng Wu <feng.wu@intel.com>
Reviewed-by: Jiang Liu <jiang.liu@linux.intel.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Joerg Roedel <joro@8bytes.org>
Cc: iommu@lists.linux-foundation.org
Cc: dwmw2@infradead.org
Link: http://lkml.kernel.org/r/1433827237-3382-10-git-send-email-feng.wu@intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/irq_remapping.h
drivers/iommu/irq_remapping.c