WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] hvm: Pause domain during state save/load.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] hvm: Pause domain during state save/load.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 04 Jun 2007 03:16:20 -0700
Delivery-date: Mon, 04 Jun 2007 03:24:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1180623927 -3600
# Node ID 2d3034d0b36b380da7f5769638a21f55c0fda0d7
# Parent  f6ff5d42164fb0b2257da5accd1352891629a96c
hvm: Pause domain during state save/load.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] hvm: Pause domain during state save/load., Xen patchbot-unstable <=