OSDN Git Service

selftests: KVM: AMD Nested test infrastructure
authorEric Auger <eric.auger@redhat.com>
Thu, 6 Feb 2020 10:47:09 +0000 (11:47 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 12 Feb 2020 19:09:39 +0000 (20:09 +0100)
commit20ba262f8631aadefa87921481fe569ecc387f20
treec8dbce7a011f4c83765bbe2b20de83a2359f94aa
parent1ecaabed4e4a0d1027eadd54eb0e179350a79f99
selftests: KVM: AMD Nested test infrastructure

Add the basic infrastructure needed to test AMD nested SVM.
This is largely copied from the KVM unit test infrastructure.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/include/x86_64/processor.h
tools/testing/selftests/kvm/include/x86_64/svm.h [new file with mode: 0644]
tools/testing/selftests/kvm/include/x86_64/svm_util.h [new file with mode: 0644]
tools/testing/selftests/kvm/lib/x86_64/svm.c [new file with mode: 0644]