HVM save/restore needs to save/restore vcpu state via the new
stream-based load/save hypercalls.
Signed-off-by: Keir Fraser <keir@xensource.com>
else
{
hvm_load_cpu_guest_regs(v, &v->arch.guest_context.user_regs);
- hvm_load_cpu_context(v, &v->arch.guest_context.hvmcpu_ctxt);
}
if ( test_bit(_VCPUF_initialised, &v->vcpu_flags) )
if ( is_hvm_vcpu(v) )
{
- if ( !IS_COMPAT(v->domain) ) {
+ if ( !IS_COMPAT(v->domain) )
hvm_store_cpu_guest_regs(v, &c.nat->user_regs, c.nat->ctrlreg);
- hvm_save_cpu_context(v, &c.nat->hvmcpu_ctxt);
- }
#ifdef CONFIG_COMPAT
else
{
if ( rc == 0 )
rc = arch_set_info_guest(v, c);
- /*XXX: hvm smp guest restore support */
- if ( rc == 0 &&
- v->vcpu_id != 0 &&
- is_hvm_vcpu(v) &&
- test_and_clear_bit(_VCPUF_down, &v->vcpu_flags) ) {
- vcpu_wake(v);
- }
-
domain_unpause(d);
xfree(c.nat);
#endif
#endif
unsigned long vm_assist; /* VMASST_TYPE_* bitmap */
- struct hvmcpu_context hvmcpu_ctxt; /* whole vmcs region */
#ifdef __x86_64__
/* Segment base addresses. */
uint64_t fs_base;