26 lines
877 B
Diff
26 lines
877 B
Diff
|
# HG changeset patch
|
||
|
# User Andres Lagar-Cavilla <andres@lagarcavilla.org>
|
||
|
# Date 1322148057 0
|
||
|
# Node ID 6b3d8250ee2c63d90680c142549123a4b1559f55
|
||
|
# Parent 7da681c490e0a8a2b3f1fb311d254dc7ce618a43
|
||
|
x86/mm: change return code for log-dirty disabling
|
||
|
|
||
|
Disabling log dirty mode in HAP always returns -EINVAL. Make it
|
||
|
return the correct rc on success.
|
||
|
|
||
|
Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
|
||
|
Signed-off-by: Tim Deegan <tim@xen.org>
|
||
|
Committed-by: Tim Deegan <tim@xen.org>
|
||
|
|
||
|
--- a/xen/arch/x86/mm/hap/hap.c
|
||
|
+++ b/xen/arch/x86/mm/hap/hap.c
|
||
|
@@ -710,6 +710,8 @@ int hap_domctl(struct domain *d, xen_dom
|
||
|
return rc;
|
||
|
case XEN_DOMCTL_SHADOW_OP_GET_ALLOCATION:
|
||
|
sc->mb = hap_get_allocation(d);
|
||
|
+ /* Fall through... */
|
||
|
+ case XEN_DOMCTL_SHADOW_OP_OFF:
|
||
|
return 0;
|
||
|
default:
|
||
|
HAP_ERROR("Bad hap domctl op %u\n", sc->op);
|