iommu, x86: Save the mode (posted or remapped) of an IRTE
iommu, x86: Save the mode (posted or remapped) of an IRTE

Add a new field to struct irq_2_iommu, which captures whether the
associated IRTE is in posted mode or remapped mode. We update this
field when the IRTE is written into the table.

Suggested-by: Thomas Gleixner <00e4cf8f46a57000a44449bf9dd8cbbcc209fd2a@linutronix.de>
Signed-off-by: Feng Wu <521451f4bfda9a96135570722c9f0cfa4b647f81@intel.com>
Reviewed-by: Thomas Gleixner <00e4cf8f46a57000a44449bf9dd8cbbcc209fd2a@linutronix.de>
Acked-by: Joerg Roedel <4688a6871ff025801033b3c4b039d55a29f8f937@8bytes.org>
Cc: 68ee766e574f18b34b683085865827393efe88bd@linux.intel.com
Cc: d4d3187dbcba3fb2e2e25a4ce499c8e441b6817d@lists.linux-foundation.org
Cc: 97b3379caa91f4ee97e44013ae4dc6350540fa9d@infradead.org
Link: http://lkml.kernel.org/r/1433827237-3382-6-git-send-email-521451f4bfda9a96135570722c9f0cfa4b647f81@intel.com
Signed-off-by: Thomas Gleixner <00e4cf8f46a57000a44449bf9dd8cbbcc209fd2a@linutronix.de>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs