Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
@subpage test-cpuid - Print CPUID information.
+@subpage test-fep - Test availability of HVM Forced Emulation Prefix.
+
@subpage test-msr - Print MSR information.
*/
--- /dev/null
+MAKEFLAGS += -r
+ROOT := $(abspath $(CURDIR)/../..)
+
+include $(ROOT)/build/common.mk
+
+NAME := fep
+CATEGORY := utility
+TEST-ENVS := hvm32
+
+obj-perenv += main.o
+
+include $(ROOT)/build/gen.mk
--- /dev/null
+/**
+ * @file tests/fep/main.c
+ * @ref test-fep
+ *
+ * @page test-fep FEP
+ *
+ * Test the availability of HVM Forced Emulation Prefix (FEP), which
+ * allows HVM guest arbitrarily exercise the instruction emulator.
+ *
+ * Returns SUCCESS if FEP is available, FAILURE if not.
+ *
+ * @sa tests/fep/main.c
+ */
+#include <xtf.h>
+
+void test_main(void)
+{
+ printk("Test availability of HVM forced emulation prefix\n");
+
+ if ( xtf_has_fep )
+ xtf_success(NULL);
+ else
+ xtf_failure(NULL);
+}
+
+/*
+ * Local variables:
+ * mode: C
+ * c-file-style: "BSD"
+ * c-basic-offset: 4
+ * tab-width: 4
+ * indent-tabs-mode: nil
+ * End:
+ */