|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 06 of 10] Make suspend hypercall return 1 when the do
# HG changeset patch
# User Brendan Cully <brendan@xxxxxxxxx>
# Date 1166166342 28800
# Node ID dc4d3d58b1d24199101c782a2890b03bfb82fe28
# Parent 84b42490685d4cc9cf6aeea43bb4d90c31a20bc1
Make suspend hypercall return 1 when the domain has been resumed.
This patch writes 1 into EAX when the domain has been resumed,
alerting the guest domain that it needs to reconnect to its back
ends.
Signed-off-by: Brendan Cully <brendan@xxxxxxxxx>
diff -r 84b42490685d -r dc4d3d58b1d2 tools/libxc/xc_linux_restore.c
--- a/tools/libxc/xc_linux_restore.c Thu Dec 14 23:05:42 2006 -0800
+++ b/tools/libxc/xc_linux_restore.c Thu Dec 14 23:05:42 2006 -0800
@@ -690,6 +690,8 @@ int xc_linux_restore(int xc_handle, int
ERROR("Suspend record frame number is bad");
goto out;
}
+ /* HYPERVISOR_suspend returns 1 to let guest know it should reconnect */
+ ctxt.user_regs.eax = 1;
ctxt.user_regs.edx = mfn = p2m[pfn];
start_info = xc_map_foreign_range(
xc_handle, dom, PAGE_SIZE, PROT_READ | PROT_WRITE, mfn);
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 00 of 10] Teach xm save to checkpoint a running domain, Brendan Cully
- [Xen-devel] [PATCH 02 of 10] Export resumedomain domctl to libxc, Brendan Cully
- [Xen-devel] [PATCH 01 of 10] Add resumedomain domctl to resume a domain after checkpoint, Brendan Cully
- [Xen-devel] [PATCH 06 of 10] Make suspend hypercall return 1 when the domain has been resumed,
Brendan Cully <=
- [Xen-devel] [PATCH 07 of 10] Add new shutdown mode for checkpoint, Brendan Cully
- [Xen-devel] [PATCH 04 of 10] Add XS_RESUME command, Brendan Cully
- [Xen-devel] [PATCH 03 of 10] Export xc_domain_resume to xend, Brendan Cully
- [Xen-devel] [PATCH 10 of 10] Ignore safe foreign maps in xc_linux_save, Brendan Cully
- [Xen-devel] [PATCH 09 of 10] Advertise address of grant table shared pages in suspend record, Brendan Cully
- [Xen-devel] [PATCH 05 of 10] Export XS_RESUME to xend, Brendan Cully
- [Xen-devel] [PATCH 08 of 10] Add xm save -c/--checkpoint option, Brendan Cully
- Re: [Xen-devel] [PATCH 00 of 10] Teach xm save to checkpoint a running domain, Steven Hand
|
|
|
|
|