ia64/xen-unstable

changeset 15252:2d3034d0b36b

hvm: Pause domain during state save/load.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Thu May 31 16:05:27 2007 +0100 (2007-05-31)
parents f6ff5d42164f
children b182bd560e47
files xen/arch/x86/domctl.c
line diff
     1.1 --- a/xen/arch/x86/domctl.c	Thu May 31 14:51:09 2007 +0100
     1.2 +++ b/xen/arch/x86/domctl.c	Thu May 31 16:05:27 2007 +0100
     1.3 @@ -317,7 +317,9 @@ long arch_do_domctl(
     1.4          if ( copy_from_guest(c.data, domctl->u.hvmcontext.buffer, c.size) != 0)
     1.5              goto sethvmcontext_out;
     1.6  
     1.7 +        domain_pause(d);
     1.8          ret = hvm_load(d, &c);
     1.9 +        domain_unpause(d);
    1.10  
    1.11      sethvmcontext_out:
    1.12          if ( c.data != NULL )
    1.13 @@ -362,7 +364,9 @@ long arch_do_domctl(
    1.14          if ( (c.data = xmalloc_bytes(c.size)) == NULL )
    1.15              goto gethvmcontext_out;
    1.16  
    1.17 +        domain_pause(d);
    1.18          ret = hvm_save(d, &c);
    1.19 +        domain_unpause(d);
    1.20  
    1.21          domctl->u.hvmcontext.size = c.cur;
    1.22          if ( copy_to_guest(domctl->u.hvmcontext.buffer, c.data, c.size) != 0 )