x86/traps: factor out pv_trap_init
authorWei Liu <wei.liu2@citrix.com>
Mon, 5 Jun 2017 15:15:26 +0000 (16:15 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 28 Jun 2017 10:56:52 +0000 (11:56 +0100)
commitfd74631103427ca28e9b337b35dfd4330101357b
tree0228e98ca00aa32e317183f710d7e420f0f58ba9
parent873dd3aaeb45068fe9018da5ff7fc48ee74603cf
x86/traps: factor out pv_trap_init

Factor out pv_trap_init and call it at the beginning of trap_init. We
then need to tune the code to generate stub handlers in entry.S. Take
the chance to tune init_irq_data so that 0x80 and 0x82 can be used for
regular interrupts in !CONFIG_PV case.

While at it, fix some coding style issues in init_irq_data and replace
0x80 with LEGACY_SYSCALL_VECTOR in pv_trap_init.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reivewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/irq.c
xen/arch/x86/traps.c
xen/arch/x86/x86_64/entry.S
xen/include/asm-x86/pv/traps.h