[PATCH v2 1/4] KVM: Add vCPU running/preempted state

2017-11-09 Thread Wanpeng Li
From: Wanpeng Li This patch reuses the preempted field in kvm_steal_time, and will export the vcpu running/pre-empted information to the guest from host. This will enable guest to intelligently send ipi to running vcpus and set flag for pre-empted vcpus. This will prevent

[PATCH v2 1/4] KVM: Add vCPU running/preempted state

2017-11-09 Thread Wanpeng Li
From: Wanpeng Li This patch reuses the preempted field in kvm_steal_time, and will export the vcpu running/pre-empted information to the guest from host. This will enable guest to intelligently send ipi to running vcpus and set flag for pre-empted vcpus. This will prevent waiting for vcpus that