WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [Patch] time resolution fix.

To: "Dong, Eddie" <eddie.dong@xxxxxxxxx>
Subject: Re: [Xen-devel] [Patch] time resolution fix.
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Sun, 19 Mar 2006 14:28:51 +0000
Cc: xen-devel Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Nakajima, Jun" <jun.nakajima@xxxxxxxxx>
Delivery-date: Sun, 19 Mar 2006 14:32:15 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <26F44F810A51DF42A127BC2A06BE185E03D651C2@pdsmsx404>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <26F44F810A51DF42A127BC2A06BE185E03D651C2@pdsmsx404>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On 17 Mar 2006, at 16:11, Dong, Eddie wrote:

        I have a much detail description in the attached slide, hope
this helpful.
Well, freezing the TSC while a guest is descheduled is not very nice at 
all, but I can imagine it stops you getting time went backwards 
messages if you are also forcibly re-setting the TSC on PIT ticks. :-)
The freezing is I guess why you have the new hook schedule_out(), which 
I'm also not madly keen on. Especially since this must surely be a 
short-term workaround (you don't intend to TSC freeze as long-term 
solution, right?).
        BTW, due to SMP support and more time resource support (RTC and
ACPI), we are planning to do some design modification to sync all those
different kind of time. This patch is mainly for bug fix that exist for
long time and block SMP effort.
Clearly some effort needs to be applied here. Moving all time emulation 
into Xen itself would be a good start (e.g., strip PIT emulation from 
qemu-dm).
And the new support should be HVM generic, since there are no 
differences in time handling between VMX and SVM that should require 
(much) vendor-specific handling I think. If there are, or extra vendor 
support appears in future (e.g., I'd like to see guest TSC rate 
control, as I've said a few times before ;-) ), then we can add vendor 
hooks in later.
In summary, I'm not sure about this patch. I feel that if I take it I'm 
encouraging 'onward and upward' development without spending the time 
to make sure fundamental abstractions like time are designed and 
implemented soundly.
 -- Keir


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel