Re: [Xen-devel] [PATCH XTF v2] Functional: Add a UMIP test

2017-08-14 Thread Andrew Cooper
On 14/08/17 13:43, Boqun Feng wrote: > On Mon, Aug 14, 2017 at 11:35:47AM +0100, Andrew Cooper wrote: >> On 14/08/17 06:08, Boqun Feng (Intel) wrote: >>> Add a "umip" test for the User-Model Instruction Prevention. The test >>> simply tries to run sgdt/sidt/sldt/str/smsw in guest user-mode with >>>

Re: [Xen-devel] [PATCH XTF v2] Functional: Add a UMIP test

2017-08-14 Thread Boqun Feng
On Mon, Aug 14, 2017 at 11:35:47AM +0100, Andrew Cooper wrote: > On 14/08/17 06:08, Boqun Feng (Intel) wrote: > > Add a "umip" test for the User-Model Instruction Prevention. The test > > simply tries to run sgdt/sidt/sldt/str/smsw in guest user-mode with > > CR4_UMIP = 1. > > > > Signed-off-by: Bo

Re: [Xen-devel] [PATCH XTF v2] Functional: Add a UMIP test

2017-08-14 Thread Andrew Cooper
On 14/08/17 06:08, Boqun Feng (Intel) wrote: > Add a "umip" test for the User-Model Instruction Prevention. The test > simply tries to run sgdt/sidt/sldt/str/smsw in guest user-mode with > CR4_UMIP = 1. > > Signed-off-by: Boqun Feng (Intel) Thankyou for this. Its looking much better. Just a few

[Xen-devel] [PATCH XTF v2] Functional: Add a UMIP test

2017-08-13 Thread Boqun Feng (Intel)
Add a "umip" test for the User-Model Instruction Prevention. The test simply tries to run sgdt/sidt/sldt/str/smsw in guest user-mode with CR4_UMIP = 1. Signed-off-by: Boqun Feng (Intel) --- v1 --> v2: * add a new write_cr4_safe() * use %pe for exception print * refactor th