]> rtime.felk.cvut.cz Git - jailhouse.git/commit
x86: Fix no-execute tagging of SVM NPT structures
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 10 Mar 2015 09:04:13 +0000 (10:04 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 20 Mar 2015 06:10:39 +0000 (07:10 +0100)
commit2c9a14087115eff2faeb28f3f4cdb68e99fbb17a
tree2b4aa40077d2e9053230cdab91a335dd2fcfc75f
parent66b2150fab2b2b026b04358a957270a9f34fbba3
x86: Fix no-execute tagging of SVM NPT structures

Two bugs in one: flags is too small, and PAGE_FLAG_EXECUTE is actually
PAGE_FLAG_NOEXECUTE.

Revealed by sparse while walking through a number of "constant XXX is so
big it is unsigned long" warnings.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/arch/x86/include/asm/paging.h
hypervisor/arch/x86/svm.c