Page MenuHomeFreeBSD

paravirt: Add KVM clock timecounter support
AbandonedPublic

Authored by bryanv on Jan 4 2015, 5:57 AM.
Tags
None
Referenced Files
F81684880: D1435.diff
Fri, Apr 19, 10:10 PM
Unknown Object (File)
Fri, Mar 29, 1:33 PM
Unknown Object (File)
Thu, Mar 28, 1:24 PM
Unknown Object (File)
Sat, Mar 23, 12:11 PM
Unknown Object (File)
Jan 25 2024, 8:41 AM
Unknown Object (File)
Jan 7 2024, 1:20 PM
Unknown Object (File)
Dec 20 2023, 12:58 AM
Unknown Object (File)
Dec 8 2023, 11:31 PM

Details

Reviewers
mmacy
jhb
Summary

This allows a KVM guest to get an accurate cycle counter without having to do a VM exit, which happens when either HPET or ACPI is used.

KVM clock also supports getting the wall clock time but that is not implemented yet.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

bryanv retitled this revision from to paravirt: Add KVM clock timecounter support.
bryanv updated this object.
bryanv edited the test plan for this revision. (Show Details)
bryanv set the repository for this revision to rS FreeBSD src repository - subversion.
bryanv updated this object.

What's the status of this patch. It looks very promising.
In fact I was writing kvmclock support code myself until I found this one. I think it is much better than the old tsc code.

sys/x86/include/kvm.h
44

in fact, kvm paravirt detection stays identical with x2apic support detection in linux source tree.

What's the status of this patch. It looks very promising.
In fact I was writing kvmclock support code myself until I found this one. I think it is much better than the old tsc code.

I lost my spare FreeBSD before I was able to get this and prerequisites changes into the tree. I'm trying to resume up my FreeBSD work and this is one of the changes I hope to get committed.

@bryanv What do you feel remains to be done?

In D1435#343209, @mmacy wrote:

@bryanv What do you feel remains to be done?

The change in this review depends on some hypervisor detection changes that I don't think make sense anymore. @stevek has done the work to refactor this change on to HEAD that I hope he's able to submit soon.

The change in this review depends on some hypervisor detection changes that I don't think make sense anymore. @stevek has done the work to refactor this change on to HEAD that I hope he's able to submit soon.

See D16305 and D16306