Re: [Xen-devel] [XTF PATCH 06/16] vvmx: test vmxon with CR4.VMXE cleared

2016-12-18 Thread Haozhong Zhang
On 12/16/16 20:25 +, Andrew Cooper wrote: On 16/12/16 13:43, Haozhong Zhang wrote: diff --git a/tests/vvmx/util.c b/tests/vvmx/util.c index 74b4d01..f30fc26 100644 --- a/tests/vvmx/util.c +++ b/tests/vvmx/util.c @@ -1,7 +1,31 @@ #include +#include #include #include "util.h" +#define I

Re: [Xen-devel] [XTF PATCH 06/16] vvmx: test vmxon with CR4.VMXE cleared

2016-12-16 Thread Andrew Cooper
On 16/12/16 13:43, Haozhong Zhang wrote: > diff --git a/tests/vvmx/util.c b/tests/vvmx/util.c > index 74b4d01..f30fc26 100644 > --- a/tests/vvmx/util.c > +++ b/tests/vvmx/util.c > @@ -1,7 +1,31 @@ > #include > +#include > #include > #include "util.h" > > +#define INVALID_VMCS_REVID (~(uint

[Xen-devel] [XTF PATCH 06/16] vvmx: test vmxon with CR4.VMXE cleared

2016-12-16 Thread Haozhong Zhang
Fault #UD is expected in this test. Signed-off-by: Haozhong Zhang --- include/arch/x86/msr-index.h | 1 + tests/vvmx/Makefile | 2 +- tests/vvmx/main.c| 4 tests/vvmx/util.c| 24 ++ tests/vvmx/util.h| 18 +