Message ID | EB8593BCECAB3D40A8248BE0B6400A3835909017@shzsmsx502.ccr.corp.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/qemu-kvm.c b/qemu-kvm.c index 599c3d6..bdf90b4 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -1618,7 +1618,7 @@ static void kvm_do_load_mpstate(void *_env) void kvm_load_mpstate(CPUState *env) { - if (kvm_enabled() && qemu_system_ready) + if (kvm_enabled() && qemu_system_ready && kvm_vcpu_inited(env)) on_vcpu(env, kvm_do_load_mpstate, env); }