mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
9640ac9154
commit
2d61801bce
1 file changed
+3
-2
@@ -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;
|
||||
}
|
||||
|
||||