From: Anthony PERARD <anthony.perard@citrix.com>
To: "Durrant, Paul" <pdurrant@amazon.com>
Cc: "Stefano Stabellini" <sstabellini@kernel.org>,
"Julien Grall" <julien@xen.org>, "Wei Liu" <wl@xen.org>,
"Konrad Rzeszutek Wilk" <konrad.wilk@oracle.com>,
"George Dunlap" <George.Dunlap@eu.citrix.com>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Ian Jackson" <ian.jackson@eu.citrix.com>,
"George Dunlap" <george.dunlap@citrix.com>,
"Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>,
"Jan Beulich" <jbeulich@suse.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
"Volodymyr Babchuk" <Volodymyr_Babchuk@epam.com>,
"Roger Pau Monné" <roger.pau@citrix.com>
Subject: Re: [Xen-devel] [PATCH-for-4.13 v5] Rationalize max_grant_frames and max_maptrack_frames handling
Date: Fri, 29 Nov 2019 13:52:04 +0000 [thread overview]
Message-ID: <20191129135204.GE1155@perard.uk.xensource.com> (raw)
In-Reply-To: <b6aa51e207aa44eca1acb027e5765d24@EX13D32EUC003.ant.amazon.com>
On Fri, Nov 29, 2019 at 12:51:47PM +0000, Durrant, Paul wrote:
> > -----Original Message-----
> > From: Anthony PERARD <anthony.perard@citrix.com>
> > Sent: 29 November 2019 12:46
> > I'm not sure what was the intention with the new function
> > xlu_cfg_get_bounded_long(), but I don't think libxlu is the right place
> > for it. That function is only going to make it harder for users to find
> > mistakes in the config file. If `n' value is out of bound, it will only
> > get ignored, and xl will keep going. I think xlu_cfg should only be a
> > parser (and can check for syntax error).
> >
> > Can you move that function to xl?
> >
>
> I can, but why is this not considered useful in libxl? The call returns failure for an out-of-bounds check.
Sorry that the repo layout is confusing, but libxl != libxlu. libxl
doesn't even use libxlu!
> If xl currently chooses to treat EINVAL as ENOENT then that's xl's bug to deal with.
The general use of xlu_cfg_get_*() that treats all errors as ENOENT in
xl is an issue, I think, but this patch does the same thing and treat
EINVAL as ENOENT when using the newly introduced
xlu_cfg_get_bounded_long() function. I don't think that an xl bug to
deal with, but an issue with the patch.
Cheers,
--
Anthony PERARD
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2019-11-29 13:52 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-28 16:52 [Xen-devel] [PATCH-for-4.13 v5] Rationalize max_grant_frames and max_maptrack_frames handling Paul Durrant
2019-11-29 10:22 ` Jan Beulich
2019-11-29 10:28 ` Jan Beulich
2019-11-29 10:39 ` Durrant, Paul
2019-11-29 10:46 ` Jan Beulich
2019-11-29 10:48 ` Durrant, Paul
2019-11-29 12:01 ` Jürgen Groß
2019-11-29 12:17 ` Jan Beulich
2019-11-29 12:19 ` Jürgen Groß
2019-11-29 12:44 ` Wei Liu
2019-11-29 15:47 ` Ian Jackson
2019-11-29 15:57 ` Durrant, Paul
2019-11-29 16:07 ` Ian Jackson
2019-11-29 16:09 ` George Dunlap
2019-11-29 16:10 ` Durrant, Paul
2019-11-29 17:10 ` Ian Jackson
2019-11-29 12:46 ` Anthony PERARD
2019-11-29 12:51 ` Durrant, Paul
2019-11-29 13:52 ` Anthony PERARD [this message]
2019-11-29 14:04 ` Durrant, Paul
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=20191129135204.GE1155@perard.uk.xensource.com \
--to=anthony.perard@citrix.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=Volodymyr_Babchuk@epam.com \
--cc=andrew.cooper3@citrix.com \
--cc=george.dunlap@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=konrad.wilk@oracle.com \
--cc=marmarek@invisiblethingslab.com \
--cc=pdurrant@amazon.com \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.org \
--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.