#define cpu_has_page1gb cpu_has(X86_FEATURE_PAGE1GB)
#define cpu_has_lm cpu_has(X86_FEATURE_LM)
+#define cpu_has_svm cpu_has(X86_FEATURE_SVM)
+
#define cpu_has_fsgsbase cpu_has(X86_FEATURE_FSGSBASE)
#define cpu_has_smep cpu_has(X86_FEATURE_SMEP)
#define cpu_has_smap cpu_has(X86_FEATURE_SMAP)
@section index-in-development In Development
+@subpage test-nested-svm - Nested SVM tests.
+
@subpage test-nested-vmx - Nested VT-x tests.
*/
--- /dev/null
+include $(ROOT)/build/common.mk
+
+NAME := nested-svm
+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/nested-svm/main.c
+ * @ref test-nested-svm
+ *
+ * @page test-nested-svm Nested SVM
+ *
+ * Functional testing of the SVM features in a nested-virt environment.
+ *
+ * @see tests/nested-svm/main.c
+ */
+#include <xtf.h>
+
+const char test_title[] = "Nested SVM testing";
+
+void test_main(void)
+{
+ if ( !cpu_has_svm )
+ return xtf_skip("Skip: SVM not available\n");
+
+ if ( !vendor_is_amd )
+ xtf_warning("Warning: SVM found on non-AMD 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:
+ */