Re: [Xen-devel] [XTF PATCH 01/16] vvmx: test whether VMX feature is present in CPUID

2016-12-18 Thread Haozhong Zhang
On 12/16/16 14:40 +, Andrew Cooper wrote: On 16/12/16 13:43, Haozhong Zhang wrote: diff --git a/tests/vvmx/cpuid.c b/tests/vvmx/cpuid.c new file mode 100644 index 000..9a4cdae --- /dev/null +++ b/tests/vvmx/cpuid.c @@ -0,0 +1,24 @@ +#include + +bool test_cpuid_vmx_feat(void) +{ +uin

Re: [Xen-devel] [XTF PATCH 01/16] vvmx: test whether VMX feature is present in CPUID

2016-12-16 Thread Andrew Cooper
On 16/12/16 13:43, Haozhong Zhang wrote: > diff --git a/tests/vvmx/cpuid.c b/tests/vvmx/cpuid.c > new file mode 100644 > index 000..9a4cdae > --- /dev/null > +++ b/tests/vvmx/cpuid.c > @@ -0,0 +1,24 @@ > +#include > + > +bool test_cpuid_vmx_feat(void) > +{ > +uint32_t ecx = cpuid_ecx(1); >

[Xen-devel] [XTF PATCH 01/16] vvmx: test whether VMX feature is present in CPUID

2016-12-16 Thread Haozhong Zhang
cpuid.1:ecx[5] is expected to be set in this test. Signed-off-by: Haozhong Zhang --- tests/vvmx/Makefile | 11 +++ tests/vvmx/cpuid.c | 24 tests/vvmx/extra.cfg.in | 1 + tests/vvmx/main.c | 44 4 files