History

KVM: X86: Yield to IPI target if necessary

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.

Wanpeng Li committed 7 years ago

Commit f85f6e71 parent 11e34914 files · +34 −0Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/kvm_para.h+1−0
@@ -28,6 +28,7 @@ · 27 unmodified lines
28#define KVM_HC_MIPS_CONSOLE_OUTPUT 828#define KVM_HC_MIPS_CONSOLE_OUTPUT 8
29#define KVM_HC_CLOCK_PAIRING 929#define KVM_HC_CLOCK_PAIRING 9
30#define KVM_HC_SEND_IPI 1030#define KVM_HC_SEND_IPI 10
31#define KVM_HC_SCHED_YIELD 11
31 32
32/*33/*
33 * hypercalls use architecture specific34 * hypercalls use architecture specific