Mailing List Archive

[xen-unstable] hvm: Pause domain during state save/load.
# HG changeset patch
# User kfraser@localhost.localdomain
# Date 1180623927 -3600
# Node ID 2d3034d0b36b380da7f5769638a21f55c0fda0d7
# Parent f6ff5d42164fb0b2257da5accd1352891629a96c
hvm: Pause domain during state save/load.
Signed-off-by: Keir Fraser <keir@xensource.com>
---
xen/arch/x86/domctl.c | 4 ++++
1 files changed, 4 insertions(+)

diff -r f6ff5d42164f -r 2d3034d0b36b xen/arch/x86/domctl.c
--- a/xen/arch/x86/domctl.c Thu May 31 14:51:09 2007 +0100
+++ b/xen/arch/x86/domctl.c Thu May 31 16:05:27 2007 +0100
@@ -317,7 +317,9 @@ long arch_do_domctl(
if ( copy_from_guest(c.data, domctl->u.hvmcontext.buffer, c.size) != 0)
goto sethvmcontext_out;

+ domain_pause(d);
ret = hvm_load(d, &c);
+ domain_unpause(d);

sethvmcontext_out:
if ( c.data != NULL )
@@ -362,7 +364,9 @@ long arch_do_domctl(
if ( (c.data = xmalloc_bytes(c.size)) == NULL )
goto gethvmcontext_out;

+ domain_pause(d);
ret = hvm_save(d, &c);
+ domain_unpause(d);

domctl->u.hvmcontext.size = c.cur;
if ( copy_to_guest(domctl->u.hvmcontext.buffer, c.data, c.size) != 0 )

_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xensource.com
http://lists.xensource.com/xen-changelog