ia64/xen-unstable

view buildconfigs/select-linux-image @ 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 419a141ca16d
children
line source
1 #!/bin/sh
3 ME=$(basename $0)
5 if [ $# -lt 3 ] ; then
6 echo "usage: $ME <linux-build-directory> <linux-arch> <linux-targets...>" 1>&2
7 exit 1;
8 fi
10 LINUX_DIR=$1
11 LINUX_ARCH=$2
12 LINUX_TARGET=$3 # We don't care about second and subsequent targets
14 case ${XEN_TARGET_ARCH} in
15 ia64)
16 IMAGE=${LINUX_DIR}/arch/ia64/hp/sim/boot/vmlinux.gz
17 ;;
18 *)
19 if [ -f ${LINUX_DIR}/arch/${LINUX_ARCH}/boot/${LINUX_TARGET} ] ; then
20 IMAGE=${LINUX_DIR}/arch/${LINUX_ARCH}/boot/${LINUX_TARGET}
21 elif [ -f ${LINUX_DIR}/${LINUX_TARGET} ] ; then
22 IMAGE=${LINUX_DIR}/${LINUX_TARGET}
23 else
24 echo "$ME: cannot determine Linux image to use for ${LINUX_ARCH} in ${LINUX_DIR}" 1>&2
25 exit 1
26 fi
27 ;;
28 esac
30 echo "$ME: ${IMAGE}" 1>&2
31 echo ${IMAGE}
33 exit 0