]> git.proxmox.com Git - mirror_qemu.git/commit - configure
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>
Thu, 10 Sep 2015 12:04:29 +0000 (12:04 +0000)
commitd8b441a3fbfd075c48ab2a519d779d926624ed79
tree69e519dac99838f47a3b1be1f16b62b280d9f5f7
parente763addd19e59dbd1986d4b0faae63dcb9a0f6aa
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).

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