The following patchset adds a framework for nested SVM unit testing. As you may guess, future fixes and enhancements to nested SVM will require matching tests. Currently, our nested SVM implementation has a 66.67% success rate using these tests. Avi Kivity (8): test: move ARRAY_SIZE() to libcflat.h test: move memset() to libcflat test: add type bool test: add processor register access functions test: make use of new processor.h header test: add svm definitions header test: add msr definitions header test: add svm tests kvm/test/config-x86-common.mak | 2 + kvm/test/config-x86_64.mak | 1 + kvm/test/lib/libcflat.h | 9 + kvm/test/lib/string.c | 11 + kvm/test/lib/x86/msr.h | 406 ++++++++++++++++++++++++++++++++++++++++ kvm/test/lib/x86/processor.h | 246 ++++++++++++++++++++++++ kvm/test/x86/access.c | 8 - kvm/test/x86/apic.c | 8 - kvm/test/x86/emulator.c | 10 +- kvm/test/x86/idt.c | 8 - kvm/test/x86/svm.c | 180 ++++++++++++++++++ kvm/test/x86/svm.h | 328 ++++++++++++++++++++++++++++++++ kvm/test/x86/vm.c | 30 +--- kvm/test/x86/vm.h | 43 +---- kvm/test/x86/vmexit.c | 2 - 15 files changed, 1197 insertions(+), 95 deletions(-) create mode 100644 kvm/test/lib/x86/msr.h create mode 100644 kvm/test/lib/x86/processor.h create mode 100644 kvm/test/x86/svm.c create mode 100644 kvm/test/x86/svm.h -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html