[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [RFC PATCH] tests/device-introspect: Test devices with al
From: |
Eduardo Habkost |
Subject: |
Re: [Qemu-ppc] [RFC PATCH] tests/device-introspect: Test devices with all machines, not only with "none" |
Date: |
Mon, 19 Mar 2018 17:37:28 -0300 |
User-agent: |
Mutt/1.9.2 (2017-12-15) |
On Mon, Mar 19, 2018 at 10:39:36AM +0100, Thomas Huth wrote:
> Many device introspection crashes only happen if you are using a
> certain machine, e.g.:
>
> $ ppc-softmmu/qemu-system-ppc -S -M ref405ep,accel=qtest -qmp stdio
> {"QMP": {"version": {"qemu": {"micro": 50, "minor": 11, "major": 2},
> "package": "build-all"}, "capabilities": []}}
> { 'execute': 'qmp_capabilities' }
> {"return": {}}
> { 'execute': 'device-list-properties',
> 'arguments': {'typename': 'macio-newworld'}}
> Unexpected error in qemu_chr_fe_init() at chardev/char-fe.c:222:
> Device 'serial0' is in use
> Aborted (core dumped)
>
> To be able to catch these problems, let's extend the device-introspect
> test to check the devices on all machine types. Since this is a rather
> slow operation, the test is only run in "SPEED=slow" mode.
>
> Signed-off-by: Thomas Huth <address@hidden>
> ---
> In case someone wants to help with creating some bug fix patches
> during the QEMU hard freeze phase: This test can now be used to
> trigger lots of introspection bugs that we were not aware of yet.
> I think most of the bugs are due to wrong handling of instance_init
> vs. realize functions.
[...]
This looks very useful, thanks!
I wonder if we could have something that would make it simpler
for us to cover more command-line combinations + QMP commands in
simple "validate output and check if QEMU won't crash" test cases
without writing extra C or Python code every time.
device-crash-test could be used for that, but I'd like to make it
simpler to extend.
--
Eduardo