|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-devel
Re: [Xen-devel] [PATCH 10/13] Nested Virtualization: interrupts (svm	spe
 
On 16/11/2010 15:06, "Tim Deegan" <Tim.Deegan@xxxxxxxxxx> wrote:
>> +static int
>> +nestedsvm_vcpu_clgi(struct vcpu *v)
>> +{
>> +    struct nestedsvm *svm = &vcpu_nestedsvm(v);
>> +
>> +    /* clear gif flag */
>> +    svm->ns_gif = 0;
>> +    local_event_delivery_disable(); /* mask events for PV drivers */
> 
> This function, and the stgi one below, can only operate safely on
> current; if you want to keep the argument for performance then maybe
> ASSERT(v == current) for sanity.
I don't believe in the performance win. Functions which act correctly only
on current should not be passed a vcpu parameter.
 -- Keir
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 |   
 
 | 
    | 
  
  
    |   | 
    |