From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] Add need_resched check before go to kvm_resched Date: Wed, 25 Apr 2007 15:45:12 +0300 Message-ID: <462F4D58.7090607@qumranet.com> References: <10EA09EFD8728347A513008B6B0DA77A01599EB3@pdsmsx411.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel To: "Dong, Eddie" Return-path: In-Reply-To: <10EA09EFD8728347A513008B6B0DA77A01599EB3-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org 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 > > --- 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(). -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- 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/