From: Avi Kivity Subject: [PATCH 00/10][QEMU-KVM] Port test suite to multiboot Date: Sun, 13 Sep 2009 18:18:45 +0300 Message-ID: <1252855135-2519-1-git-send-email-avi@redhat.com> Cc: kvm@vger.kernel.org To: Marcelo Tosatti Return-path: Received: from mx1.redhat.com ([209.132.183.28]:61307 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751152AbZIMPSx (ORCPT ); Sun, 13 Sep 2009 11:18:53 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8DFIv1O008484 for ; Sun, 13 Sep 2009 11:18:57 -0400 Sender: kvm-owner@vger.kernel.org List-ID: 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(-)