]> xenbits.xensource.com Git - xen.git/commit
xen/ioreq: Move x86's io_completion/io_req fields to struct vcpu
authorOleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Fri, 29 Jan 2021 01:48:38 +0000 (03:48 +0200)
committerJulien Grall <jgrall@amazon.com>
Fri, 29 Jan 2021 16:55:23 +0000 (16:55 +0000)
commitfe5df63c086c6adb6af8d1a041f5589d4d82f966
tree4b0a7d8bd360825431fb64616e55356b451d9185
parente6ddac90a098ca012754e11804dd9202cdabcdff
xen/ioreq: Move x86's io_completion/io_req fields to struct vcpu

The IOREQ is a common feature now and these fields will be used
on Arm as is. Move them to common struct vcpu as a part of new
struct vcpu_io and drop duplicating "io" prefixes. Also move
enum hvm_io_completion to xen/sched.h and remove "hvm" prefixes.

This patch completely removes layering violation in the common code.

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
CC: Julien Grall <julien.grall@arm.com>
[On Arm only]
Tested-by: Wei Chen <Wei.Chen@arm.com>
xen/arch/x86/hvm/emulate.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/io.c
xen/arch/x86/hvm/ioreq.c
xen/arch/x86/hvm/svm/nestedsvm.c
xen/arch/x86/hvm/vmx/realmode.c
xen/common/ioreq.c
xen/include/asm-x86/hvm/emulate.h
xen/include/asm-x86/hvm/vcpu.h
xen/include/xen/ioreq.h
xen/include/xen/sched.h