Skip to content

Wrap EFL binaries into ISO images

Yi Sun kvm 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/22 patches 0 repliesNew
  2. v3 posting 1/22 patches 1 replySuperseded
  3. v11 of 2 patches 0 repliesSuperseded

Patches in v3 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86: Build ISO images from x86/*.elflib/grub/grub.cfg x86/Makefile.common+24 -10 replies
2/2x86: Create ISO images according to unittests.cfgx86/create_iso.sh+112 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [kvm-unit-tests PATCH RESEND v3 0/2] Wrap EFL binaries into ISO images

This patch set make use of tool 'grub-mkrescue' to wrap ELF binaries into bootable ISO images.

Cases in kvm-unit-tests can be run with QEMU. But the problem is that some newer VMMs such as Crosvm/Cloud-hyperviosr does NOT support multiboot protocol with which QEMU loads and executes those testing binaries correctly. This patch set can wrap each kvm-unit-tests EFL binaries into a bootable ISO image aiming to adapt it to more usage scenarios. As we know, all PC BIOSes and vBIOSes know how to boot from a ISO from CD-ROM drive, hence it can extend the KVM-unit-tests a lot.

The patch set provides two approaches to create ISO. One is via "make iso". It wrap each ELF in foler x86 into a ISO without any parameters passed to the test cases. The other is via script create_iso.sh. The script wraps the ELF according to the configure file unittests.cfg which descripes various parameters for each testing.

Patch History:
V1: Initial version.
V2: Add the second parament to the script create_iso.sh, that could pass environment variables into test cases via the file.
V3: Add some failure handle.

Yi Sun (2):
x86: Build ISO images from x86/*.elf
x86: Create ISO images according to unittests.cfg

 lib/grub/grub.cfg   |   7 +++
 x86/Makefile.common |  18 ++++++-
 x86/create_iso.sh   | 112 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 136 insertions(+), 1 deletion(-)
 create mode 100644 lib/grub/grub.cfg
 create mode 100755 x86/create_iso.sh
Signature · 1 line
2.27.0