summaryrefslogtreecommitdiff
path: root/tools/virtio/ringtest/README
blob: d83707a336c9272720b2f42b2b2cee804df07de8 (plain)
1
2
3
4
5
6
Partial implementation of various ring layouts, useful to tune virtio design.
Uses shared memory heavily.

Typical use:

# sh run-on-all.sh perf stat -r 10 --log-fd 1 -- ./ring
'>2016-11-09 17:48:15 +0100 committerRadim Krčmář <rkrcmar@redhat.com>2016-11-19 19:04:16 +0100 commite3fd9a93a12a1020067a676e826877623cee8e2b (patch) treefcc53a18d286b78631e7764d6d8b948e355a1566 /virt parent1650b4ebc99da4c137bfbfc531be4a2405f951dd (diff)
kvm: kvmclock: let KVM_GET_CLOCK return whether the master clock is in use
Userspace can read the exact value of kvmclock by reading the TSC and fetching the timekeeping parameters out of guest memory. This however is brittle and not necessary anymore with KVM 4.11. Provide a mechanism that lets userspace know if the new KVM_GET_CLOCK semantics are in effect, and---since we are at it---if the clock is stable across all VCPUs. Cc: Radim Krčmář <rkrcmar@redhat.com> Cc: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'virt')