Avi Kivity wrote:
> Dong, Eddie wrote:
>> A minor change to reduce vcpu_put/vcpu_load frequency (still base on
>> KVM-18). Not sure if you would like to see this?
>> 
>> Signed-off-by: Yaozu Dong <[EMAIL PROTECTED]>
>> 
>> --- vmx.old  2007-04-25 20:28:19.000000000 +0800
>> +++ vmx.new  2007-04-25 20:28:10.000000000 +0800
>> @@ -1945,7 +1945,8 @@
>>                              return -EINTR;
>>                      }
>> 
>> -                    kvm_resched(vcpu);
>> +                    if ( need_resched() )
>> +                            kvm_resched(vcpu);
>>                      goto again;
>>              }
>>      }
>> 
> 
> This is good, especially if we move some msrs to vcpu_load().
> 
> But please, no spaces around need_resched().

Here it is.
Thx,eddie

Attachment: p3
Description: p3

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to