From: Keir Fraser Subject: Re: [PATCH] Pin vcpu for VMX domain Date: Thu, 9 Feb 2006 10:03:08 +0000 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit 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 9 Feb 2006, at 08:46, Jiang, Yunhong wrote: > Attached is updated patch. It use migrate_timer() function and > do __vmpclear on arcj_vmx_do_resume. > There is still one corner case. Currently the PIT timer is > initialized on pit_hook. So when migrate the timer, it maybe possible > that the pit timer is still not initialized. However, this situation > may > happen also on vmx_relinquish_resources. So we plat to provide a patch > to init the pit timer on hvm_setup_platform, which is called from > vmx_do_launch. Even vmx_do_launch may be too late, for vmx_relinquish_resources. Consider a VMX domain that is destroyed without ever running -- it will never call vmx_do_launch. However, actually you will be okay because the timer structures are initialised to zeroes during domain creation. That is sufficient for stop_timer/kill_timer/migrate_timer to work properly, so long as they *never* execute concurrently with init_timer. -- Keir