]> git.baikalelectronics.ru Git - kernel.git/commit
xen/virtio: Enable restricted memory access using Xen grant mappings
authorJuergen Gross <jgross@suse.com>
Thu, 2 Jun 2022 19:23:49 +0000 (22:23 +0300)
committerJuergen Gross <jgross@suse.com>
Mon, 6 Jun 2022 14:07:30 +0000 (16:07 +0200)
commitbf3d7b9b4e63bd07fd9c72ba54470c141d6a6209
treea7cfcba922c86058156d997e07180b269b321c34
parent47c544275c6d4b3fdd4c7e11570c23067f8af9af
xen/virtio: Enable restricted memory access using Xen grant mappings

In order to support virtio in Xen guests add a config option XEN_VIRTIO
enabling the user to specify whether in all Xen guests virtio should
be able to access memory via Xen grant mappings only on the host side.

Also set PLATFORM_VIRTIO_RESTRICTED_MEM_ACCESS feature from the guest
initialization code on Arm and x86 if CONFIG_XEN_VIRTIO is enabled.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: https://lore.kernel.org/r/1654197833-25362-5-git-send-email-olekstysh@gmail.com
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/arm/xen/enlighten.c
arch/x86/xen/enlighten_hvm.c
arch/x86/xen/enlighten_pv.c
drivers/xen/Kconfig
include/xen/xen.h