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:
Oleksandr Tyshchenko authored and Julien Grall committed 2021-01-29 16:56:09 +00:00
1 parent 546014e480
commit 2fbd7e609e
1 file changed
+3
+3
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.