Based loosely on previous work from Haozhong Zhang, but rebased over
substantial upstream development work, altered to be more consistent with
existing tests, and extended to all HVM environments (rather than just hvm64)
to cover more test scenarios.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
@subpage test-fep - Test availability of HVM Forced Emulation Prefix.
@subpage test-msr - Print MSR information.
+
+
+@section index-in-development In Development
+
+@subpage test-vvmx - Nested VT-x tests.
*/
--- /dev/null
+include $(ROOT)/build/common.mk
+
+NAME := vvmx
+CATEGORY := in-development
+TEST-ENVS := $(HVM_ENVIRONMENTS)
+
+TEST-EXTRA-CFG := extra.cfg.in
+
+obj-perenv += main.o
+
+include $(ROOT)/build/gen.mk
--- /dev/null
+nestedhvm = 1
--- /dev/null
+/**
+ * @file tests/vvmx/main.c
+ * @ref test-vvmx
+ *
+ * @page test-vvmx vvmx
+ *
+ * Functional testing of the VMX features in a nested-virt environment.
+ *
+ * @see tests/vvmx/main.c
+ */
+#include <xtf.h>
+
+const char test_title[] = "Test vvmx";
+
+void test_main(void)
+{
+ if ( !cpu_has_vmx )
+ return xtf_skip("Skip: VT-x not available\n");
+
+ if ( !vendor_is_intel )
+ xtf_warning("Warning: VT-x found on non-Intel processor\n");
+
+ xtf_success(NULL);
+}
+
+/*
+ * Local variables:
+ * mode: C
+ * c-file-style: "BSD"
+ * c-basic-offset: 4
+ * tab-width: 4
+ * indent-tabs-mode: nil
+ * End:
+ */