mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Linux is in the process of converting their seconds representation to 64 bits, so in order to support it consistently we should follow suit (which at some point in quite a few years we'd have to do anyway). To represent this in struct shared_info we leverage a 32-bit hole in x86-64's and arm's variant of the structure; for x86-32 guests the only (reasonable) choice we have is to put the extension in struct arch_shared_info. A note on the conditional suppressing the xen_wc_sec_hi helper macro definition in the ix86 case for hypervisor and tools: Neither of the two actually need this, and its presence causes the tools to fail to build (due to the inclusion of both the x86-64 and x86-32 variants of the header). As a secondary change, x86's do_platform_op() gets a pointless initializer as well as a pointless assignment of that same variable dropped. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Tim Deegan <tim@xen.org> Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
XEN_ROOT=$(CURDIR)/../../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
ROOT = $(XEN_ROOT)/xen/include/public
|
|
|
|
architectures := arm32 arm64 x86_32 x86_64
|
|
headers := $(patsubst %, %.h, $(architectures))
|
|
|
|
.PHONY: all clean distclean check-headers
|
|
all: $(headers) check-headers
|
|
|
|
clean:
|
|
rm -f $(headers)
|
|
rm -f checker checker.c
|
|
rm -f *.pyc *.o *~
|
|
|
|
distclean: clean
|
|
|
|
checker: checker.c $(headers)
|
|
$(HOSTCC) $(HOSTCFLAGS) -D__XEN_TOOLS__ -o $@ $<
|
|
|
|
check-headers: checker
|
|
./checker > tmp.size
|
|
diff -u reference.size tmp.size
|
|
rm tmp.size
|
|
|
|
arm32.h: mkheader.py structs.py $(ROOT)/arch-arm.h $(ROOT)/xen.h
|
|
$(PYTHON) $< $* $@ $(filter %.h,$^)
|
|
|
|
arm64.h: mkheader.py structs.py $(ROOT)/arch-arm.h $(ROOT)/xen.h
|
|
$(PYTHON) $< $* $@ $(filter %.h,$^)
|
|
|
|
x86_32.h: mkheader.py structs.py $(ROOT)/arch-x86/xen-x86_32.h $(ROOT)/arch-x86/xen.h $(ROOT)/xen.h
|
|
$(PYTHON) $< $* $@ $(filter %.h,$^)
|
|
|
|
x86_64.h: mkheader.py structs.py $(ROOT)/arch-x86/xen-x86_64.h $(ROOT)/arch-x86/xen.h $(ROOT)/xen.h
|
|
$(PYTHON) $< $* $@ $(filter %.h,$^)
|
|
|
|
checker.c: mkchecker.py structs.py
|
|
$(PYTHON) $< $@ $(architectures)
|