ia64/xen-unstable

changeset 14908:837e3d8832a4

[HVM][HAP] Don't kill domains if dom0 requests an invalid shadow op.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
author Tim Deegan <Tim.Deegan@xensource.com>
date Tue Apr 24 14:08:57 2007 +0100 (2007-04-24)
parents d250c75ea59a
children ee56c8d8864b
files xen/arch/x86/mm/hap/hap.c
line diff
     1.1 --- a/xen/arch/x86/mm/hap/hap.c	Tue Apr 24 13:49:11 2007 +0100
     1.2 +++ b/xen/arch/x86/mm/hap/hap.c	Tue Apr 24 14:08:57 2007 +0100
     1.3 @@ -504,16 +504,6 @@ int hap_domctl(struct domain *d, xen_dom
     1.4      }
     1.5      
     1.6      switch ( sc->op ) {
     1.7 -    case XEN_DOMCTL_SHADOW_OP_OFF:
     1.8 -    case XEN_DOMCTL_SHADOW_OP_ENABLE_TEST:
     1.9 -    case XEN_DOMCTL_SHADOW_OP_ENABLE_LOGDIRTY:
    1.10 -    case XEN_DOMCTL_SHADOW_OP_ENABLE_TRANSLATE:
    1.11 -    case XEN_DOMCTL_SHADOW_OP_CLEAN:
    1.12 -    case XEN_DOMCTL_SHADOW_OP_PEEK:
    1.13 -    case XEN_DOMCTL_SHADOW_OP_ENABLE:
    1.14 -        HAP_ERROR("Bad hap domctl op %u\n", sc->op);
    1.15 -        domain_crash(d);
    1.16 -        return -EINVAL;
    1.17      case XEN_DOMCTL_SHADOW_OP_SET_ALLOCATION:
    1.18          hap_lock(d);
    1.19          rc = hap_set_allocation(d, sc->mb << (20 - PAGE_SHIFT), &preempted);