From 1cffeb6f92dab701dfae0a6f5e52375deba422b7 Mon Sep 17 00:00:00 2001 From: Christian Ehrhardt Date: Tue, 8 Apr 2014 17:52:01 +0200 Subject: [PATCH] fio: fix s390 nop When trying to run rate limited fio runs we encountered that the current definition of a nop uses a privileged instruction which is not even a nop, but a yield call to the hipervisor. That leads to a SIGILL as it is privileged. To solve that issue replace it with a nop, the assembler will take care of it (likely to become a BCR 0,0) Signed-off-by: Christian Ehrhardt Signed-off-by: Jens Axboe --- arch/arch-s390.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arch-s390.h b/arch/arch-s390.h index 2c205de3..56cb2302 100644 --- a/arch/arch-s390.h +++ b/arch/arch-s390.h @@ -18,7 +18,7 @@ #define __NR_sys_vmsplice 309 #endif -#define nop asm volatile ("diag 0,0,68" : : : "memory") +#define nop asm volatile("nop" : : : "memory") #define read_barrier() asm volatile("bcr 15,0" : : : "memory") #define write_barrier() asm volatile("bcr 15,0" : : : "memory") -- 2.25.1