From: "Per Bilse (3P)" <Per.Bilse@citrix.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: Paul Durrant <paul@xen.org>,
Andrew Cooper <Andrew.Cooper3@citrix.com>,
Roger Pau Monne <roger.pau@citrix.com>, Wei Liu <wl@xen.org>,
Julien Grall <julien@xen.org>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH] ioreq_broadcast(): accept partial broadcast success
Date: Mon, 28 Nov 2022 10:16:56 +0000 [thread overview]
Message-ID: <b432d29a-e704-1e4f-bcce-e6c4258a3204@citrix.com> (raw)
In-Reply-To: <fdc2eb93-2b8a-f3c9-82b0-5d4e90ecda9c@suse.com>
On 28/11/2022 08:21, Jan Beulich wrote:
> On 26.11.2022 23:19, Julien Grall wrote:
>>
>> The commit message is quite vague, so it is hard to know what you are
>> trying to solve exactly. AFAIU, there are two reasons for
>> ioreq_broadcast to fails:
>> 1) The IOREQ server didn't register the bufioreq
>> 2) The IOREQ buffer page is full
>>
>> While I would agree that the error message is not necessary for 1) (the
>> IOREQ server doesn't care about the event), I would disagree for 2)
>> because it would indicate something went horribly wrong in the IOREQ
>> server and there is a chance your domain may misbehave afterwards.
>
> In addition I think ignoring failure (and, as said by Julien, only because
> of no bufioreq being registered) is (kind of implicitly) valid only for
> buffered requests. Hence I'm unconvinced of the need of a new boolean
> function parameter. Instead I think we need a new IOREQ_STATUS_... value
> representing the "not registered" case. And that could then be used by
> ioreq_broadcast() to skip incrementing of "failed".
Hi guys, and thank you very much for the feedback. As I'm sure you've
guessed I'm a newbie in Xen terms, so apologies for not getting things
quite right.
Varstored dropped support for buffered ioreqs, hence the persistent
error message(s), and the proposed fix was derived from discussion in
Citrix's hypervisor team. The 'partial' parameter could arguably be
considered a case of (undesirable) special case handling, but
ioreq_broadcast() is called from only two places in the code, so this
seemed to be the lightest and simplest solution. I'll have to defer to
more knowledgeable team members for further thoughts on this.
Best,
-- Per
next prev parent reply other threads:[~2022-11-28 10:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-25 14:15 [PATCH] ioreq_broadcast(): accept partial broadcast success Per Bilse
2022-11-26 22:19 ` Julien Grall
2022-11-28 8:21 ` Jan Beulich
2022-11-28 10:16 ` Per Bilse (3P) [this message]
2022-11-28 11:06 ` Roger Pau Monné
2022-11-28 12:26 ` Jan Beulich
2022-11-30 13:56 ` Paul Durrant
2022-12-06 10:43 ` Per Bilse (3P)
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=b432d29a-e704-1e4f-bcce-e6c4258a3204@citrix.com \
--to=per.bilse@citrix.com \
--cc=Andrew.Cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=paul@xen.org \
--cc=roger.pau@citrix.com \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.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.