Sean Christopherson <seanjc@xxxxxxxxxx> writes:
This test shouldn't need to guesstimate the frequency, just use a
VM-scoped
KVM_GET_TSC_KHZ, which will provide KVM's default TSC frequency, i.e. the
host
frequency. For hardware with a constant TSC, which is everything modern,
that
will be as accurate as we can get. For hardware without a constant TSC,
well, buy
new hardware :-)
Thanks. That simplifies things. I encountered that number before but was
unsure if I could trust it for reasons I no longer remember.