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(-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html