According to Jan's comments, also fix the coding style of for_each_vcpu in
existing PML functions.
Signed-off-by: Kai Huang <kai.huang@linux.intel.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
if ( vmx_domain_pml_enabled(d) )
return 0;
- for_each_vcpu( d, v )
+ for_each_vcpu ( d, v )
if ( (rc = vmx_vcpu_enable_pml(v)) != 0 )
goto error;
return 0;
error:
- for_each_vcpu( d, v )
+ for_each_vcpu ( d, v )
if ( vmx_vcpu_pml_enabled(v) )
vmx_vcpu_disable_pml(v);
return rc;
if ( !vmx_domain_pml_enabled(d) )
return;
- for_each_vcpu( d, v )
+ for_each_vcpu ( d, v )
vmx_vcpu_disable_pml(v);
d->arch.hvm_domain.vmx.status &= ~VMX_DOMAIN_PML_ENABLED;
if ( !vmx_domain_pml_enabled(d) )
return;
- for_each_vcpu( d, v )
+ for_each_vcpu ( d, v )
vmx_vcpu_flush_pml_buffer(v);
}