x86/pv: Prune include lists
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 5 May 2020 10:27:22 +0000 (11:27 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 5 May 2020 14:25:04 +0000 (15:25 +0100)
commitf7aa6c36c5a8173236a68cb1f1b09c8bef9d6d3a
tree1fa14ee888e7eebd22315278f8c48ea9a50a4165
parent6a8f6cd8d788fc424cb2e2f426223d95da9c9898
x86/pv: Prune include lists

Several of these in particular haven't been pruned since the logic was all
part of arch/x86/traps.c

Some adjustments to header files are required to avoid compile errors:
 * emulate.h needs xen/sched.h because gdt_ldt_desc_ptr() uses v->vcpu_id.
 * mmconfig.h needs to forward declare acpi_table_header.
 * shadow.h and trace.h need to have uint*_t in scope before including the Xen
   public headers.  For shadow.h, reorder the includes.  For trace.h, include
   types.h

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/pv/callback.c
xen/arch/x86/pv/emul-gate-op.c
xen/arch/x86/pv/emul-inv-op.c
xen/arch/x86/pv/emul-priv-op.c
xen/arch/x86/pv/emulate.h
xen/arch/x86/pv/ro-page-fault.c
xen/arch/x86/pv/shim.c
xen/arch/x86/x86_64/mmconfig.h
xen/include/asm-x86/shadow.h
xen/include/xen/trace.h