Skip to content

Add pc-testdev to qemu v7

Lucas Meneghel Rodrigues qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2hw: add isa-debug-exit device v5hw/debugexit.c hw/i386/Makefile.objs+88 -11 reply
2/2hw: Add test device for unittests execution v8hw/i386/Makefile.objs hw/pc-testdev.c+162 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchAndreas Färber
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/2] Add pc-testdev to qemu v7

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
Signature · 1 line
1.7.10.4