view stubdom/caml/Makefile @ 18732:4413d53a8320

x86: highmem handling assistance hypercalls

While looking at the origin of very frequently executed hypercalls I
realized that the high page accessor functions in Linux would be good
candidates to handle in the hypervisor - clearing or copying to/from
a high page is a pretty frequent operation (provided there's enough
memory in the domain). While prior to the first submission I only
measured kernel builds (where the results are not hinting at a
meaningful improvement), I now found time to do a more specific
analysis: page clearing is being improved by about 20%, page copying
doesn't seem to significantly benefit (though that may be an effect of
the simplistic copy_page() implementation Xen currently uses) -
nevertheless I would think that if one function is supported by the
hypervisor, then the other should also be.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Oct 27 13:29:35 2008 +0000 (2008-10-27)
parents 7e00ebe2b7fd
children e0221531d0e5
line source
1 XEN_ROOT = ../..
3 include $(XEN_ROOT)/Config.mk
5 CAMLLIB = $(shell ocamlc -where)
8 OCAMLFIND=ocamlfind
9 OCAMLOPT=ocamlopt
11 OBJS := hello.cmx
12 LIBS :=
14 all: main-caml.o caml.o
16 %.cmx: %.ml
17 $(OCAMLFIND) $(OCAMLOPT) -c $< -o $@
19 caml.o: $(OBJS)
20 $(OCAMLFIND) $(OCAMLOPT) $(LIBS) $^ -output-obj -o $@
22 clean:
23 rm -f *.a *.o *.cmx *.cmi