libxc, ia64: ia64 counter part of 22275:e95dc0eb152d and 22285:36a317494429
PATCH 1/1 libxc, ia64: ia64 counter part of 22275:e95dc0eb152d and 22285:36a317494429
Hi,
This patch fixes compilation errors by 22275:e95dc0eb152d:
ia64/xc_ia64_linux_save.c:797: error: too few arguments to function 'callbacks->switch_qemu_logdirty'
and applies 22285:36a317494429 to ia64.
Signature · 1 line
KUWAMURA Shin'ya
# HG changeset patch
# User KUWAMURA Shin'ya <[email protected]>
# Date 1288232914 -32400
# Node ID 0b66bc83e438eae4fe5183f001228c20aa2a5f22
# Parent 9b133ea4f303139b98b33484eff96d11c2089c13
libxc,ia64: ia64 counter part of 22275:e95dc0eb152d and 22285:36a317494429
tools/libxc/ia64/xc_ia64_linux_save.c +3 -2
@@ -563,7 +563,7 @@ xc_domain_save(xc_interface *xch, int io }/* 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)) {ERROR ("Unable to enable qemu log-dirty mode" ); goto out; }
@@ -794,7 +794,8 @@ xc_domain_save(xc_interface *xch, int io NULL, 0, NULL, 0, NULL ) < 0) {DPRINTF ("Warning - couldn't disable shadow mode" ); } -if ( hvm && !callbacks->switch_qemu_logdirty (dom,0 ) ) { +if ( hvm && + callbacks->switch_qemu_logdirty (dom,0 , callbacks->data) ) {DPRINTF ("Warning - couldn't disable qemu log-dirty mode" ); } }
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
KUWAMURA Shin'ya writes ("[Xen-devel] [PATCH] libxc, ia64: ia64 counter part of 22275:e95dc0eb152d and 22285:36a317494429"):
Quoted 3 lines
This patch fixes compilation errors by 22275:e95dc0eb152d:
ia64/xc_ia64_linux_save.c:797: error: too few arguments to function 'callbacks->switch_qemu_logdirty'
and applies 22285:36a317494429 to ia64.
Thanks, I have applied this patch.
If I may make an observation: much of ia64/xc_ia64_linux_save.c is identical to xc_domain_save.c. This kind of clone-and-hack is precisely likely to lead to the kind of problems we see here, where changes and subsequent fixes are made to one copy of the code but not, or not properly, to the other.
It might be worth trying to reconcile these two versions so that there is less needless ia64-specific code.
Ian.