xen/mm: Make x86's XENMEM_resource_ioreq_server handling common
authorJulien Grall <julien.grall@arm.com>
Fri, 29 Jan 2021 01:48:39 +0000 (03:48 +0200)
committerJulien Grall <jgrall@amazon.com>
Fri, 29 Jan 2021 16:55:23 +0000 (16:55 +0000)
commite22906cf81233989c4b3b78f94d1a36c7a1f9aa0
tree256d9e647740b5a5a2b2a449817249b68b9ebfc3
parentfe5df63c086c6adb6af8d1a041f5589d4d82f966
xen/mm: Make x86's XENMEM_resource_ioreq_server handling common

As x86 implementation of XENMEM_resource_ioreq_server can be
re-used on Arm later on, this patch makes it common and removes
arch_acquire_resource (and the corresponding option) as unneeded.

Also re-order #include-s alphabetically.

This support is going to be used on Arm to be able run device
emulator outside of Xen hypervisor.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul@xen.org>
[On Arm only]
Tested-by: Wei Chen <Wei.Chen@arm.com>
xen/arch/x86/Kconfig
xen/arch/x86/mm.c
xen/common/Kconfig
xen/common/memory.c
xen/include/asm-x86/mm.h
xen/include/xen/mm.h