selftests: KVM: Introduce system counter offset test
authorOliver Upton <oupton@google.com>
Thu, 16 Sep 2021 18:15:51 +0000 (18:15 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 18 Oct 2021 18:43:46 +0000 (14:43 -0400)
commit3f9808cac06c8dd4f800101e04f84fe3180198b0
treeb64f66c5d7f120c27989e15e63e75f15d8f324a0
parentc895513453268c8911858e17713fb94d9e0eae50
selftests: KVM: Introduce system counter offset test

Introduce a KVM selftest to verify that userspace manipulation of the
TSC (via the new vCPU attribute) results in the correct behavior within
the guest.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Oliver Upton <oupton@google.com>
Message-Id: <20210916181555.973085-6-oupton@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Documentation/virt/kvm/devices/vcpu.rst
tools/testing/selftests/kvm/.gitignore
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/system_counter_offset_test.c [new file with mode: 0644]