Xen Test Framework
tests
nested-svm
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
23
xtf_success
(
NULL
);
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
*/
cpu_has_svm
#define cpu_has_svm
Definition:
cpuid.h:90
vendor_is_amd
#define vendor_is_amd
Definition:
cpuid.h:34
test_main
void test_main(void)
To be implemented by each test, as its entry point.
Definition:
main.c:110
test_title
const char test_title[]
The title of the test.
Definition:
main.c:24
xtf_skip
void xtf_skip(const char *fmt,...)
Report a test skip.
Definition:
report.c:66
xtf_warning
void xtf_warning(const char *fmt,...)
Report a test warning.
Definition:
report.c:52
xtf_success
void xtf_success(const char *fmt,...)
Report test success.
Definition:
report.c:38
NULL
#define NULL
Definition:
stddef.h:12
Generated by
1.9.4