xen/ioreq: Make x86's hvm_mmio_first(last)_byte() common
authorOleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Fri, 29 Jan 2021 01:48:34 +0000 (03:48 +0200)
committerJulien Grall <jgrall@amazon.com>
Fri, 29 Jan 2021 16:18:15 +0000 (16:18 +0000)
commitc648ff96229f899124d4da2693ffe5bfe49a974f
treefb11511d1dea32bd84d1e07fa34b1fd8118db0f1
parent4607644168597c79b5c350ce326e81f8f27fbc11
xen/ioreq: Make x86's hvm_mmio_first(last)_byte() common

The IOREQ is a common feature now and these helpers will be used
on Arm as is. Move them to xen/ioreq.h and replace "hvm" prefixes
with "ioreq".

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
CC: Julien Grall <julien.grall@arm.com>
[On Arm only]
Tested-by: Wei Chen <Wei.Chen@arm.com>
xen/arch/x86/hvm/intercept.c
xen/arch/x86/hvm/stdvga.c
xen/common/ioreq.c
xen/include/asm-x86/hvm/io.h
xen/include/xen/ioreq.h