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
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
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
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