]> git.proxmox.com Git - mirror_qemu.git/commit
Xen: Use the ioreq-server API when available
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 20 Jan 2015 11:06:19 +0000 (11:06 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 20 Jan 2015 14:24:10 +0000 (14:24 +0000)
commit3996e85c1822e05c50250f8d2d1e57b6bea1229d
tree275774a6b43e86327dcbc98021e3ddfa52d54bf1
parent707ff80021ccd7a68f4b3d2c44eebf87efbb41c4
Xen: Use the ioreq-server API when available

The ioreq-server API added to Xen 4.5 offers better security than
the existing Xen/QEMU interface because the shared pages that are
used to pass emulation request/results back and forth are removed
from the guest's memory space before any requests are serviced.
This prevents the guest from mapping these pages (they are in a
well known location) and attempting to attack QEMU by synthesizing
its own request structures. Hence, this patch modifies configure
to detect whether the API is available, and adds the necessary
code to use the API if it is.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
configure
include/hw/xen/xen_common.h
trace-events
xen-hvm.c