From: Christoph Egger Subject: Re: [PATCH] x86 hvm: fix missing ticks issue in c/s 20218 Date: Fri, 25 Sep 2009 14:45:04 +0200 Message-ID: <200909251445.04761.Christoph.Egger@amd.com> References: <7kws3npdwy.fsf@pingu.sky.yk.fujitsu.co.jp> <7kws3n2ouq.fsf@pingu.sky.yk.fujitsu.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <7kws3n2ouq.fsf@pingu.sky.yk.fujitsu.co.jp> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Keir Fraser , Kouya Shimura List-Id: xen-devel@lists.xenproject.org On Friday 25 September 2009 14:25:11 Kouya Shimura wrote: > Keir, > Okay, attached is a new patch per your advice. > I tested it carefully. It works for me. > > Christoph, > Could you please test it? Works for me. Thanks for fixing it. Christoph > Thanks, > Kouya > > Keir Fraser writes: > > On 25/09/2009 10:32, "Kouya Shimura" wrote: > > > I've forgotten VCPU switch. Indeed, it's pretty fragile. :-) > > > What about modifying pt_restore_timer() not to advance pt->scheduled? > > > We should rename pending_intr_nr to pending_intr(boolean). > > > > It's not clear to me that the old logic around pt->pending_intr_nr and > > pt->scheduled really needs to change that drastically. The more we mess > > with this code the more likely we are to break stuff, as it's hard to get > > good coverage of the timer_modes and various ways guest Oses may manage > > their timers. > > > > I would prefer to see whether moving the update of pt->scheduled out of > > pt_intr_post() and back into the timer_fn() works. That moves us back > > towards what we had before your patches, and therefore I'm more > > comfortable with it. > > > > -- Keir > > Signed-off-by: Kouya Shimura -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632