Re: [kvm-devel] [ RfC / patch ] kvmclock fixes

2008-04-21 Thread Jeremy Fitzhardinge
Gerd Hoffmann wrote: > +cycle_t pvclock_clocksource_read(struct kvm_vcpu_time_info *src) > +{ > + struct pvclock_shadow_time *shadow; > + cycle_t ret; > + unsigned version; > + > + shadow = &get_cpu_var(shadow_time); > + do { > + version = pvclock_get_time_values(sha

Re: [kvm-devel] [ RfC / patch ] kvmclock fixes

2008-04-21 Thread Gerd Hoffmann
Jeremy Fitzhardinge wrote: > Gerd Hoffmann wrote: >> +cycle_t pvclock_clocksource_read(struct kvm_vcpu_time_info *src) >> +{ >> +struct pvclock_shadow_time *shadow = &get_cpu_var(shadow_time); >> +cycle_t ret; >> + >> +pvclock_get_time_values(shadow, src); >> +ret = shadow->system_t

Re: [kvm-devel] [ RfC / patch ] kvmclock fixes

2008-04-21 Thread Jeremy Fitzhardinge
Gerd Hoffmann wrote: > * Host: make kvm pv clock really compatible with xen pv clock. > * Guest/xen: factor out some xen clock code into a separate >source file (pvclock.[ch]), so kvm can reuse it. > * Guest/kvm: make kvm clock compatible with xen clock by using >

[kvm-devel] [ RfC / patch ] kvmclock fixes

2008-04-21 Thread Gerd Hoffmann
Gerd Hoffmann wrote: > Marcelo Tosatti wrote: >> Haven't seen Gerd's guest patches ? > > I'm still busy cooking them up. I've mentioned them in a mail, but they > didn't ran over the list (yet). Stay tuned ;) It compiles, ship it! This time as all-in one patch (both guest and host side). Al