]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: replace arch_has_restricted_virtio_memory_access()
authorJuergen Gross <jgross@suse.com>
Mon, 6 Jun 2022 06:09:16 +0000 (08:09 +0200)
committerJuergen Gross <jgross@suse.com>
Mon, 6 Jun 2022 06:22:01 +0000 (08:22 +0200)
commit6473bd42abd2434094edab594138ddc7b22aed21
treef5f088e56ce3e646a0eb3d9844b3757ca7101bd9
parentc77dd2d8578db564e2535542c3999bd51417c4e9
virtio: replace arch_has_restricted_virtio_memory_access()

Instead of using arch_has_restricted_virtio_memory_access() together
with CONFIG_ARCH_HAS_RESTRICTED_VIRTIO_MEMORY_ACCESS, replace those
with platform_has() and a new platform feature
PLATFORM_VIRTIO_RESTRICTED_MEM_ACCESS.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Tested-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com> # Arm64 only
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Borislav Petkov <bp@suse.de>
arch/s390/Kconfig
arch/s390/mm/init.c
arch/x86/Kconfig
arch/x86/mm/mem_encrypt.c
arch/x86/mm/mem_encrypt_amd.c
drivers/virtio/Kconfig
drivers/virtio/virtio.c
include/linux/platform-feature.h
include/linux/virtio_config.h