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] TSC scaling for live migration between platforms

To: "Zhang, Xiantao" <xiantao.zhang@xxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] TSC scaling for live migration between platforms with different TSC frequecies
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 23 Jun 2009 11:18:00 +0100
Cc: Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>, Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>, John Levon <levon@xxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 23 Jun 2009 03:18:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <706158FABBBA044BAD4FE898A02E4BC201BD7DC310@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcnvwGrBg+4kDTqFR/KfIVHgiCk9gADIUIwAAEKNZDs=
Thread-topic: [Xen-devel] [PATCH] TSC scaling for live migration between platforms with different TSC frequecies
User-agent: Microsoft-Entourage/12.17.0.090302
Stuffing the guest freq in a save-image pad field is not backward
compatible. Old images will not have that field filled in and you'll
probably end up doing something stupid like give them a zero-hertz TSC.
Please think about backward compatibility and use a separate save record.
Like Tim asked you to do already.

 -- Keir

On 22/06/2009 06:14, "Zhang, Xiantao" <xiantao.zhang@xxxxxxxxx> wrote:

> Hi, Keir
> This is the new version which has addressed the comments from the mailing
> list. Please review it again.  Thanks!
> Xiantao
> 
> Zhang, Xiantao wrote:
>> Hi, Keir
>> 
>>     This patchset targets for enabling TSC scaling in software for
>>     live migration between platforms with different TSC frequecies.
>> Once found the target host's frequency is different with source
>> host's, hypervisor will trap and emulate guest's all rdtsc
>> instructions with its expected frequency. If hardware's TSC frequency
>> is difffernt with guest's exepcted freq, guest may behave abnormally,
>> eg. incorrect wallclock, soft lockup, even hang in some cases.
>> Therefore, this patchset is necessary to avoid such issues.
>> 
>> PATCH 0001-- Save guest's preferred TSC in image for save/restore and
>> migration 
>> PATCH 0002-- Move multidiv64 as a library function.
>> PATCH 0003-- Scaling host TSC freqeuncy patch.
>> 
>> Signed-off-by Xiantao Zhang <xiantao.zhang@xxxxxxxxx>
>> Xiantao
> 



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

<Prev in Thread] Current Thread [Next in Thread>