]> xenbits.xensource.com Git - xentesttools/bootstrap.git/commitdiff
rcS: Use 'xm' for Xen 4.2 as 'xl' has issues with save/restore
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 1 Oct 2013 13:47:08 +0000 (09:47 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 1 Oct 2013 13:47:08 +0000 (09:47 -0400)
of PVHVM guests.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
root_image/etc/init.d/rcS

index 9ba876500dbc89b3470682e5908aff8fad3dca09..17ced11fd43ed3a4ba2786c1fef7422a46494776 100755 (executable)
@@ -102,7 +102,9 @@ if [ $XEND_LOAD -eq 1 ]; then
                /etc/init.d/xencommons start
        fi
        # Xen 4.2 and above should use 'xl' instead of 'xm'
-       if [ "$XEN_VERSION" -lt 42 ]; then
+       # But Xen 4.2 has busted 'xl' when it comes to save/restore
+       # of PVHVM guests, so lets just skip it and use 'xm'.
+       if [ "$XEN_VERSION" -lt 43 ]; then
                /etc/init.d/xend start
        else
                echo "run_hotplug_scripts=0" >> /etc/xen/xl.conf