linux-imx/include/xen/interface
David Vrabel a489a13bfc xen: Add RING_COPY_REQUEST()
commit 454d5d882c upstream.

Using RING_GET_REQUEST() on a shared ring is easy to use incorrectly
(i.e., by not considering that the other end may alter the data in the
shared ring while it is being inspected).  Safe usage of a request
generally requires taking a local copy.

Provide a RING_COPY_REQUEST() macro to use instead of
RING_GET_REQUEST() and an open-coded memcpy().  This takes care of
ensuring that the copy is done correctly regardless of any possible
compiler optimizations.

Use a volatile source to prevent the compiler from reordering or
omitting the copy.

This is part of XSA155.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2016-01-22 21:40:06 +00:00
..
hvm x86: Call HVMOP_pagetable_dying on exit_mmap. 2010-07-26 23:13:26 -07:00
io xen: Add RING_COPY_REQUEST() 2016-01-22 21:40:06 +00:00
callback.h xen64: define asm/xen/interface for 64-bit 2008-07-16 10:56:18 +02:00
elfnote.h Fix common misspellings 2011-03-31 11:26:23 -03:00
event_channel.h xen: clean up asm/xen/hypervisor.h 2008-12-16 21:50:31 +01:00
features.h xen: support GSI -> pirq remapping in PV on HVM guests 2010-10-22 21:25:42 +01:00
grant_table.h xen: Xen PCI platform device driver. 2010-07-22 16:46:09 -07:00
memory.h xen: implement XENMEM_machphys_mapping 2010-11-12 15:00:06 -08:00
physdev.h xen/pci: support multi-segment systems 2011-09-22 16:23:46 -04:00
platform.h xen/acpi: Domain0 acpi parser related platform hypercall 2011-09-26 11:04:39 -07:00
sched.h watchdog: Xen watchdog driver 2011-03-15 16:02:18 +00:00
vcpu.h xen: add missing definitions in include/xen/interface/vcpu.h which ia64/xen needs 2008-04-24 23:57:32 +02:00
version.h xen: add /sys/hypervisor support 2009-03-30 09:27:06 -07:00
xen.h Merge branch 'upstream/xen-settime' of git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen 2011-11-06 20:15:05 -08:00
xencomm.h xen: import arch generic part of xencomm 2008-04-24 23:57:32 +02:00