| To: | xen-devel@xxxxxxxxxxxxxxxxxxx |
|---|---|
| Subject: | [Xen-devel] [PATCH 6 of 8] Make suspend hypercall return 1 when the domain has been resumed |
| From: | Brendan Cully <brendan@xxxxxxxxx> |
| Date: | 2007年1月11日 17:27:01 -0700 |
| Delivery-date: | 2007年1月11日 17:33:12 -0800 |
| Envelope-to: | www-data@xxxxxxxxxxxxxxxxxx |
| In-reply-to: | <patchbomb.1168565215@xxxxxxxxxxxxxxxxx> |
| List-help: | <mailto:xen-devel-request@lists.xensource.com?subject=help> |
| List-id: | Xen developer discussion <xen-devel.lists.xensource.com> |
| List-post: | <mailto:xen-devel@lists.xensource.com> |
| List-subscribe: | <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
| List-unsubscribe: | <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
| Sender: | xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
# HG changeset patch
# User Brendan Cully <brendan@xxxxxxxxx>
# Date 1168565202 28800
# Node ID b5414e713c97fff9b13c290f3a80d42183665e0e
# Parent 5ae12d620c6d8af00eed66ed37c988150984b1f0
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 5ae12d620c6d -r b5414e713c97 tools/libxc/xc_linux_restore.c
--- a/tools/libxc/xc_linux_restore.c Thu Jan 11 17:26:42 2007 -0800
+++ b/tools/libxc/xc_linux_restore.c Thu Jan 11 17:26:42 2007 -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> |
|---|---|---|
| ||
| Previous by Date: | [Xen-devel] [PATCH 3 of 8] Export xc_domain_resume to xend , Brendan Cully |
|---|---|
| Next by Date: | [Xen-devel] [PATCH 8 of 8] Add xm save -c/--checkpoint option , Brendan Cully |
| Previous by Thread: | [Xen-devel] [PATCH 3 of 8] Export xc_domain_resume to xend , Brendan Cully |
| Next by Thread: | Re: [Xen-devel] [PATCH 6 of 8] Make suspend hypercall return 1 when the domain has been resumed , John Levon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |