mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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>
This commit is contained in:
1 parent
85826188d8
commit
5a7e47a73d
1 file changed
+2
@@ -709,6 +709,8 @@ int hap_domctl(struct domain *d, xen_domctl_shadow_op_t *sc,
|
||||
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);
|
||||
|
||||