From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJpGm-0003dy-JV for qemu-devel@nongnu.org; Thu, 04 Oct 2012 13:31:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJpGl-0008Fr-IM for qemu-devel@nongnu.org; Thu, 04 Oct 2012 13:31:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:2138) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJpGl-0008Fj-7v for qemu-devel@nongnu.org; Thu, 04 Oct 2012 13:31:31 -0400 From: Lucas Meneghel Rodrigues Date: Thu, 4 Oct 2012 14:31:23 -0300 Message-Id: <1349371885-15091-1-git-send-email-lmr@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 0/2] Adding pc-testdev to qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Lucas Meneghel Rodrigues , pbonzini@redhat.com, jan.kiszka@siemens.com 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 One particular comment of previous reviews wasn't addressed, but I'd like people to see this to see if we're in the right direction. Another thing I did notice is 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=20 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 -dev= ice isa-debugexit,iobase=3D0xf4,access-size=3D4 -kernel /path/to/kvm/unit= tests/pcid.flat=20 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 Herv=C3=A9 Poussineau (1): debugexit: support for custom exit port (LGPL VGA BIOS port 0x501) Lucas Meneghel Rodrigues (1): hw: Add test device for unittests execution v2 hw/debugexit.c | 68 +++++++++++++++++++++ hw/i386/Makefile.objs | 3 +- hw/pc-testdev.c | 160 ++++++++++++++++++++++++++++++++++++++++++++= ++++++ 3 files changed, 230 insertions(+), 1 deletion(-) create mode 100644 hw/debugexit.c create mode 100644 hw/pc-testdev.c --=20 1.7.11.4