]> git.proxmox.com Git - mirror_qemu.git/commit - include/hw/xen/xen_native.h
xen: restrict: use xentoolcore_restrict_all
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 15 Sep 2017 15:03:14 +0000 (16:03 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 26 Apr 2018 15:29:51 +0000 (16:29 +0100)
commit0ef4d87da58dfe0e0e466414701c103b7a44df65
treea25a6bac8c41ca0b7328a7b217f92eb662225c6f
parent58ea9a7a025243d3c34f869d4c5ea7c174235c4e
xen: restrict: use xentoolcore_restrict_all

And insist that it works.

Drop individual use of xendevicemodel_restrict and
xenforeignmemory_restrict.  These are not actually effective in this
version of qemu, because qemu has a large number of fds open onto
various Xen control devices.

The restriction arrangements are still not right, because the
restriction needs to be done very late - after qemu has opened all of
its control fds.

xentoolcore_restrict_all and xentoolcore.h are available in Xen 4.10
and later, only.  Provide a compatibility stub.  And drop the
compatibility stubs for the old functions.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
include/hw/xen/xen_common.h