From: Markus Armbruster <armbru@redhat.com>
To: Halil Pasic <pasic@linux.ibm.com>
Cc: Cornelia Huck <cohuck@redhat.com>, qemu-devel@nongnu.org
Subject: Re: css_clear_io_interrupt() error handling
Date: Mon, 15 May 2023 08:39:24 +0200 [thread overview]
Message-ID: <87ttwecd43.fsf@pond.sub.org> (raw)
In-Reply-To: <20230512020519.6dab1a81.pasic@linux.ibm.com> (Halil Pasic's message of "Fri, 12 May 2023 02:05:19 +0200")
Halil Pasic <pasic@linux.ibm.com> writes:
> On Thu, 11 May 2023 14:20:51 +0200
> Markus Armbruster <armbru@redhat.com> wrote:
> [..]
>> >
>> > In my opinion the best way to deal with such situations would be to
>> > abort() in test/development and log a warning in production. Of course
>>
>> Understand, but...
>>
>> > assert() wouldn't give me that, and it wouldn't be locally consistent at
>> > all.
>>
>> ... nothing behaves like that so far.
>>
>
> I understand. And I agree with all statements from your previous mail.
>
>> Let's try to come to a conclusion. We can either keep the current
>> behavior, i.e. abort(). Or we change it to just print something.
>>
>> If we want the latter: fprintf() to stderr, warn_report(), or trace
>> point?
>>
>> You are the maintainer, so the decision is yours.
>>
>> I could stick a patch into a series of error-related cleanup patches I'm
>> working on.
>
> I would gladly take that offer. Given that we didn't see any crashes and
> thus violations of assumptions up till now, and that both the kvm and the
> qemu implementations are from my perspective stable, I think not forcing
> a crash is a good option. From the options you offered, warn_report()
> looks the most compelling to me, but I would trust your expertise to pick
> the actually best one.
>
> Thank you very much.
You're welcome!
>> [*] I'm rather fond of the trick to have oopsie() fork & crash.
>
> I never thought of this, but I do actually find it very compelling
> to get a dump while keeping the workload alive. Especially if
> it was oopsie_once() so one does not get buried in dumps. But we don't
> do things like this in QEMU, or do we?
No, we don't.
prev parent reply other threads:[~2023-05-15 6:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-08 6:18 css_clear_io_interrupt() error handling Markus Armbruster
2023-05-08 9:01 ` Cornelia Huck
2023-05-09 17:36 ` Halil Pasic
2023-05-10 6:32 ` Markus Armbruster
2023-05-11 1:43 ` Halil Pasic
2023-05-11 12:20 ` Markus Armbruster
2023-05-12 0:05 ` Halil Pasic
2023-05-15 6:39 ` Markus Armbruster [this message]
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=87ttwecd43.fsf@pond.sub.org \
--to=armbru@redhat.com \
--cc=cohuck@redhat.com \
--cc=pasic@linux.ibm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.