|
@@ -179,10 +179,9 @@ static void kvm_prepare_system_event(struct kvm_vcpu *vcpu, u32 type)
|
|
|
* after this call is handled and before the VCPUs have been
|
|
|
* re-initialized.
|
|
|
*/
|
|
|
- kvm_for_each_vcpu(i, tmp, vcpu->kvm) {
|
|
|
+ kvm_for_each_vcpu(i, tmp, vcpu->kvm)
|
|
|
tmp->arch.power_off = true;
|
|
|
- kvm_vcpu_kick(tmp);
|
|
|
- }
|
|
|
+ kvm_make_all_cpus_request(vcpu->kvm, KVM_REQ_VCPU_EXIT);
|
|
|
|
|
|
memset(&vcpu->run->system_event, 0, sizeof(vcpu->run->system_event));
|
|
|
vcpu->run->system_event.type = type;
|