Hi, > On 15 Apr 2021, at 00:39, Christopher Clark <[email protected]> > wrote: > > 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 <[email protected]>
NIT: Maybe the image could also be filtered for x86. Funnily i get an error when doing bitbake xtf-image on arm64 as xtf is not compatible but when doing it for arm32 it is packing something even though bitbake xtf is not working as expected. Anyway not something blocking more a suggestion so: Reviewed-by: Bertrand Marquis <[email protected]> Cheers Bertrand > --- > recipes-extended/images/xtf-image.bb | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > create mode 100644 recipes-extended/images/xtf-image.bb > > diff --git a/recipes-extended/images/xtf-image.bb > b/recipes-extended/images/xtf-image.bb > new file mode 100644 > index 0000000..3f9af25 > --- /dev/null > +++ b/recipes-extended/images/xtf-image.bb > @@ -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" > -- > 2.25.1 >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#6387): https://lists.yoctoproject.org/g/meta-virtualization/message/6387 Mute This Topic: https://lists.yoctoproject.org/mt/82105884/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
