KVM: X86: Expose PV_SCHED_YIELD CPUID feature bit to guest
authorWanpeng Li <wanpengli@tencent.com>
Tue, 11 Jun 2019 12:23:50 +0000 (20:23 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Jul 2019 16:56:05 +0000 (18:56 +0200)
commit32b72ecc83b651fb8633ac4bd44957c54367699d
tree6dea551b4900870e4fe16883a9ef9bf3130a5909
parent715062970f3748fbbf55c1a8cb495051760a65c1
KVM: X86: Expose PV_SCHED_YIELD CPUID feature bit to guest

Expose PV_SCHED_YIELD feature bit to guest, the guest can check this
feature bit before using paravirtualized sched yield.

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>
Documentation/virtual/kvm/cpuid.txt
arch/x86/kvm/cpuid.c