x86, hvm: set vcpu->is_initialised after restore/migration

After restore/migration, the xenctx command for auxiliary vcpus
fails with a message "xc_vcpu_getcontext: No data available".

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
This commit is contained in:
Keir Fraser committed 2009-06-16 13:39:00 +01:00
1 parent 9640ac9154
commit 2d61801bce
1 file changed
+3 -2
+3 -2
View File
@@ -662,8 +662,9 @@ static int hvm_load_cpu_ctxt(struct domain *d, hvm_domain_context_t *h)
v->fpu_initialised = 1;
/* Auxiliary processors should be woken immediately. */
if ( test_and_clear_bit(_VPF_down, &v->pause_flags) )
vcpu_wake(v);
v->is_initialised = 1;
clear_bit(_VPF_down, &v->pause_flags);
vcpu_wake(v);
return 0;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.