[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

[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

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

2017-07-19 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) --- docs/all-tests.dox | 2 + tests/umip/Makefile | 9 tests/umip/main

[Xen-devel] [PATCH] x86/cpufeatures: Expose UMIP to HVM guest

2017-07-19 Thread Boqun Feng (Intel)
ion exception (#GP). This patch simply adds necessary definitions to expose this feature to hvm guests. Signed-off-by: Boqun Feng (Intel) Cc: Jan Beulich --- This patch is basically based on Jan Beulich's patch: https://lists.xenproject.org/archives/html/xen-devel/2016-12/msg00552