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

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.


freebsd-virtualization@freebsd.org mailing list
To unsubscribe, send any mail to 

Reply via email to