From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [PATCH] Add need_resched check before go to kvm_resched Date: Wed, 25 Apr 2007 08:49:50 -0500 Message-ID: <462F5C7E.7010605@codemonkey.ws> 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 should get moved to kvm_resched() since both VT/SVM would benefit from this. Regards, Anthony Liguori > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/kvm-devel > ------------------------------------------------------------------------- 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/