vtd: Fix ioapic interrupt remapping
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 26 Aug 2008 12:00:43 +0000 (13:00 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 26 Aug 2008 12:00:43 +0000 (13:00 +0100)
commitd6b6a1137f3b4183ae6deaf89c8e50426742ffb3
tree874d68e58f9d607ce30e06f47dae8eb6243dda96
parent2a82334fccca3fba00d580b89f5c323649447f21
vtd: Fix ioapic interrupt remapping

Besides io_apic_write(), io_apic_modify() also writes to io apic RTE.
This patch adds an intercept to remap interrupt in io_apic_modify().

In io_apic_read_remap_rte(), 'mask' value of RTE should not affect the
return value, so remove its checking.

Finally, remove panic() when index overflows. Instead, print error
messages and report back the failure to upper level.

Signed-off-by: Weidong Han <weidong.han@intel.com>
xen/drivers/passthrough/vtd/intremap.c
xen/include/asm-x86/io_apic.h