From: Wei Liu <wei.liu2@citrix.com>
To: Akshay Jaggi <akshay1994.leo@gmail.com>
Cc: "Stefano Stabellini" <sstabellini@kernel.org>,
"Wei Liu" <wei.liu2@citrix.com>,
"George Dunlap" <George.Dunlap@eu.citrix.com>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Roger Pau Monné" <royger@freebsd.org>,
"Ian Jackson" <ian.jackson@eu.citrix.com>,
"Tim Deegan" <tim@xen.org>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH] gnttab: Add gntdev device mappings for FreeBSD
Date: Thu, 11 Aug 2016 17:04:17 +0100 [thread overview]
Message-ID: <20160811160417.GS20641@citrix.com> (raw)
In-Reply-To: <CAAeUNVncKCui5A7FD-siZtjR3t7_raA5UN9wMYjoQt-=VAdxXg@mail.gmail.com>
On Sun, Aug 07, 2016 at 03:48:44PM +0530, Akshay Jaggi wrote:
> > > + int fd = xgt->fd, rc;
> > > + struct ioctl_gntdev_set_max_grants max_grants = { .count = count };
> > > +
> > > + rc = ioctl(fd, IOCTL_GNTDEV_SET_MAX_GRANTS, &max_grants);
> > > + if (rc) {
> >
> > Coding style, the bracket should be on a new line and you need spaces
> > inside
> > the conditional.
> >
> >
> Most code is from linux.c. I modified the code to use appropriate
> definitions from the interface we expose, but left all other things in
> place.
> I went over the code, to fix the style issues, but found some other errors.
> For instance, in function osdep_gntshr_share_pages(), notify_offset and
> notify_port are specified -1 when the user doesn't want these notify
> functions. But there is no such check for notify_offset, and it ends up
> having an unintended consequence on a previous grant (map->index-1 lies on
> a different grant).
> I'll fix this in the freebsd file, and also the linux one and send by
> tonight. :)
>
Please send a separate patch for linux.c as we probably want to backport
that.
Wei.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-08-11 16:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-04 12:53 [PATCH] gnttab: Add gntdev device mappings for FreeBSD Akshay Jaggi
2016-08-05 16:45 ` Roger Pau Monné
2016-08-07 10:18 ` Akshay Jaggi
2016-08-11 16:04 ` Wei Liu [this message]
2016-08-11 16:14 ` Wei Liu
2016-08-17 12:02 ` Akshay Jaggi
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=20160811160417.GS20641@citrix.com \
--to=wei.liu2@citrix.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=akshay1994.leo@gmail.com \
--cc=andrew.cooper3@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=royger@freebsd.org \
--cc=sstabellini@kernel.org \
--cc=tim@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 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).