Re: [kvm-devel] keeping time

2007-12-26 Thread Dong, Eddie
n Behalf Of >Yang, Sheng >Sent: 2007年12月27日 10:29 >To: Yves Dorfsman >Cc: kvm-devel@lists.sourceforge.net >Subject: Re: [kvm-devel] keeping time > >On Wednesday 26 December 2007 22:35:29 Yves Dorfsman wrote: >> What is the recommended way to keep the time correct on a

Re: [kvm-devel] keeping time

2007-12-26 Thread Yang, Sheng
On Thursday 27 December 2007 14:51:06 Yves Dorfsman wrote: > On Thu, 27 Dec 2007, Yang, Sheng wrote: > > What's your guest kernel version? > > 2.6.22 > > > When I debug my in kernel PIT(not sent yet, though kept for months), I > > found the kernel version have something to do with the timer accurac

Re: [kvm-devel] keeping time

2007-12-26 Thread Yves Dorfsman
On Thu, 27 Dec 2007, Yang, Sheng wrote: > What's your guest kernel version? 2.6.22 > When I debug my in kernel PIT(not sent yet, though kept for months), I found > the kernel version have something to do with the timer accuracy. On my > limited test, the kernel 2.6.18, 2.6.20, 2.6.22 with defau

Re: [kvm-devel] keeping time

2007-12-26 Thread Yang, Sheng
On Wednesday 26 December 2007 22:35:29 Yves Dorfsman wrote: > What is the recommended way to keep the time correct on a UNIX KVM machine > ? > > I am using Linux x86_64 (gentoo) both as a host and as a guest, and can't > keep the time straight on the guest. Ntpd eventually gives up because the > cl

Re: [kvm-devel] keeping time

2007-12-26 Thread Yves Dorfsman
On Wed, 26 Dec 2007, Izik Eidus wrote: > ohhh i forgat to mention to boot the linux without apic when you run the -tdf > (if i remember it is noapic) Yes I verified, "noapic". Now that's weird the clock is a little bit fast (as opposed to very slow previously). It got 7 second too fast, in

Re: [kvm-devel] keeping time

2007-12-26 Thread Izik Eidus
Yves Dorfsman wrote: > On Wed, 26 Dec 2007, Avi Kivity wrote: > > >> ntp is too clever for virtual machines. What happens if you don't enable it? >> > > Same thing. > > >> Please provide the guest's /proc/interrupts. >> > > more /proc/interrupts > CPU0 >0: 270

Re: [kvm-devel] keeping time

2007-12-26 Thread Yves Dorfsman
On Wed, 26 Dec 2007, Avi Kivity wrote: > ntp is too clever for virtual machines. What happens if you don't enable it? Same thing. > > Please provide the guest's /proc/interrupts. more /proc/interrupts CPU0 0: 27066XT-PIC-XTtimer 1: 9XT-PIC-XT

Re: [kvm-devel] keeping time

2007-12-26 Thread Avi Kivity
Yves Dorfsman wrote: > What is the recommended way to keep the time correct on a UNIX KVM machine ? > > I am using Linux x86_64 (gentoo) both as a host and as a guest, and can't > keep the time straight on the guest. Ntpd eventually gives up because the > clock is too wanky. > > ntp is too cl

Re: [kvm-devel] keeping time

2007-12-26 Thread Izik Eidus
Yves Dorfsman wrote: > What is the recommended way to keep the time correct on a UNIX KVM machine ? > what happen when you try: -no-kvm-irqchip -tdf ? (you arent runing it with -no-kvm-irqchip right now right?, if you dont it is probably bug) > I am using Linux x86_64 (gentoo) both as a host an

[kvm-devel] keeping time

2007-12-26 Thread Yves Dorfsman
What is the recommended way to keep the time correct on a UNIX KVM machine ? I am using Linux x86_64 (gentoo) both as a host and as a guest, and can't keep the time straight on the guest. Ntpd eventually gives up because the clock is too wanky. I run into this problem both with versions 28 and