diff options
author | Wanpeng Li <wanpengli@tencent.com> | 2019-06-11 15:23:48 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-07-02 19:56:01 +0300 |
commit | f85f6e7bc9682a6d8b342c010cd6aa58521fdeec (patch) | |
tree | 5ca2f323769a35386e2a24b4c21d4c099778e950 /include/uapi/linux/kvm_para.h | |
parent | 11e349143e3289ab99f1b4858649f60703b7bf35 (diff) | |
download | linux-f85f6e7bc9682a6d8b342c010cd6aa58521fdeec.tar.xz |
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.
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Wanpeng Li <wanpengli@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/uapi/linux/kvm_para.h')
-rw-r--r-- | include/uapi/linux/kvm_para.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/kvm_para.h b/include/uapi/linux/kvm_para.h index 6c0ce49931e5..8b86609849b9 100644 --- a/include/uapi/linux/kvm_para.h +++ b/include/uapi/linux/kvm_para.h @@ -28,6 +28,7 @@ #define KVM_HC_MIPS_CONSOLE_OUTPUT 8 #define KVM_HC_CLOCK_PAIRING 9 #define KVM_HC_SEND_IPI 10 +#define KVM_HC_SCHED_YIELD 11 /* * hypercalls use architecture specific |