ia64/xen-unstable

changeset 19525:f9c8c6b08972

x86 hvm: Remove the extra IS_PRIV_FOR() checks I added to do_hvm_op().
Actually this is already done by rcu_lock_target_domain_by_id(). Oops.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Apr 08 14:43:12 2009 +0100 (2009-04-08)
parents eddb0f09fdaf
children a6003404e95b
files xen/arch/x86/hvm/hvm.c
line diff
     1.1 --- a/xen/arch/x86/hvm/hvm.c	Wed Apr 08 14:06:37 2009 +0100
     1.2 +++ b/xen/arch/x86/hvm/hvm.c	Wed Apr 08 14:43:12 2009 +0100
     1.3 @@ -2439,10 +2439,6 @@ long do_hvm_op(unsigned long op, XEN_GUE
     1.4          if ( rc != 0 )
     1.5              return rc;
     1.6  
     1.7 -        rc = -EPERM;
     1.8 -        if ( (curr_d != d) && !IS_PRIV_FOR(curr_d, d) )
     1.9 -            goto param_fail;
    1.10 -
    1.11          rc = -EINVAL;
    1.12          if ( !is_hvm_domain(d) )
    1.13              goto param_fail;
    1.14 @@ -2621,10 +2617,6 @@ long do_hvm_op(unsigned long op, XEN_GUE
    1.15          if ( rc != 0 )
    1.16              return rc;
    1.17  
    1.18 -        rc = -EPERM;
    1.19 -        if ( !IS_PRIV_FOR(curr_d, d) )
    1.20 -            goto param_fail2;
    1.21 -
    1.22          rc = -EINVAL;
    1.23          if ( !is_hvm_domain(d) )
    1.24              goto param_fail2;
    1.25 @@ -2663,10 +2655,6 @@ long do_hvm_op(unsigned long op, XEN_GUE
    1.26          if ( rc != 0 )
    1.27              return rc;
    1.28  
    1.29 -        rc = -EPERM;
    1.30 -        if ( !IS_PRIV_FOR(curr_d, d) )
    1.31 -            goto param_fail3;
    1.32 -
    1.33          rc = -EINVAL;
    1.34          if ( !is_hvm_domain(d) )
    1.35              goto param_fail3;
    1.36 @@ -2723,10 +2711,6 @@ long do_hvm_op(unsigned long op, XEN_GUE
    1.37          if ( rc != 0 )
    1.38              return rc;
    1.39  
    1.40 -        rc = -EPERM;
    1.41 -        if ( !IS_PRIV_FOR(curr_d, d) )
    1.42 -            goto param_fail4;
    1.43 -
    1.44          rc = -EINVAL;
    1.45          if ( !is_hvm_domain(d) )
    1.46              goto param_fail4;