Xen Test Framework
main.c
Go to the documentation of this file.
1 
11 #include <xtf.h>
12 
13 const char test_title[] = "Nested SVM testing";
14 
15 void test_main(void)
16 {
17  if ( !cpu_has_svm )
18  return xtf_skip("Skip: SVM not available\n");
19 
20  if ( !vendor_is_amd )
21  xtf_warning("Warning: SVM found on non-AMD processor\n");
22 
24 }
25 
26 /*
27  * Local variables:
28  * mode: C
29  * c-file-style: "BSD"
30  * c-basic-offset: 4
31  * tab-width: 4
32  * indent-tabs-mode: nil
33  * End:
34  */
void xtf_warning(const char *fmt,...)
Report a test warning.
Definition: report.c:52
#define NULL
Definition: stddef.h:12
void xtf_success(const char *fmt,...)
Report test success.
Definition: report.c:38
void test_main(void)
To be implemented by each test, as its entry point.
Definition: main.c:137
#define vendor_is_amd
Definition: cpuid.h:34
void xtf_skip(const char *fmt,...)
Report a test skip.
Definition: report.c:66
const char test_title[]
The title of the test.
Definition: main.c:14
#define cpu_has_svm
Definition: cpuid.h:89