From: Keir Fraser Subject: Re: [PATCH] Pin vcpu for VMX domain Date: Wed, 8 Feb 2006 09:51:53 +0000 Message-ID: <7ab0dbc3b10f7199de3140a1fc6c720c@cl.cam.ac.uk> References: Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Jiang, Yunhong" Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 8 Feb 2006, at 09:28, Jiang, Yunhong wrote: > The patch fixed pin-vcpu issue for VMX domain. > The __vmpclear should be done on the last_launch LP. It also migrate=20= > the timers for vmx domain. > =A0 > > Signed-off-by: Yunhong Jiang yunhong.jiang@intel.com > Signed-off-by: Eddie Dong eddie.dong@intel.com You don't need to __vmpclear at the time the affinity is changed. You=20 can still do it from within arch_vmx_do_resume() -- it is valid to call=20= smp_call_function() there. That avoids having yet another HVM function,=20= and avoids calling yet another arch_* function from common code. Rather than calling vmx_remove_timers() from your SMP call function,=20 can you not just call it from vmx_reinstall_timers()? You explain why=20 the pit and hlt timers do not need to be re-activated in=20 vmx_reinstall_timer() -- what about the APIC timer? There's no need to check active_timer() before calling stop_timer() --=20= stop_timer does the check for you. -- Keir