VT-d: use proper error codes in iommu_enable_x2apic_IR()
authorJan Beulich <jbeulich@suse.com>
Tue, 13 Oct 2015 15:16:22 +0000 (17:16 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 13 Oct 2015 15:16:22 +0000 (17:16 +0200)
commit6851e979874ebc05d270ea94360c49d920d3eaf4
treefb19f3e10d3a5b5369a6a6cdaff0d8fdad7fb2c4
parent4930444bdf33157763ade5dd959b9a2a7477e0a3
VT-d: use proper error codes in iommu_enable_x2apic_IR()

... allowing to suppress a confusing message combination: When
ACPI_DMAR_X2APIC_OPT_OUT is set, so far we first logged a message
that IR could not be enabled (hence not using x2APIC), followed by
one indicating successful initialization of IR (if no other problems
prevented that).

Also adjust the return type of iommu_supports_eim() and fix some
broken indentation in the function.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Yang Zhang <yang.z.zhang@intel.com>
xen/arch/x86/apic.c
xen/drivers/passthrough/vtd/intremap.c
xen/include/asm-x86/iommu.h