KVM Clock
Roger Pau Monné
roger.pau at citrix.com
Wed Jan 15 13:08:12 UTC 2014
On 15/01/14 13:05, Julian Stecklina wrote:
> On 01/14/2014 05:13 PM, Peter Grehan wrote:
>> Hi Julian,
>>
>>> is anyone working on KVM clock support for FreeBSD? If not, I
>>> might take a shot at it.
>>
>> None I know of: go for it :)
>
> Works for me so far:
> https://github.com/blitz/freebsd/commit/cdc5f872b3e48cc0dda031fc7d6bdedc65c3148f
Looking
>
at the code it seems some common routines could be shared
between the KVM PV clock and the Xen PV clock
(sys/dev/xen/timer/timer.c). The data passed from the hypervisor to
the guest has exactly the same format (see struct vcpu_time_info in
Xen public headers).
At a first sight the KVM clock can benefit from using scale_delta
(which is going to be faster than the C version implemented in
kvmclock_get_timecount), and xen_fetch_vcpu_tinfo is exactly the same
as kvmclock_fetch.
Roger.
More information about the freebsd-virtualization
mailing list