]> rtime.felk.cvut.cz Git - jailhouse.git/commit
core: Extend entry_valid paging callback to check for flags
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 21 Aug 2014 11:46:31 +0000 (13:46 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Thu, 28 Aug 2014 06:36:09 +0000 (08:36 +0200)
commitb6b4d1117213ece8969231d7a406d6cf61844254
treea913dbbe695f9ac310df70d95dd7def3a677572f
parent777df51dba00c1171bb7bf5e933cfea3b77e7fc2
core: Extend entry_valid paging callback to check for flags

Generalize the entry_valid callback of paging_structures to test for a
given set of flags, not only the present flag. This will allow us to
validate the access mode on guest and 2nd-level page table walks. For
now we just continue to test PAGE_PRESENT_FLAGS.

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