[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxc: correct handling of switch_qemu_logdirty callback return value
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1288026928 -3600 # Node ID 36a317494429b97e0e43976f6b54e9dd4fa48d64 # Parent 2e8bdff60d01f0cd9bc64adae2ad8aa9a3504113 libxc: correct handling of switch_qemu_logdirty callback return value The callback return convention follows xc_domain_save and therefore returns 0 on success and >0 on error, correct the check accordingly. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- tools/libxc/xc_domain_save.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -r 2e8bdff60d01 -r 36a317494429 tools/libxc/xc_domain_save.c --- a/tools/libxc/xc_domain_save.c Sun Oct 24 13:18:26 2010 +0100 +++ b/tools/libxc/xc_domain_save.c Mon Oct 25 18:15:28 2010 +0100 @@ -1015,7 +1015,7 @@ int xc_domain_save(xc_interface *xch, in } /* Enable qemu-dm logging dirty pages to xen */ - if ( hvm && !callbacks->switch_qemu_logdirty(dom, 1, callbacks->data) ) + if ( hvm && callbacks->switch_qemu_logdirty(dom, 1, callbacks->data) ) { PERROR("Couldn't enable qemu log-dirty mode (errno %d)", errno); goto out; @@ -1879,7 +1879,7 @@ int xc_domain_save(xc_interface *xch, in XEN_DOMCTL_SHADOW_OP_OFF, NULL, 0, NULL, 0, NULL) < 0 ) DPRINTF("Warning - couldn't disable shadow mode"); - if ( hvm && !callbacks->switch_qemu_logdirty(dom, 0, callbacks->data) ) + if ( hvm && callbacks->switch_qemu_logdirty(dom, 0, callbacks->data) ) DPRINTF("Warning - couldn't disable qemu log-dirty mode"); } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |