Browse Source

Switch SIG_IPI to SIGUSR1

Use SIGUSR1 unconditionally as SIG_IPI. First, ucontext coroutines tend
to corrupt RT signal masks due to a 32-on-64-bit Linux kernel bug. And,
second, there appears to be no advantage in using RT signals for VCPU
kicking.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Jan Kiszka 13 năm trước cách đây
mục cha
commit
a7aae221b0
1 tập tin đã thay đổi với 0 bổ sung4 xóa
  1. 0 4
      main-loop.h

+ 0 - 4
main-loop.h

@@ -25,11 +25,7 @@
 #ifndef QEMU_MAIN_LOOP_H
 #ifndef QEMU_MAIN_LOOP_H
 #define QEMU_MAIN_LOOP_H 1
 #define QEMU_MAIN_LOOP_H 1
 
 
-#ifdef SIGRTMIN
-#define SIG_IPI (SIGRTMIN+4)
-#else
 #define SIG_IPI SIGUSR1
 #define SIG_IPI SIGUSR1
-#endif
 
 
 /**
 /**
  * qemu_init_main_loop: Set up the process so that it can run the main loop.
  * qemu_init_main_loop: Set up the process so that it can run the main loop.