]> xenbits.xensource.com Git - qemu-xen-4.6-testing.git/commit
HVM: atomically access pointers in bufioreq handling
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 28 Aug 2015 14:53:40 +0000 (15:53 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 28 Aug 2015 14:53:40 +0000 (15:53 +0100)
commit5cdde31eacdd288359746019ad05cac8ed5d9f70
treea4a6eaa381cf3aa3bfed7b52671c5ff9a07a1a8c
parent7f057440b31da38196e3398fd1b618fc36ad97d6
HVM: atomically access pointers in bufioreq handling

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. The hypervisor side gets I/O req server creation
extended so we can indicate that we're using suitable atomic accesses
where needed, allowing it to atomically canonicalize both pointers when
both have gone through at least one cycle.

The Xen side counterpart (which is not a functional prereq to this
change, albeit the intention is for Xen to assume default servers
always use suitable atomic accesses) went in already (commit
b7007bc6f9).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v2: Adjust description.
i386-dm/helper2.c