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

2017-08-15 Thread Yu Zhang
On 8/15/2017 6:28 PM, Andrew Cooper wrote: On 15/08/17 04:18, 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) Reviewed-by: Andr

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

2017-08-15 Thread Andrew Cooper
On 15/08/17 04:18, 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) Reviewed-by: Andrew Cooper It turns out there were som

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

2017-08-14 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