Re: [Xen-devel] [XTF PATCH 14/16] vvmx: test vmxon in VMX root w/ CPL = 3 and w/o current VMCS

2016-12-19 Thread Haozhong Zhang
On 12/19/16 16:07 +, Andrew Cooper wrote: On 19/12/16 03:46, Haozhong Zhang wrote: However, I am not sure of its purpose. Why cant you reuse the previous host state area? Intel SDM says SW should not access or modify the VXMON rgion of a logical processor between vmxon and vmxoff. Though

Re: [Xen-devel] [XTF PATCH 14/16] vvmx: test vmxon in VMX root w/ CPL = 3 and w/o current VMCS

2016-12-19 Thread Andrew Cooper
On 19/12/16 03:46, Haozhong Zhang wrote: >> However, I am not sure of its purpose. Why cant you reuse the previous >> host state area? >> > > Intel SDM says SW should not access or modify the VXMON rgion of a > logical processor between vmxon and vmxoff. Though I have tested on > real hardware whe

Re: [Xen-devel] [XTF PATCH 14/16] vvmx: test vmxon in VMX root w/ CPL = 3 and w/o current VMCS

2016-12-18 Thread Haozhong Zhang
On 12/16/16 20:59 +, Andrew Cooper wrote: On 16/12/16 13:43, Haozhong Zhang wrote: Fault #GP(0) is expected in this test. Signed-off-by: Haozhong Zhang --- tests/vvmx/vmxon.c | 29 + 1 file changed, 29 insertions(+) diff --git a/tests/vvmx/vmxon.c b/tests/vvmx

Re: [Xen-devel] [XTF PATCH 14/16] vvmx: test vmxon in VMX root w/ CPL = 3 and w/o current VMCS

2016-12-16 Thread Andrew Cooper
On 16/12/16 13:43, Haozhong Zhang wrote: > Fault #GP(0) is expected in this test. > > Signed-off-by: Haozhong Zhang > --- > tests/vvmx/vmxon.c | 29 + > 1 file changed, 29 insertions(+) > > diff --git a/tests/vvmx/vmxon.c b/tests/vvmx/vmxon.c > index 0664a48..ec7ee7e 1

[Xen-devel] [XTF PATCH 14/16] vvmx: test vmxon in VMX root w/ CPL = 3 and w/o current VMCS

2016-12-16 Thread Haozhong Zhang
Fault #GP(0) is expected in this test. Signed-off-by: Haozhong Zhang --- tests/vvmx/vmxon.c | 29 + 1 file changed, 29 insertions(+) diff --git a/tests/vvmx/vmxon.c b/tests/vvmx/vmxon.c index 0664a48..ec7ee7e 100644 --- a/tests/vvmx/vmxon.c +++ b/tests/vvmx/vmxon.c @