When sending a call-function IPI-many to vCPUs, yield if any of the IPI target vCPUs was preempted, we just select the first preempted target vCPU which we found since the state of target vCPUs can change underneath and to avoid race conditions.
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -28,6 +28,7 @@ · 27 unmodified lines | ||
| 28 | 28 | #define KVM_HC_MIPS_CONSOLE_OUTPUT 8 |
| 29 | 29 | #define KVM_HC_CLOCK_PAIRING 9 |
| 30 | 30 | #define KVM_HC_SEND_IPI 10 |
| 31 | +#define KVM_HC_SCHED_YIELD 11 | |
| 31 | 32 | |
| 32 | 33 | /* |
| 33 | 34 | * hypercalls use architecture specific |