kvm tools: clock sources for hrtimer

2011-11-09 Thread Richard Weinberger
Hi! Is there any way to have high resolution clock sources? Currently the native kvm tool seems to support only jiffies: $ cat /sys/devices/system/clocksource/clocksource0/available_clocksource jiffies Using qemu-kvm with the same kernel/host I can use tsc, hpet, acpi_pm. Thanks, //richard

Re: kvm tools: clock sources for hrtimer

2011-11-09 Thread Sasha Levin
On Wed, 2011-11-09 at 16:27 +0200, Richard Weinberger wrote: Hi! Is there any way to have high resolution clock sources? Currently the native kvm tool seems to support only jiffies: $ cat /sys/devices/system/clocksource/clocksource0/available_clocksource jiffies Using qemu-kvm with the

Re: kvm tools: clock sources for hrtimer

2011-11-09 Thread Richard Weinberger
On Wed, 09 Nov 2011 16:49:51 +0200, Sasha Levin levinsasha...@gmail.com wrote: We'll do kvm_clock as well if you compile it in the kernel. CONFIG_HIGH_RES_TIMERS is on both host and guest kernels enabled. BTW: Why adds the kvm tool notsc to the guest's kernel command line? I don't think that

Re: kvm tools: clock sources for hrtimer

2011-11-09 Thread Sasha Levin
On Wed, 2011-11-09 at 17:42 +0200, Richard Weinberger wrote: On Wed, 09 Nov 2011 16:49:51 +0200, Sasha Levin levinsasha...@gmail.com wrote: We'll do kvm_clock as well if you compile it in the kernel. CONFIG_HIGH_RES_TIMERS is on both host and guest kernels enabled. BTW: Why adds the kvm

Re: kvm tools: clock sources for hrtimer

2011-11-09 Thread Cyrill Gorcunov
On Wed, Nov 09, 2011 at 05:49:53PM +0200, Sasha Levin wrote: On Wed, 2011-11-09 at 17:42 +0200, Richard Weinberger wrote: On Wed, 09 Nov 2011 16:49:51 +0200, Sasha Levin levinsasha...@gmail.com wrote: We'll do kvm_clock as well if you compile it in the kernel. CONFIG_HIGH_RES_TIMERS

Re: kvm tools: clock sources for hrtimer

2011-11-09 Thread Cyrill Gorcunov
On Wed, Nov 09, 2011 at 08:00:06PM +0400, Cyrill Gorcunov wrote: ... You'll need CONFIG_KVM_CLOCK. I'm not actually sure how close our implementation is to having tsc working so far, Cyrill knows more about that than me. We dropped tsc while were debuggin timer interrupts and

Re: kvm tools: clock sources for hrtimer

2011-11-09 Thread Richard Weinberger
On Wed, 9 Nov 2011 20:00:06 +0400, Cyrill Gorcunov gorcu...@gmail.com wrote: On Wed, Nov 09, 2011 at 05:49:53PM +0200, Sasha Levin wrote: On Wed, 2011-11-09 at 17:42 +0200, Richard Weinberger wrote: On Wed, 09 Nov 2011 16:49:51 +0200, Sasha Levin levinsasha...@gmail.com wrote: We'll do

Re: kvm tools: clock sources for hrtimer

2011-11-09 Thread Pekka Enberg
On Wed, 2011-11-09 at 20:56 +0200, Richard Weinberger wrote: On Wed, 9 Nov 2011 20:00:06 +0400, Cyrill Gorcunov gorcu...@gmail.com wrote: On Wed, Nov 09, 2011 at 05:49:53PM +0200, Sasha Levin wrote: On Wed, 2011-11-09 at 17:42 +0200, Richard Weinberger wrote: On Wed, 09 Nov 2011 16:49:51

Re: kvm tools: clock sources for hrtimer

2011-11-09 Thread Cyrill Gorcunov
On Wed, Nov 09, 2011 at 09:13:54PM +0200, Pekka Enberg wrote: ... Yup, notsc was used in the early days to avoid APIC emulation. Anyone care to send a patch to drop it from master? Pekka Here we go --- Subject: [PATCH] tools, kvm: Drop notsc no longer needed kernel