Skip to content

Port test suite to multiboot

Avi Kivity kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10Add test device for use with the test suitehw/pc.c qemu-options.hx vl.c+34 -05 replies
2/10test: load image immediately after program headerskvm/user/flat.lds+1 -10 replies
3/10test: Set up a default stackkvm/user/test/x86/cstart64.S+1 -00 replies
4/10test: add multiboot headers to startup fileskvm/user/test/x86/cstart.S kvm/user/test/x86/cstart64.S+18 -00 replies
5/10test: Map 4GB of memorykvm/user/test/x86/cstart64.S+5 -20 replies
6/10test: use real APIC instead of fake APICkvm/user/test/x86/cstart64.S+6 -30 replies
7/10test: switch output format to elfkvm/user/flat.lds+0 -20 replies
8/10test: Remove smp support from access.ckvm/user/test/x86/access.c+2 -20 replies
9/10test: fix realmode test print_serial() direction flagkvm/user/test/x86/realmode.c+1 -10 replies
10/10test: port readmode tests to multibootkvm/user/test/x86/realmode.c kvm/user/test/x86/realmode.lds+43 -150 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/10][QEMU-KVM] Port test suite to multiboot

Currently the test suite uses a custom control program and BIOS as a loader. This is clumsy and annoying to work with.

This patch series ports the test suite to load with the multiboot support provided by qemu -kernel. Test binaries are now ordinary elf objects (though still with the extension .flat). A -test-device option is added to qemu to support output, memory size, and exit. With the exception of exit these can be ported to use existing qemu facilities.

To use the new tests, type

qemu-system-x86_64 -test-device -kernel /path/to/vmexit.flat

Avi Kivity (10):
Add test device for use with the test suite
test: load image immediately after program headers
test: Set up a default stack
test: add multiboot headers to startup files
test: Map 4GB of memory
test: use real APIC instead of fake APIC
test: switch output format to elf
test: Remove smp support from access.c
test: fix realmode test print_serial() direction flag
test: port readmode tests to multiboot

 hw/pc.c                        |   28 ++++++++++++++++++++
 kvm/user/flat.lds              |    4 +--
 kvm/user/test/x86/access.c     |    4 +-
 kvm/user/test/x86/cstart.S     |    9 ++++++
 kvm/user/test/x86/cstart64.S   |   26 +++++++++++++++---
 kvm/user/test/x86/realmode.c   |   54 +++++++++++++++++++++++++++++++--------
 kvm/user/test/x86/realmode.lds |    6 +---
 qemu-options.hx                |    2 +
 vl.c                           |    4 +++
 9 files changed, 111 insertions(+), 26 deletions(-)