xcp-1.6-updates/xen-4.1.hg

changeset 23235:dab13447cd8c

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>
xen-unstable changeset: 24190:6b3d8250ee2c
xen-unstable date: Thu Nov 24 15:20:57 2011 +0000
author Andres Lagar-Cavilla <andres@lagarcavilla.org>
date Wed Mar 07 08:10:58 2012 +0000 (2012-03-07)
parents a43a31a97603
children ffda50fa20ab
files xen/arch/x86/mm/hap/hap.c
line diff
     1.1 --- a/xen/arch/x86/mm/hap/hap.c	Wed Mar 07 08:02:59 2012 +0000
     1.2 +++ b/xen/arch/x86/mm/hap/hap.c	Wed Mar 07 08:10:58 2012 +0000
     1.3 @@ -710,6 +710,8 @@ int hap_domctl(struct domain *d, xen_dom
     1.4          return rc;
     1.5      case XEN_DOMCTL_SHADOW_OP_GET_ALLOCATION:
     1.6          sc->mb = hap_get_allocation(d);
     1.7 +        /* Fall through... */
     1.8 +    case XEN_DOMCTL_SHADOW_OP_OFF:
     1.9          return 0;
    1.10      default:
    1.11          HAP_ERROR("Bad hap domctl op %u\n", sc->op);