mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xen/ioreq: Do not let bufioreq to be used on other than x86 arches
This patch prevents the device model running on other than x86 systems to use buffered I/O feature for now. Please note, there is no caller which requires to send buffered I/O request on Arm currently and the purpose of this check is to catch any future user of bufioreq. Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com> Acked-by: Jan Beulich <jbeulich@suse.com> Acked-by: Julien Grall <jgrall@amazon.com> Acked-by: Paul Durrant <paul@xen.org>
This commit is contained in:
1 parent
546014e480
commit
2fbd7e609e
1 file changed
+3
@@ -629,6 +629,9 @@ static int ioreq_server_create(struct domain *d, int bufioreq_handling,
|
||||
unsigned int i;
|
||||
int rc;
|
||||
|
||||
if ( !IS_ENABLED(CONFIG_X86) && bufioreq_handling )
|
||||
return -EINVAL;
|
||||
|
||||
if ( bufioreq_handling > HVM_IOREQSRV_BUFIOREQ_ATOMIC )
|
||||
return -EINVAL;
|
||||
|
||||
|
||||