From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjCXN-0001w7-Qp for qemu-devel@nongnu.org; Thu, 13 Dec 2012 12:25:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjCXM-0003Rh-R1 for qemu-devel@nongnu.org; Thu, 13 Dec 2012 12:25:33 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjCXM-0003Rb-JV for qemu-devel@nongnu.org; Thu, 13 Dec 2012 12:25:32 -0500 From: Lucas Meneghel Rodrigues Date: Thu, 13 Dec 2012 15:25:25 -0200 Message-Id: <1355419527-7818-1-git-send-email-lmr@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] Add pc-testdev to qemu v7 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Lucas Meneghel Rodrigues , jan.kiszka@siemens.com, afaerber@suse.de These two patches introduce: 1) A ISA debugexit port device, that when written, causes qemu to exit with the exit code passed as parameter. 2) A port of the existing testdev present on qemu-kvm to qemu I took Gerd's recent patch and modified it to include the access-size property, as well as fixed problems pointed in previous reviews of the test device itself. Had to fix silly rebase mistakes, twice. I did notice that with the new test device, a lot of the kvm-unit-tests are failing. The same tests are passing fine under qemu-kvm, meaning there are some bugs we need to address. Example: qemu-kvm: $ x86_64-softmmu/qemu-system-x86_64 -device testdev -serial stdio -kernel /path/to/kvm/unittests/pcid.flat VNC server running on `127.0.0.1:5900' enabling apic CPUID consistency: PASS Test on PCID when disabled: PASS Test on INVPCID when disabled: PASS 3 tests, 0 failures $ echo $? 0 qemu: $ x86_64-softmmu/qemu-system-x86_64 -device pc-testdev -serial stdio -device isa-debugexit,iobase=0xf4,access-size=4 -kernel /path/to/kvm/unittests/pcid.flat VNC server running on `127.0.0.1:5900' enabling apic CPUID consistency: PASS Test on PCID when disabled: FAIL Test on INVPCID when disabled: PASS 3 tests, 1 failures $ echo $? 3 Gerd Hoffmann (1): hw: add isa-debug-exit device v5 Lucas Meneghel Rodrigues (1): hw: Add test device for unittests execution v8 hw/i386/Makefile.objs | 3 +- hw/pc-testdev.c | 161 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 163 insertions(+), 1 deletion(-) create mode 100644 hw/pc-testdev.c -- 1.7.10.4