x86: make traps.c build with !CONFIG_PV
authorWei Liu <wei.liu2@citrix.com>
Fri, 2 Nov 2018 15:55:39 +0000 (15:55 +0000)
committerWei Liu <wei.liu2@citrix.com>
Mon, 5 Nov 2018 16:08:03 +0000 (16:08 +0000)
commitaa0816b74f1dffe2d9f3e159915f9a399379278a
tree7b68a618e1795686ab2d8121b89f119b4ade8e50
parent3cbecb3c6307a23d5a2227b8f48eb395131e998e
x86: make traps.c build with !CONFIG_PV

Provide a stub for pv_inject_event. Put code that accesses PV fields
and GDT / LDT fault handling code under CONFIG_PV. Move set_debugreg
to pv/misc-hypercalls.c.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/pv/misc-hypercalls.c
xen/arch/x86/traps.c
xen/include/asm-x86/domain.h