Commit cbff90a7 authored by Ben-Ami Yassour's avatar Ben-Ami Yassour Committed by Avi Kivity
Browse files

KVM: direct mmio pfn check



Userspace may specify memory slots that are backed by mmio pages rather than
normal RAM.  In some cases it is not enough to identify these mmio pages
by pfn_valid().  This patch adds checking the PageReserved as well.

Signed-off-by: default avatarBen-Ami Yassour <benami@il.ibm.com>
Signed-off-by: default avatarMuli Ben-Yehuda <muli@il.ibm.com>
Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent 0293615f
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment