From: Keir Fraser Subject: Re: linux: {start, stop}_hz_timer() not really affecting periodic timer? Date: Wed, 16 Jan 2008 14:37:51 +0000 Message-ID: References: <478E2399.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <478E2399.76E4.0078.0@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org No, no, and no. :-) start/stop_hz_timer() refer to Linux's own hz ticker. Xen does not deliver periodic ticks when a guest is descheduled, so the Xen side of things is implicitly handled already. There is no need for start/stop_hz_timer to execute hypercalls to enact this. The call to VCPUOP_set_singleshot_timer cannot return -ETIME because the kernel does not specify the VCPU_SSHOTTMR_future flag. All this assume you are looking at linux-2.6.18-xen.hg. -- Keir On 16/1/08 14:32, "Jan Beulich" wrote: > Shouldn't these two functions call VCPUOP_set_periodic_timer/ > VCPUOP_stop_periodic_timer to actually do what their names promise? > > And shouldn't the call to VCPUOP_set_singleshot_timer permit -ETIME > without BUG()? > > Jan > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel