]> xenbits.xensource.com Git - qemu-upstream-4.6-testing.git/commit
xen/HVM: atomically access pointers in bufioreq handling
authorJan Beulich <JBeulich@suse.com>
Fri, 24 Jul 2015 09:38:28 +0000 (03:38 -0600)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 24 Jul 2015 10:36:08 +0000 (10:36 +0000)
commit9ad5c2cf05a084ef2fab2b21c4175f0a34482664
tree9f9edef045fb59fc68103dbd4cd6692bbbc8012f
parentc3eb5b77be3c731c2ecd6eddab403bb8dabc135a
xen/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 a build one) went in already (commit b7007bc6f9).

upstream-commit-id: 95728305c4781e69896e9f72d1023daa7be46dbe

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
configure
include/hw/xen/xen_common.h
xen-hvm.c