qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Cc: pbonzini@redhat.com, berrange@redhat.com, qemu-devel@nongnu.org,
	ehabkost@redhat.com
Subject: Re: [PATCH not-for-merge 0/5] Instrumentation for "Fixes around device realization"
Date: Tue, 19 May 2020 08:50:21 +0200	[thread overview]
Message-ID: <87k1184dw2.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <6058b1d7-53c2-adc1-9cc0-f6cbd85d2e48@ilande.co.uk> (Mark Cave-Ayland's message of "Mon, 18 May 2020 21:56:12 +0100")

Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> writes:

> On 18/05/2020 06:19, Markus Armbruster wrote:
>
>> This is the instrumentation mentioned in "[PATCH 00/24] Fixes around
>> device realization".
>> 
>> PATCH 2/5 might have value on its own.  You tell me.
>> 
>> Shell script to smoke-test all machines:
>> 
>> #!/bin/sh
>> success=0
>> fail=0
>> ulimit -c 0
>> git-describe --dirty --match v\*
>> git-log --oneline -1
>> for i in bld/*-softmmu
>> do
>>     t=${i%-softmmu}
>>     t=${t##*/}
>>     q=$i/qemu-system-$t
>>     echo "= $t ="
>> 
>>     for m in `$q -M help | sed -n '/(alias of/d;2,$s/ .*//p'`
>>     do
>> 	echo "== $m =="
>> 	echo -e 'info qom-tree\ninfo qtree\nq' | $q -S -accel qtest -display none -L smoke-mon-roms -M $m -monitor stdio
>> 	if [ $? -eq 0 ]
>> 	then echo "*** Success: $m ***"; let success++
>> 	else echo "*** Fail: $m"; let fail++
>> 	fi
>>     done
>> done
>> echo $success succeeded, $fail failed
>> 
>> 
>> Markus Armbruster (5):
>>   qom: Instrument to detect missed realize
>>   qom: Make "info qom-tree" show children sorted
>>   qdev: Make "info qtree" show child devices sorted by QOM path
>>   qdev: Instrument to detect missed QOM parenting
>>   qdev: Instrument to detect bus mismatch
>> 
>>  hw/core/qdev.c     | 17 ++++++++++++++++
>>  qdev-monitor.c     | 32 ++++++++++++++++++++++++++++-
>>  qom/qom-hmp-cmds.c | 51 +++++++++++++++++++++++++++++++++++++++++++++-
>>  3 files changed, 98 insertions(+), 2 deletions(-)
>
> Thanks for sharing these patches! I certainly think that they have value and after a
> quick read through I'm thinking:
>
> - Patch 1 I assume is no longer needed once you previous series is merged

Correct, "[PATCH 24/24] qdev: Assert onboard devices all get realized
properly" supersedes.

> - Patches 2 & 3 would be really useful at the start of your previous series (as
> someone who has gone crossed-eyed enough trying to spot these differences, this is
> really helpful)

It's where they sat while I developed my fixes, so I don't go
cross-eyed, too :)

> - Patches 4 and 5 are good sanity checks for developers but I'm wondering what is the
> extent of work that needs to be done? Could existing failures be whitelisted with the
> aim of removal which would then at least prevent new devices being added that aren't
> correct?

Since realization assigns a QOM parent to orphans, "[PATCH 24/24] qdev:
Assert onboard devices all get realized properly" supersedes PATCH 4,
too.  I needed both PATCH 1 and 4 to track down missing realizes,
because some were visible only in "info qtree" (PATCH 4), and some only
in "info qom-tree" (PATCH 1).

"[PATCH 22/24] qdev: Assert devices are plugged into a bus that can take
them" supersedes PATCH 5.

Thanks!



  reply	other threads:[~2020-05-19  6:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-18  5:19 [PATCH not-for-merge 0/5] Instrumentation for "Fixes around device realization" Markus Armbruster
2020-05-18  5:19 ` [PATCH not-for-merge 1/5] qom: Instrument to detect missed realize Markus Armbruster
2020-05-18  5:19 ` [PATCH not-for-merge 2/5] qom: Make "info qom-tree" show children sorted Markus Armbruster
2020-05-18 21:04   ` Eric Blake
2020-05-19  6:43     ` Markus Armbruster
2020-05-18  5:19 ` [PATCH not-for-merge 3/5] qdev: Make "info qtree" show child devices sorted by QOM path Markus Armbruster
2020-05-18  5:19 ` [PATCH not-for-merge 4/5] qdev: Instrument to detect missed QOM parenting Markus Armbruster
2020-05-18  5:19 ` [PATCH not-for-merge 5/5] qdev: Instrument to detect bus mismatch Markus Armbruster
2020-05-18  6:54 ` [PATCH not-for-merge 0/5] Instrumentation for "Fixes around device realization" no-reply
2020-05-18  7:08 ` no-reply
2020-05-18  7:27 ` no-reply
2020-05-18 20:56 ` Mark Cave-Ayland
2020-05-19  6:50   ` Markus Armbruster [this message]
2020-05-20 12:13 ` Philippe Mathieu-Daudé
2020-05-20 14:18   ` Markus Armbruster

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=87k1184dw2.fsf@dusky.pond.sub.org \
    --to=armbru@redhat.com \
    --cc=berrange@redhat.com \
    --cc=ehabkost@redhat.com \
    --cc=mark.cave-ayland@ilande.co.uk \
    --cc=pbonzini@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).