Skip to content
Snippets Groups Projects
Commit 3f2cbf0d authored by Jan Kiszka's avatar Jan Kiszka Committed by Blue Swirl
Browse files

target-i386: Mask NX bit from cpu_get_phys_page_debug result


This was a long pending bug, now revealed by the assert in
phys_page_find that stumbled over the large page index returned by
cpu_get_phys_page_debug for NX-marked pages: We need to mask out NX and
all user-definable bits 52..62 from PDEs and the final PTE to avoid
corrupting physical addresses.

Reviewed-by: default avatarAvi Kivity <avi@redhat.com>
Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
parent dac6b1b2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment