ia64/xen-unstable

diff xen/arch/x86/hvm/vpt.c @ 19823:82bbce59b65d

save/restore : Save guest's preferred TSC frequency in image

For save/restore or live migration between two different frequency
platforms, guest's preferred TSC frequency is required to caculate
guest's TSC after resotre, so save it in the image header.

Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jun 24 10:48:21 2009 +0100 (2009-06-24)
parents d4c9a63a1642
children 81edfffb3aff
line diff
     1.1 --- a/xen/arch/x86/hvm/vpt.c	Wed Jun 24 10:47:07 2009 +0100
     1.2 +++ b/xen/arch/x86/hvm/vpt.c	Wed Jun 24 10:48:21 2009 +0100
     1.3 @@ -32,6 +32,8 @@ void hvm_init_guest_time(struct domain *
     1.4      spin_lock_init(&pl->pl_time_lock);
     1.5      pl->stime_offset = -(u64)get_s_time();
     1.6      pl->last_guest_time = 0;
     1.7 +
     1.8 +    d->arch.hvm_domain.gtsc_khz = cpu_khz;
     1.9  }
    1.10  
    1.11  u64 hvm_get_guest_time(struct vcpu *v)