qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Lucas Meneghel Rodrigues <lmr@redhat.com>
To: qemu-devel@nongnu.org
Cc: Lucas Meneghel Rodrigues <lmr@redhat.com>,
	jan.kiszka@siemens.com, kraxel@redhat.com
Subject: [Qemu-devel] [PATCH 0/2] Add pc-testdev to qemu v6
Date: Thu, 13 Dec 2012 12:48:50 -0200	[thread overview]
Message-ID: <1355410133-3281-1-git-send-email-lmr@redhat.com> (raw)

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.

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 v3

Lucas Meneghel Rodrigues (1):
  hw: Add test device for unittests execution v6

 hw/debugexit.c        |   73 +++++++++++++++++++++++
 hw/i386/Makefile.objs |    3 +-
 hw/pc-testdev.c       |  156 +++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 231 insertions(+), 1 deletion(-)
 create mode 100644 hw/debugexit.c
 create mode 100644 hw/pc-testdev.c

-- 
1.7.10.4

             reply	other threads:[~2012-12-13 14:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-13 14:48 Lucas Meneghel Rodrigues [this message]
2012-12-13 14:48 ` [Qemu-devel] [PATCH 1/2] hw: add isa-debug-exit device Lucas Meneghel Rodrigues
2012-12-13 14:48 ` [Qemu-devel] [PATCH 1/2] hw: add isa-debug-exit device v3 Lucas Meneghel Rodrigues
2012-12-13 15:40   ` Andreas Färber
2012-12-13 22:13     ` Hervé Poussineau
2012-12-19  1:41   ` Lucas Meneghel
2012-12-19  8:49     ` Gerd Hoffmann
2012-12-13 14:48 ` [Qemu-devel] [PATCH 2/2] hw: Add test device for unittests execution v6 Lucas Meneghel Rodrigues
2012-12-13 15:54   ` Jan Kiszka
  -- strict thread matches above, loose matches on Subject: below --
2012-12-13 17:10 [Qemu-devel] [PATCH 0/2] Add pc-testdev to qemu v6 Lucas Meneghel Rodrigues
2012-12-13 14:47 Lucas Meneghel Rodrigues

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1355410133-3281-1-git-send-email-lmr@redhat.com \
    --to=lmr@redhat.com \
    --cc=jan.kiszka@siemens.com \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).