mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
x86: reduce dependencies on x86_emulate/x86_emulate.h
Split out struct x86_event to an entirely separate header, and move a few other items describing the architecture to a new x86-types.h. With a few forward decls of structures and with a fair number of new #include-s in .c files, the inclusion of x86_emulate.h (and hence x86_emulate/x86_emulate.h) can be dropped from all header files except hvm/emulate.h; it needs additionally adding to hvm/ioreq.h though. Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
b01e4c0c36
commit
0a249bcb02
27 files changed
+151
-79
No files matched your search
@@ -305,7 +305,7 @@ $(call cc-option-add,HOSTCFLAGS-x86_64,HOSTCC,-no-integrated-as)
|
||||
HOSTCFLAGS += $(CFLAGS_xeninclude) -I. $(HOSTCFLAGS-$(XEN_COMPILE_ARCH))
|
||||
|
||||
x86.h := $(addprefix $(XEN_ROOT)/tools/include/xen/asm/,\
|
||||
x86-vendors.h x86-defns.h msr-index.h) \
|
||||
x86-vendors.h x86-defns.h x86-types.h x86-event.h msr-index.h) \
|
||||
$(addprefix $(XEN_ROOT)/tools/include/xen/lib/x86/, \
|
||||
cpu-policy.h cpuid-autogen.h)
|
||||
x86_emulate.h := x86-emulate.h x86_emulate/x86_emulate.h x86_emulate/private.h $(x86.h)
|
||||
|
||||
@@ -38,6 +38,8 @@
|
||||
|
||||
#include <xen/asm/msr-index.h>
|
||||
#include <xen/asm/x86-defns.h>
|
||||
#include <xen/asm/x86-event.h>
|
||||
#include <xen/asm/x86-types.h>
|
||||
#include <xen/asm/x86-vendors.h>
|
||||
|
||||
#include <xen-tools/common-macros.h>
|
||||
|
||||