All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yi Sun <yi.sun@intel.com>
To: yi.sun@linux.intel.com, yi.sun@intel.com, kvm@vger.kernel.org
Subject: [kvm-unit-tests PATCH RESEND v3 0/2] Wrap EFL binaries into ISO images
Date: Tue,  7 Dec 2021 17:44:30 +0800	[thread overview]
Message-ID: <20211207094432.189576-1-yi.sun@intel.com> (raw)

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

-- 
2.27.0


             reply	other threads:[~2021-12-07  9:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-07  9:44 Yi Sun [this message]
2021-12-07  9:44 ` [kvm-unit-tests PATCH RESEND v3 1/2] x86: Build ISO images from x86/*.elf Yi Sun
2021-12-07  9:44 ` [kvm-unit-tests PATCH RESEND v3 2/2] x86: Create ISO images according to unittests.cfg Yi Sun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211207094432.189576-1-yi.sun@intel.com \
    --to=yi.sun@intel.com \
    --cc=kvm@vger.kernel.org \
    --cc=yi.sun@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.