]> xenbits.xensource.com Git - xen.git/commit
libxl: suspend: New domain_suspend_pvcontrol_acked
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 5 Dec 2013 18:48:21 +0000 (18:48 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 17 Mar 2014 15:54:00 +0000 (15:54 +0000)
commit83c20713bd006220a6cb39af6a764a9f900de3e5
tree28039a68924d58d886188ad8485d047eb1ea15e7
parent04a194285641dfaf68d07a44b82bef7eba532ddb
libxl: suspend: New domain_suspend_pvcontrol_acked

Factor out domain_suspend_pvcontrol_acked.

This replaces a bunch of open-coded strcmp()s and makes the code
clearer.  It also eliminates the need to check for state==NULL each
time it's read, because we can check for NULL once before the strcmp.

No functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
v3: Improve comment re xswatch state ENOENT
tools/libxl/libxl_dom.c