|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 04/11] xen: suspend: use HYPERVISOR_suspend for PVHVM
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
drivers/xen/manage.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c
index 6f866e2..ba7caa3 100644
--- a/drivers/xen/manage.c
+++ b/drivers/xen/manage.c
@@ -38,7 +38,6 @@ static enum shutdown_state shutting_down = SHUTDOWN_INVALID;
static int xen_hvm_suspend(void *data)
{
int err;
- struct sched_shutdown r = { .reason = SHUTDOWN_suspend };
int *cancelled = data;
BUG_ON(!irqs_disabled());
@@ -50,7 +49,12 @@ static int xen_hvm_suspend(void *data)
return err;
}
- *cancelled = HYPERVISOR_sched_op(SCHEDOP_shutdown, &r);
+ /*
+ * This hypercall returns 1 if suspend was cancelled
+ * or the domain was merely checkpointed, and 0 if it
+ * is resuming in a new domain.
+ */
+ *cancelled = HYPERVISOR_suspend(0UL);
xen_hvm_post_suspend(*cancelled);
gnttab_resume();
--
1.5.6.5
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH] xen: suspend and resume system devices when running PVHVM, Ian Campbell
- [Xen-devel] Re: [PATCH] xen: suspend and resume system devices when running PVHVM, Stefano Stabellini
- [Xen-devel] [PATCH 0/11] suspend cleanups, refactoring and fixes (Was: Re: [PATCH] xen: suspend and resume system devices when running PVHVM), Ian Campbell
- [Xen-devel] [PATCH 01/11] xen: do not respond to unknown xenstore control requests, Ian Campbell
- [Xen-devel] [PATCH 02/11] xen: use new schedop interface for suspend, Ian Campbell
- [Xen-devel] [PATCH 03/11] xen: switch to new schedop hypercall by default., Ian Campbell
- [Xen-devel] [PATCH 04/11] xen: suspend: use HYPERVISOR_suspend for PVHVM case instead of open coding,
Ian Campbell <=
- [Xen-devel] [PATCH 05/11] xen: suspend: refactor cancellation flag into a structure, Ian Campbell
- [Xen-devel] [PATCH 06/11] xen: suspend: pass extra hypercall argument via suspend_info struct, Ian Campbell
- [Xen-devel] [PATCH 07/11] xen: suspend: add "arch" to pre/post suspend hooks, Ian Campbell
- [Xen-devel] [PATCH 08/11] xen: suspend: refactor non-arch specific pre/post suspend hooks, Ian Campbell
- [Xen-devel] [PATCH 09/11] xen: suspend: move arch specific pre/post suspend hooks into generic hooks, Ian Campbell
- [Xen-devel] [PATCH 10/11] xen: suspend: pull pre/post suspend hooks out into suspend_info, Ian Campbell
- [Xen-devel] [PATCH 11/11] xen: suspend: remove xen_hvm_suspend, Ian Campbell
- [Xen-devel] Re: [PATCH 0/11] suspend cleanups, refactoring and fixes (Was: Re: [PATCH] xen: suspend and resume system devices when running PVHVM), Stefano Stabellini
- [Xen-devel] Re: [PATCH 0/11] suspend cleanups, refactoring and fixes (Was: Re: [PATCH] xen: suspend and resume system devices when running PVHVM), Ian Campbell
- [Xen-devel] Re: [PATCH 0/11] suspend cleanups, refactoring and fixes (Was: Re: [PATCH] xen: suspend and resume system devices when running PVHVM), Stefano Stabellini
|
|
|
|
|