xtf-image: add a new image for the Xen Test Framework

Testing the Xen hypervisor, with the qemux86-64 MACHINE:
    runqemu xtf-image nographic slirp
        (login as root)
        cd /usr/libexec/xtf
        ./xtf-runner --list pv
        # run an example test:
        ./xtf-runner test-pv64-livepatch-priv-check

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
Christopher Clark 2021-04-16 11:41:36 -07:00 committed by Bruce Ashfield
parent 5f51e806b8
commit 7f18136e1f

View File

@ -0,0 +1,24 @@
require recipes-extended/images/xen-image-minimal.bb
DESCRIPTION = "A minimal Xen Test Framework (XTF) image for testing the Xen hypervisor"
# To run XTF tests with an image built for the qemux86-64 MACHINE:
#
# runqemu xtf-image nographic slirp
# (login as root)
# # xtf-runner expects to be run from the top of the tests directory:
# cd /usr/libexec/xtf
# # list the tests available for PV guest types:
# ./xtf-runner --list pv
# # run an example test:
# ./xtf-runner test-pv64-livepatch-priv-check
IMAGE_NAME="xtf"
IMAGE_INSTALL_append = " xtf"
QB_DEFAULT_FSTYPE = "wic"
# Set the dom0 memory level lower than that assigned to qemu so that Xen has
# some available memory for allocating to the XTF microkernel guests to run:
QB_MEM = "-m 400"
SYSLINUX_XEN_ARGS_append = " dom0_mem=256M"