From: Ian Campbell <ian.campbell@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Wei Liu <wei.liu2@citrix.com>, Keir Fraser <keir@xen.org>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH] x86/HVM: avoid pointer wraparound in bufioreq handling
Date: Tue, 16 Jun 2015 09:20:08 +0100 [thread overview]
Message-ID: <1434442808.13744.39.camel@citrix.com> (raw)
In-Reply-To: <557FE1DB0200007800085388@mail.emea.novell.com>
On Tue, 2015-06-16 at 07:44 +0100, Jan Beulich wrote:
> >>> On 15.06.15 at 16:30, <JBeulich@suse.com> wrote:
> > The number of slots per page being 511 (i.e. not a power of two) means
> > that the (32-bit) read and write indexes going beyond 2^32 will likely
> > disturb operation. Extend I/O req server creation so the caller can
> > indicate that it is using suitable atomic accesses where needed (not
> > all accesses to the two pointers really need to be atomic), allowing
> > the hypervisor to atomically canonicalize both pointers when both have
> > gone through at least one cycle.
> >
> > Signed-off-by: Jan Beulich <jbeulich@suse.com>
>
> No matter that it's just a single line change, I realized that I
> forgot to Cc the tools maintainers. While a v2 will be needed (see
> the reply just sent to Andrew) I'd still appreciate input (if any) to
> limit the number of revisions needed.
For such a simple toolstack side change which just reflects the
underlying hcall interface I have no real opinion so far as the tools
side goes, but it would be good to update the comments in xenctrl.h too.
With that done for the tools change:
Acked-by: Ian Campbell <ian.campbell@citrix.com>
For the hypercall interface level, I wonder if handle_bufioreq is still
an appropriate name given its no longer treated as a boolean flag?
bufioreq_type or something perhaps?
Ian.
next prev parent reply other threads:[~2015-06-16 8:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-15 14:30 [PATCH] x86/HVM: avoid pointer wraparound in bufioreq handling Jan Beulich
2015-06-15 15:55 ` Andrew Cooper
2015-06-16 6:40 ` Jan Beulich
2015-06-16 9:32 ` Andrew Cooper
2015-06-16 6:44 ` Jan Beulich
2015-06-16 8:20 ` Ian Campbell [this message]
2015-06-16 8:37 ` Jan Beulich
2015-06-16 8:59 ` Ian Campbell
2015-06-16 9:15 ` Paul Durrant
2015-06-16 9:29 ` Jan Beulich
2015-06-16 9:45 ` Paul Durrant
2015-06-16 9:54 ` Jan Beulich
2015-06-16 9:34 ` Jan Beulich
2015-06-16 9:41 ` Ian Campbell
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=1434442808.13744.39.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=keir@xen.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--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.