aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_resume.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-02-28 09:39:03 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-02-28 09:39:03 +0000
commite5d4e1285c9d2be3645ae75c7f987b924d07cdfc (patch)
treefb724059e0ebeeb3bbec6c5e154147d35f804d38 /tools/libxc/xc_resume.c
parent5f7ac4f0bcbe535f87b634bd4046c668960abcb2 (diff)
downloadxen-e5d4e1285c9d2be3645ae75c7f987b924d07cdfc.tar.gz
xen-e5d4e1285c9d2be3645ae75c7f987b924d07cdfc.tar.bz2
xen-e5d4e1285c9d2be3645ae75c7f987b924d07cdfc.zip
Let xend choose to do hard or soft domain resumption depending on
whether the domain advertises support for soft resumption in its elfnotes. Signed-off-by: Brendan Cully <brendan@kublai.com>
Diffstat (limited to 'tools/libxc/xc_resume.c')
-rw-r--r--tools/libxc/xc_resume.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/libxc/xc_resume.c b/tools/libxc/xc_resume.c
index fec5a897c7..8e509b6fe3 100644
--- a/tools/libxc/xc_resume.c
+++ b/tools/libxc/xc_resume.c
@@ -169,13 +169,9 @@ static int xc_domain_resume_any(int xc_handle, uint32_t domid)
* (2) should be used only for guests which cannot handle the special
* new return code. (1) is always safe (but slower).
*/
-int xc_domain_resume(int xc_handle, uint32_t domid)
+int xc_domain_resume(int xc_handle, uint32_t domid, int fast)
{
- /*
- * XXX: Implement a way to select between options (1) and (2).
- * Or expose the options as two different methods to Python.
- */
- return (0
+ return (fast
? xc_domain_resume_cooperative(xc_handle, domid)
: xc_domain_resume_any(xc_handle, domid));
}